protected function onRender()
 {
     $components = $this->getRenderArray();
     Args::isArray($components, 'getRenderArray return value');
     foreach ($components as $index => $component) {
         $this->renderChild($component);
     }
 }
示例#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;
     }
 }
示例#3
0
 /**
  *
  * @param array $object 
  */
 public function __construct(&$object)
 {
     Args::isArray($object, 'object');
     $this->object =& $object;
 }
示例#4
0
 /**
  *
  * @param array $children 
  */
 public function setChildren($children)
 {
     Args::isArray($children, 'children');
     $this->children = $children;
 }