public function generateConstructor($code) { parent :: generateConstructor($code); if (array_key_exists('display_name', $this->attributes)) { $code->writePhp($this->getComponentRefCode() . '->display_name = \'' . $this->attributes['display_name'] . '\';'); unset($this->attributes['display_name']); } }
public function generateConstructor($code) { parent::generateConstructor($code); if (array_key_exists('error_class', $this->attributes)) { $code->writePhp($this->getComponentRefCode() . '->error_class = \'' . $this->attributes['error_class'] . '\';'); unset($this->attributes['error_class']); } if (array_key_exists('error_style', $this->attributes)) { $code->writePhp($this->getComponentRefCode() . '->error_style = \'' . $this->attributes['error_style'] . '\';'); unset($this->attributes['error_style']); } }