/** * This method runs after an item has been gotten from the database in a read * operation. You can modify it before it's returned to the MVC triad for * further processing. * * @param JTable &$record Param * * @return bool */ protected function onAfterGetItem(&$record) { jimport('extly.form.eform'); $record->xtform = EForm::paramsToRegistry($record); return parent::onAfterGetItem($record); }
protected function onAfterGetItem(&$record) { if (!empty($record->product_type)) { $this->addBehavior($record->product_type); } else { $this->addBehavior('simple'); } return parent::onAfterGetItem($record); }
/** * This method runs after an item has been gotten from the database in a read * operation. You can modify it before it's returned to the MVC triad for * further processing. * * @param JTable &$record Param * * @return bool */ protected function onAfterGetItem(&$record) { $record->xtform = EForm::paramsToRegistry($record); return parent::onAfterGetItem($record); }