Esempio n. 1
0
 /**
  * Pass the contruction call the parent and set up the name-alias relationship
  * @param integer $id The id of the object
  * @param string $alias The alias and name of the menusection
  * @return void
  */
 function __construct($id = false)
 {
     parent::__construct($id);
     $this->loadAliases();
     $this->Name = $this->alias;
     Base::registerMetadata('template', 'inherit');
 }
Esempio n. 2
0
 /**
  * Menu constructor.
  * @param $children
  */
 public function __construct(array $children = array(), $displayName = null, $action = null, $iconClass = null, $className = null)
 {
     parent::__construct($displayName, $action, $iconClass, $className);
     if (is_null($children)) {
         $children = array();
     }
     $this->children = $children;
 }
Esempio n. 3
0
 public function __construct($name, array $items = null, $label = null, $icon = null, $data = null)
 {
     parent::__construct($name, $label, $icon, null, null, $data);
     if (!empty($items)) {
         foreach ($items as $item) {
             $this->addItem($item);
         }
     }
 }
 public function __construct($data = null)
 {
     parent::__construct($data);
     if (is_array($data)) {
         $checks = array('pageId' => 'is_mongoid');
         if (!KLib\Validator::arrayCheck($data, $checks)) {
             throw new Exception('INVALID PARAMETER MENUITEMINTERNAL', 500);
         }
         $this->setPageId($data['pageId']);
     }
 }
Esempio n. 5
0
 /**
  * Class constructor
  * 
  * @see MenuItem
  * @param array   $attributes
  * @param string  $childClass The class to use if instantiating children menu items
  */
 public function __construct($attributes = array(), $childClass = 'Bundle\\MenuBundle\\MenuItem')
 {
     $this->childClass = $childClass;
     parent::__construct(null, null, $attributes);
 }
Esempio n. 6
0
 /**
  * Constructor. Load the properties of the link
  * @param integer $id The id from the controller
  * @return void
  */
 function __construct($id, $language = false)
 {
     parent::__construct($id, $language);
     Base::registerMetadata('link');
 }
Esempio n. 7
0
 /**
  * Passes the construct call and loads information about the page
  */
 function __construct($id = false, $language = false)
 {
     parent::__construct($id, $language);
     parent::registerMetadata('template', 'inherit');
 }
 /**
  * Constructor
  * 
  * @param string $text
  * @param optional $index
  * @return void
  * @access public
  * @since 9/25/07
  */
 public function __construct($text, $index = 1)
 {
     parent::__construct($text, $index);
     $this->_type = BLANK;
 }
Esempio n. 9
0
 public function __construct($name, $href, $icon)
 {
     parent::__construct($name, $href);
     $this->icon = $icon;
 }