public function preGenerate($code) { $this->attributes['type'] = 'hidden'; $code->writePhp($this->getComponentRefCode() . '->init_file_select();'); parent :: preGenerate($code); }
public function preGenerate($code) { if(isset($this->attributes['attach_form_prefix'])) $code->writePhp($this->getComponentRefCode() . '->attach_form_prefix(true);'); else $code->writePhp($this->getComponentRefCode() . '->attach_form_prefix(false);'); parent :: preGenerate($code); }
public function preGenerate($code) { $name = '$' . $code->getTempVariable(); $parent = $this->getDataspaceRefCode(); $ref = $this->getComponentRefCode(); $code->writePhp(" if ({$name} = {$parent}->get('" . $this->attributes['name']. "')) {$ref}->set_attribute('name', {$name}); "); parent :: preGenerate($code); }
public function preGenerate($code) { $code->writePhp($this->getComponentRefCode() . '->init_date();'); parent :: preGenerate($code); }
public function preGenerate($code) { $this->attributes['type'] = 'hidden'; parent :: preGenerate($code); }