/** * * @param code $ _writer * @return void * @access protected */ function generate_constructor(&$code) { parent::generate_constructor($code); if (array_key_exists('display_name', $this->attributes)) { $code->write_php($this->get_component_ref_code() . '->display_name = \'' . $this->attributes['display_name'] . '\';'); unset($this->attributes['display_name']); } }
/** * * @param code $ _writer * @return void * @access protected */ function generate_constructor(&$code) { parent::generate_constructor($code); if (array_key_exists('error_class', $this->attributes)) { $code->write_php($this->get_component_ref_code() . '->error_class = \'' . $this->attributes['error_class'] . '\';'); unset($this->attributes['error_class']); } if (array_key_exists('error_style', $this->attributes)) { $code->write_php($this->get_component_ref_code() . '->error_style = \'' . $this->attributes['error_style'] . '\';'); unset($this->attributes['error_style']); } }