15
Hi
suggestions for next version:
Table name e.g.: mytable
if you refer to an array you use mytable_arr, thats fine.
if you refer to a handler you use
$obj = $mytableHandler->get($_REQUEST["mytable_id"]);
it woult be fine, if object name is also more expressive like
$mytable_obj = $mytableHandler->get($_REQUEST["mytable_id"]);
, especially if you copy code blockes from one into another file and if you use there different handlers
the same should be if you work with criterias, please generate
$crit_mytable = new CriteriaCompo();
$crit_mytable->setSort("mytable_id ASC, mytable_type");
$crit_mytable->setOrder("ASC");
$mytable_arr = $mytableHandler->getall($crit_mytable);
instead of
$criteria = new CriteriaCompo();
$criteria->setSort("mytable_id ASC, mytable_type");
$criteria->setOrder("ASC");
$mytable_arr = $mytableHandler->getall($criteria);