We extended some classes from FuelPHP. The additions we made are listed in this page.
Controller_Admin_Page
controller, its filename can either be
classes/controller/admin/page.php
or classes/controller/admin/page.ctrl.php
.__construct() will try to create the specified cache directory when it doesn’t exists.
send(): we added two events email.before_send
and email.after_send
Added two methods register_function() and trigger_function() to deal with by-reference arguments.
Autoloader
, see above)Added a cache for Model::$_properties
Added behaviours
Added somes relations
Added two options in build options:
before_where: Anarray
,search_column
=>$replace
, where$replace
can be a string or aclosure
which takes the$condition
array by parameterIf$replace
return null, the$condition
will be remove from thewhere
optionsbefore_order_by: Anarray
,search_column
=>$replace
, where$replace
can be a string or aclosure
which takes the entry column by parameterIf$replace
return null, the column will be remove from theorder_by
options