M\á:l‹°;ZfbJôØèÞ®^—X£ß (qª·vÓIÍnÛ³séRÈEÜ]ð> ­§#~å�ŸØj±Æ,ŸH>‹ôbç àØ#hÏ#*Ç“R‹écÒjÅ4m=z ¼8±<35zn7;%¡á,9ª[CéP¶ýÓȤÁNnÔþ¯s€ªñ.²”¥¢ø �GYŠé<�9q+�#‰~™Þá!våÚ²(¥E讑ûÄÙIP×yô½Â<}mƒMôicKo­³½ò!Ö‘õç¶�¡‡ÔŠUÚ‰¡ƒ@¨¥NìƒP­=IuGdk˜ø8Në�L]û-e™k:a…ü�g§ü²�Ìxaò—±‹‡-_Fc´�¿Ûý áö_•+ËP�yyŒtC$¤Õé¬ÔÑ~ö)œVIly ç`F…*üG0è#L "¡èH?JXöÒ¡‹�þ öDT’È‘ûX2]ÐS×Ôò£_W9,ª¦ÞKìßÌÒ b¡ÀŽŠˆë³Ï â½iY��ð´åSŒ‚!XS²ÞU…@§íÀý”LìG>µÍ}ÕÚY7i'”m¤zÔà°”ŸÍð®P¹°ÄäÀØÑ|‚jèäD,éÑ—7öB»[ë¨'uâËTŸ¸»ôQ"ïšb óÆìK!�¿ÜÛñh|túG)•<¸‰]^|Gòî¼ £Dð£W'1aâe™ûç<]]`kdSˆ‹òäYbáÔÄ`Ð-~Ú·ÔÅÞq™±ZÛ¸-´‹{¡0¿€¨¯V�,ýÑw~û1¥ÓW“Â]ß$š�1 gß µX?ÇâDÞŸã—/LZgÌsÝPâ+Œ®‰"T˳‡ÿië�¢�d϶Ç(æë‘û¨³Øˆ‹òäYbáÔÄ`Ð-~ÚNˆž~-]Ź—Œ ¡”MSð�È©) î‰Ð£&8,¸ßÍ: ®ÕϱÝEÎ^ø"´, H¡†Sƒ ?6Xòô_)¶ØA2” 9~qÁ0‘«éÐ.>ÕRÔ¢KJ>¡÷ÝÈS¨?_cä4ýùRX1ÝKïÓ­25èbk!/à€‰¼kYÕ²…Tƒî¯IÓªüBÁþ;½¨å¥|¬<ý÷Úø½ñ½¢_ªÉŠNûäÿí'²Íݺ¯éñÓΪ¨Ùu~Äf�¾ò*ýR¨þfmšÉÊjôlÎÙï`RÀж)¬…±ò™LÈEóÙ.cð7Hã÷Ô¬¸�ð´åSŒ‚!XS²ÞU…@§‰˜æ‹P3Üdµ½Œã0À™Å¹ô(Ë5�IRdšÎPT†^Ä.± ì˜Ðû©1adÊõ"˜mŒQÖzBÃc÷ÞÓÖ mËF3äÝè#±ƒ`HÂÞõ…û¿›�H¤·5l£Fƒˆ/šÁDT ãÿe;xé¿ÆzUjÙ(ºPjrÿ-xB½Qðª_\W‚?'£ÜÝ:!D¸M¦ú5¡uèyÈf È,S[?ð–^X1jðHo¬Oð� MåÛâH+D˜üv;î˜aôqeÏʨ̵hî³”„ê׀ qÁt!Ò³™N=í¼^·sWŸÎ´•õ°pŒ^eÄÔ§,[E“È0RÜÃ~-¢¶ù�PÓùÎkqs¤€Ô“fÚ| Ã)=Kl�Á¯‚m¹ô(Ë5�IRdšÎPT†^ï*Þ@s™µΧ°Œ”Ž€¼w,ÝÌ>~•?nÊ�íEƒ™¢Å¹iŽ©‘­Šÿ�Ø1¨»;ì×ôËÄ¥¼ÆX@ÕaE{ý>xÇ8=¡܇>ô\2;Ûh4Ûg‹¬šžâÖª»`eDm¿VŒ m›4Án±Æ?õóK¶ÞIåF3äÝè#±ƒ`HÂÞõ…û¿›�H¤·5l£Fƒˆ/šÁDT ãÿe;xé¿ÆzUj{š›cÄ ‰úPÀÐù[½sêŽ^´QVíhÞÑ¥$Çð�¡uèyÈf È,S[?ð–^X1jðHo¬Oð2Üí~úT q'gÙþfzAÝFAÖ$&Ü2Îì^}À¸F3äÝè#±ƒ`HÂÞõ…û¿›�H¤·5l£Fƒˆ/šÁDT ãÿe;xé¿ÆzUjeF´ÆR:.ÖÎÞÆõ–Ç1}êµøDÂaß™¦d»nÖþEìø5õR ô_'bb{á�ƲÚS<®gBfŒä›VœJ`”húô{Û™½W�‹úl§êô·�óè+9OT¹� OÞÐwƒþòjo¡Üy¬ )=&qrµ•[N”çä)[Ý–Ñ»f»´B°«<Û(—îòù)ËâÂããX²®—BuYBœAx×óx­ ýM±¿s�¡¿s!HlúúÝ(=©7{íð&~˜ çš!•,ƒCìvð4ÂØ(â�ä.-…»ð¬©Í ¨(¯~ú5I”V²U� IBm©�tñÜ­AÍ‹ØÿwpV䃪Ô} =š…·õå0!­’Åi“‘†F>@ܸùWÝ?�Ÿ¹‚êvÄ«XÜ…_ºÀ©W*2…Ï5‰1Äê�€Ð­ ö[AÝE+­˜~NLXmæ\¢‚€oµiÀJÍ&¡=štŸh¡lõâÇY' \°.;BQ’Ê{MbëÖ*n·šÏ±Ä²ˆG7‚Ìk �†Ã,'¨ï«\=nGŠP´¨‘Óq£F»ê°h·2ÎÜ,�A›rQÆ’Ód›ç¦ê(«òä +rÀV)…FØy+êC÷¸wÿô�³¥v µîSCÐ5*ÙÙiÁßßæ8nBadÿ0|âªVøó²�/ †ÝI&¸;N[LÖ‚§ûmP×ÒeVjCˆS_3°zöÓMÿÑäKƒ1CP�¶€÷ôܺÞÖˆ^¶Js`ûŸ~ÒŤNv¼£�¡:û¬¯ÏØ„Ïù8?p­N�p—iâÂi2g`±~ؑΓ>FŽu÷£ûôA•ZÈá IX"ŠÏ~ØR(ÜÁM:B†RåïÀ‘|U—\kgj¦á-ywáÊIŸãí*‚\ó jV0tÌmxyÖ¶O D§GoàöWLôlVø½F®¯E]ÇT–ÉA1«‰yeÌ¥ à4Ý¡?Íõæz«¢mâß½²|<ŽåŠ™Û+Û2ƒ™™[ ˆ¡{{f¹ªõX/æ¶©».¥åþÂr ¶¿÷`ÚÐG*Îu®•Z»uWÊW^/_M–r¤}5äðúWú‰Ü]ŒÎ8=5’æÇ·E�`�‹‡m‘øäó©h‹s›-óÕGŒ "ÌÏ4rb:NÍB¿tï-¸.o³×¢Ý+¾=wØS[îL`¡éÎ\· 4C³¸šÛ1z‘æ8¶“úŠè`�÷ ä��|B$Wlà!�g$—5EÄš3c°[5¶Gð4 $³GæÕðÆE«ªŸI§ë)µ½%CXùðUÕ( vúæ)PCrŸáJq£†�ëOÂùŸ¨È�IJ™/ÅXF¦›Ÿ,n �,2 Žvm{è~µÜ’#@tjXÑœ»ïtÄiEjá¥êÀ‘p÷Öp¶¸ËPâåûÛQµƒæÀª^‡Jîs]›ód5áh³/ÄŸkÅàmâa4,l�QIÌö-Êÿ †mÝ,š,A�I¦7 ²_o¹åD°bäM>EçYÕjÝÇ2ÒqZbºg˜ü²ƒ âÞ<8®Ûwü{ЭÙ£¬m{–3jæl!ë JîTÄ4†‹bÏ��†h/?]ÔDÅ€“IÿLýûö¼`oÙ“¶ÀëŠc-©cËxá…¦{Àíç/@§Á·ðœaÜ9GDi‘eªÜ!+ݨZ™\¸Ý‰$´—­t§.Š[J¢ׂØd=÷;>¢éb˜­ÜAÇ«!ô@Ñüy=å£måúùúÂ)̬�*±X  t1D—qzá<ô¦Ð~ŒØ—hVyi˜°bpA•; 6ÝoÇvuKˆ¡¾Uà{OÀ e‡.Ã6õí~ñý8L=h ÿžDĺhT±zùb(9'N ò³¤p0•)Æ´“›íÏÑ$C))²_Czªb±!ôÆ M¤/$­¸F>/wÞ(üûmõ’ªFp¬ᦒ\Ø‹€ïÑ‹ÃÆÌÖîfÓ¬LE¬dšëÜg<Ï\½ì}HyͳøÈMìç¿ßR¤w‰ _)ö·Ú!ɸô"‹å¾ sê�ëƒá‡/9õ{Q‰%qùtáÜŠ#ø(ñ¬ }Üè.P>E\¡Êüæe•ôª–!ˆ 2“}²�9Æ tâ}µ·šø*þ�ëõËóý ‘GâsŒ?_ù$±Hòa »˜×¨�-ƒØz)Y}‚²RÓœ§‹Lyåî»Ö„ç„®9™z ™Ö…}©qâ¢ÿö;êûÀƒæUìiø³²4)þ1ºo Æ”ö�·£¯ÎÖi*~‘¦“…+é&Y½«íØ,;Ï]Fº]Š#´ñæÍŒ¾M=£›�¾ˆ?öYŒ¾§Ã¦)⇓ØJ û¤Dg$á�×O/ú-í HrÛµy »—´bÐÀdä¶»ÖÓœ¾¤²™Áüé!ÁDT ãÿe;xé¿ÆzUjïF sðu8X.{½˜ j?g$©íN¤ #cÙ¿æ)¸˜.¢Šö¨X¼YLê�¢yº²k?§Oš¦tG_zÞÜæe•ôª–!ˆ 2“}²�9Æ tâ}µ·šø*þ�ë¹…2*´Vü™-úÔðž[TxŸ-çEÜâ#¬<lŒ¬’{qJ§¶ó+N]É%n€ ÄYå1¤š§€¨˜2ZÄV‹Ô¦T=[g&Z©ÏéI¯¤q¨#ÿ «œ¼¿ÂAwÔ�7)"NGÙ\+üò>¸M7Q ´¥ÆŒ.hñS�=ôHþkS¢ªÁÏ g_è6“"FEh»Ñ_I² �/îxÍéçÊyQ.˜[»^Yüàƒ×Å ZÓAÓíl4KÉ·ÎÊ¢ùm^îHØ—Yæ"L%`°‚,zãÍ© Ò³C•†·›ÄÏu8�TàxrÏÉ’[B åƒïæšÃnH«“Ÿj+pêÑÇÛUQŸ&œ†µqµ/Çï¶Q5®Ö䤑’Í'Validate::dateFormat', 'D, d M y' ) ->getFormatter( 'Format::date_sql_to_format', 'D, d M y' ) ->setFormatter( 'Format::date_format_to_sql', 'D, d M y' )
Example:

Using an alias in the first parameter

Field::inst( 'name.first as first_name' )

Located at Editor/Field.php
Methods summary
public
# __construct( string $dbField = null, string $name = null )

Field instance constructor.

public string|DataTables\Editor\Field
# dbField( string $_ = null )

Get / set the DB field name.

public boolean|DataTables\Editor\Field
# get( boolean $_ = null )

Get / set the 'get' property of the field.

public callable|string|DataTables\Editor\Field
# getFormatter( callable|string $_ = null, mixed $opts = null )

Get formatter for the field's data.

public callable|string|DataTables\Editor\Field
# getValue( callable|string|number $_ = null )

Get / set a get value. If given, then this value is used to send to the client-side, regardless of what value is held by the database.

public string|DataTables\Editor\Field
# name( string $_ = null )

Get / set the 'name' property of the field.

public DataTables\Editor\Field
# options( string|callable $table = null, string $value = null, string $label = null, callable $condition = null, callable $format = null, string $order = null )

Get a list of values that can be used for the options list in radio, select and checkbox inputs from the database for this field.

public DataTables\Editor\Field
# searchPaneOptions( DataTables\Editor\SearchPaneOptions|callable $spInput = null )

Get a list of values that can be used for the options list in SearchPanes

public string|DataTables\Editor\Field
# set( string|boolean $_ = null )

Get / set the 'set' property of the field.

public callable|string|DataTables\Editor\Field
# setFormatter( callable|string $_ = null, mixed $opts = null )

Set formatter for the field's data.

public callable|string|DataTables\Editor\Field
# setValue( callable|string|number $_ = null )

Get / set a set value. If given, then this value is used to write to the database regardless of what data is sent from the client-side.

public DataTables\Editor\Upload|DataTables\Editor\Field
# upload( DataTables\Editor\Upload $_ = null )

Get / set the upload class for this field.

public callable|string|DataTables\Editor\Field
# validator( callable|string $_ = null, mixed $opts = null )

Get / set the 'validator' of the field.

public DataTables\Editor\Field
# xss( callable|false $xssFormatter )

Set a formatting method that will be used for XSS checking / removal. This should be a function that takes a single argument (the value to be cleaned) and returns the cleaned value.

public string
# xssSafety( mixed $val )

Perform XSS prevention on an input.

Methods inherited from DataTables\Ext
_getSet(), _propExists(), _readProp(), _writeProp(), inst(), instantiate()
Constants summary
string SET_NONE

Set option flag (set()) - do not set data

# 'none'
string SET_BOTH

Set option flag (set()) - write to database on both create and edit

# 'both'
string SET_CREATE

Set option flag (set()) - write to database only on create

# 'create'
string SET_EDIT

Set option flag (set()) - write to database only on edit

# 'edit'