public function init($control = '', $field = '', $title = '', $alinhamento = null, $nowrap = false, $width = 0, $visible = true) { parent::init($control, $title, $alinhamento, $nowrap, $width, $visible); if ($field) { $this->setField($field); } }
public function init(&$control, $attribute, $title = '', $alinhamento = null, $nowrap = false, $width = 0, $visible = true) { parent::init($control, $title, $alinhamento, $nowrap, $width, $visible); $this->attribute = $attribute; }