Exemplo n.º 1
0
 /**
 * $options => array(
        'namespace' => 'NetCore\Component',
 *      'inherited' => array('skin_path' => 'path/to/skins'),
        'allowed' => array(),
        'tag' => array(
            'namespace' => 'NetCore\Component',
            'allowed' => array('guest'),
            'tag_name' => 'span'
        ),
 *      'form' => array(
 *          'namespace' => 'NetCore\Component\Form',
 *          'allowed' => array('admin')
 *          'textInput' => array(
 *             'namespace' => 'NetCore\Component\Form\TextInput'
 *             'allowed' => array('moderator')
 *             'name' => 'default_input_name'
 *          )
    );
 *
 * @param array $options
 */
 public function __construct($options = array())
 {
     if (is_string($options)) {
         $options = array('namespace' => $options);
     }
     $this->options = $options;
     //Important! to store values for children
     parent::__construct($options);
 }
Exemplo n.º 2
0
 public function __construct($options = array())
 {
     parent::__construct($options);
 }