<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Jun 26, 2014 at 3:55 PM, Chirayu Chiripal <span dir="ltr"><<a href="mailto:chirayu.chiripal@gmail.com" target="_blank">chirayu.chiripal@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div class="">On Thu, Jun 26, 2014 at 3:31 PM, Marc Delisle <span dir="ltr"><<a href="mailto:marc@infomarc.info" target="_blank">marc@infomarc.info</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Le 2014-06-25 06:23, Chirayu Chiripal a écrit :<br>
<div>> Hi,<br>
> Feature Request Link:<br>
> <a href="http://sourceforge.net/p/phpmyadmin/feature-requests/637/" target="_blank">http://sourceforge.net/p/phpmyadmin/feature-requests/637/</a><br>
><br>
> I am bit confused that what does this RFE is all about. Here is my doubt:<br>
><br>
> 1] Does this feature requests says that if a field has a "prepend" input<br>
> transformation plugin with prepend text as "phpMyAdmin " then on insert<br>
> page if someone enters into this field "Bringing MySQL to the web" and<br>
> when a row is inserted then it should insert "phpMyAdmin Bringing MySQL<br>
> to the web" into the database.<br>
><br>
> OR it requires something else?<br>
<br>
</div>Hi Chirayu,<br>
the example you mention is correct, but this feature request is much<br>
more than that. Look at the comment from Garvin in the RFE.<br>
<br>
In reality, we don't have to code a credit card validation, for example;<br>
we just have to provide the mechanism by which someone can code their<br>
own credit card validation and apply it to the input field.<br></blockquote><div><br></div></div><div>In my proposal, I also gave an example of regex validation plugin i.e. if some invalid data is inserted then that plugin can replace that invalid data with some other value (which would be given in plugin options) and if data is valid then it should go as it is. I am not sure about canceling the insert with error message right now but it can be done like by setting value for invalid data in plugin option as NULL for not null column which would automatically fail the insert or in the plugin itself if validation fails then it could throw a error and stop the execution of the script itself or we can have a boolean & error variable in transformation plugin which would be checked before insert/update and take actions likewise.<span class=""><font color="#888888"><br>
</font></span></div></div></div></div></blockquote><div><br></div><div>I saw the Garvin's comment and if someone can elaborate this part:<br><br>"Functions defined in those files could apply any<br>
Widget (like FCKEdit, HTMLArea or any custom-made PHP/HTML<br>
function) around/instead of the default htmlareas." <br><br></div><div>Does it means that it can be used to change the default textarea currently used in insert/edit page to something else?<br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><span class=""><font color="#888888">
<br></font></span></div><span class=""><font color="#888888"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
--<br>
Marc Delisle | phpMyAdmin<br>
<br></blockquote><div> </div></font></span></div><div class="">-- <br><div dir="ltr">Regards,<br>Chirayu Chiripal<br>phpMyAdmin Intern - Google Summer of Code 2014<br><a href="https://chirayuchiripal.wordpress.com/" target="_blank">https://chirayuchiripal.wordpress.com/</a><br>
</div>
</div></div></div>
</blockquote></div></div></div>