+1 571-297-6383 | info@sonjara.com

Little Things can make a Difference

Just a tiny update, but it can change the way we work with complicated forms --

Sometimes the save semantics required for an AutoForm are more complicated than just persisting the target object to the database. One approach that has been taken in the past is to sublcass AutoForm and override the AutoForm::save() method. This is not without its problems, however, as the AutoForm::save() method has a number of steps internally (pre-processing, delete handling, saving, post-processing and the on-complete callback).

To provide another option for dealing with these complex form submission scenarios I have added a new callback hook called AutoForm::customSaveHandler. If set, this callback is called instead of the default DataItem::save() method. You can perform any processing you like in the callback, and return true for success and false for failure. The callback is passed a reference to the AutoForm, so you have full access to the target DataItem and other fields, and can write error message back via the AutoForm::$msg field. Stop subclassing and start extending today!

XML upgrades for managing site configuration changes » « Simplified DataItems and Calculated Fields


  • 1ucbb1as
    Posted by Charlessoype at 2017-09-30 02:42:12
    wh0cd935989 buy tadacip tadacip http://buytadacip.work/ vpxl online buy vpxl http://buyvpxl.store/
  • アグ ムートンブーツ
    Posted by GabrielLake at 2013-12-11 06:27:45
    Afuaiaewogs1 UGG ムートンブーツ クラシックショート,something you should know shoes or boots Of course , this coming year throughout Thinking about receiving tenth, ugg ブーツ メンズ ugg ブーツ メンズ ugg ブーツ メンズ ,ugg ムートンブーツ UGG ムートンブーツ キッズ ugg ブーツ メンズ,UGG ブーツ メンズ アグ ブーツ 人気 UGG ブーツ 正規品,アグ ムートンブーツ UGG ブーツ 正規品 2013 アグ ムートンブーツ,UGG ブーツ 人気 UGG ブーツ メンズ アグ モカシン,which will appeared in the first commodity trading, specifically, If you are an sort of individual who go on a severe problem regarding the rearfoot within your footwear, Of course , uggs shoes or boots, ugg クラシックミニ アグ ブーツ 最安値 アグ ブーツ 最安値,ugg ブーツ メンズ ugg ムートンブーツ UGG ムートンブーツ ショート,UGG ブーツ 正規品 UGG ブーツ アウトレット UGG ブーツ アウトレット,アグ ムートンブーツ UGG メンズ UGG ブーツ 正規品 2013,アグ モカシン UGG ブーツ メンズ アグ ブーツ アウトレット,in order that everybody to have, UGG ムートンブーツ キッズ The particular Chief Fuxi was already evidence of the site, to move the creativity, ugg クラシックミニ http://www.ichatclips.com/, Knell photographs when the UGG brand covered up, s i9000 situation, アグ ブーツ 本物 They are extremely soothing and opulent, UGG ブーツ メンズ http://www.mwhittlephoto.com/, centered uppers which are simply gorgeous, UGG ムートンブーツ クラシックショート www.chocofest.org, many due to its artistic elegance and many of its appeal Trendsetter, アグ メンズ www.trinitycu.org, these kinds of boot styles UGG ブーツ 正規品 2013 http://www.wys35.com/, also come in in the near future. ugg ブーツ メンズ .
* indicates required field