Exemplo n.º 1
0
 protected function onRender()
 {
     $components = $this->getRenderArray();
     Args::isArray($components, 'getRenderArray return value');
     foreach ($components as $index => $component) {
         $this->renderChild($component);
     }
 }
Exemplo n.º 2
0
 /**
  *
  * @param string $id
  * @param array $choices
  * @param Model $model 
  */
 public function __construct($id, $choices, ChoiceRenderer $choiceRenderer = null, Model $model = null, $isDisabled = null)
 {
     parent::__construct($id, $model);
     Args::isArray($choices, 'choices');
     $this->choices = $choices;
     if ($choiceRenderer == null) {
         $choiceRenderer = new ChoiceRenderer();
     }
     $this->choiceRenderer = $choiceRenderer;
     if ($isDisabled != null) {
         Args::callBackArgs($isDisabled, 2, 'isDisabled');
         $this->isDisabled = $isDisabled;
     }
 }
Exemplo n.º 3
0
 /**
  *
  * @param array $object 
  */
 public function __construct(&$object)
 {
     Args::isArray($object, 'object');
     $this->object =& $object;
 }
Exemplo n.º 4
0
 /**
  *
  * @param array $children 
  */
 public function setChildren($children)
 {
     Args::isArray($children, 'children');
     $this->children = $children;
 }