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