Esempio n. 1
0
 /**
  * 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);
 }
Esempio n. 2
0
 /**
  * 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);
 }
Esempio n. 3
0
 /**
  * Return an array lagacy to the old version of the object
  *
  * @param $psParams
  * @return array|null
  */
 public function legacy($psParams = "")
 {
     return parent::legacy($psParams);
 }
Esempio n. 4
0
 /**
  * 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);
 }
Esempio n. 5
0
 /**
  * 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;
 }
Esempio n. 6
0
 /**
  * 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);
 }
Esempio n. 7
0
 /**
  * Remove a separate from the array object
  *
  * @param string $pnIndex
  * @return Onion\Application\Element\Options
  */
 public function removeSeparate($pnIndex)
 {
     return parent::remove('_itens', $pnIndex);
 }