/** * Construct an object setting the id, name and resource properties * if the id is not given the construct will return an exception * * @param string $psId * - Instance identifier. * @param string $psResource * @throws Exception */ public function __construct($psId, $psResource = null) { return parent::__construct($psId, $psResource); }
/** * Change the Section value from the internal object elements * * @param string $psSectionName * @param string $psParentId * @return Onion\Application\Module */ public function replaceSection($psSectionName = "", $psParentId = "") { return parent::_replaceSection('_controllers', $psSectionName, $this->_id); }
/** * Return an array lagacy to the old version of the object * * @param $psParams * @return array|null */ public function legacy($psParams = "") { return parent::legacy($psParams); }
/** * Load the Options object from array object * or the entire array if $pmColumnId = null * * @param int|string $pmColOptionsId * @param boolean $pbValid * @throws Exception * @return Onion\Application\Element\Options|array|null */ public function getColOptions($pmColOptionsId = null, $pbValid = true) { return parent::getElement('_colOptions', $pmColOptionsId, $pbValid); }
/** * Change the Section value from the internal object elements * * @param string $psSectionName * @param string $psParentId * @return Onion\Application\Action */ public function replaceSection($psSectionName = "", $psParentId = "") { parent::_replaceSection('_options', $psSectionName, $psParentId); parent::_replaceSection('_grid', $psSectionName, $psParentId); parent::_replaceSection('_filter', $psSectionName, $psParentId); return $this; }
/** * Change the Section value from the internal object elements * * @param string $psSectionName * @param string $psParentId * @return Onion\Application\Section */ public function replaceSection($psSectionName = "", $psParentId = "") { return parent::_replaceSection('_modules', $this->_id, $this->_id); }
/** * Remove a separate from the array object * * @param string $pnIndex * @return Onion\Application\Element\Options */ public function removeSeparate($pnIndex) { return parent::remove('_itens', $pnIndex); }