init() public method

Initialization.
public init ( )
Ejemplo n.º 1
0
 public function init()
 {
     parent::init();
     if (isset($this->owner) && isset($this->owner->template_file)) {
         $this->addMoreInfo('file', $this->owner->template_file);
     }
     $keys = array_keys($this->owner->tags);
     if (!empty($keys)) {
         $this->addMoreInfo('keys', implode(', ', $keys));
     }
     if (isset($this->owner->source)) {
         $this->addMoreInfo('source', $this->owner->source);
     }
 }
Ejemplo n.º 2
0
 function init()
 {
     parent::init();
     if (@$this->owner->template_file) {
         $this->addMoreInfo('file', $this->owner->template_file);
     }
     $keys = array_keys($this->owner->tags);
     if ($keys) {
         $this->addMoreInfo('keys', implode(', ', $keys));
     }
     if ($this->owner->source) {
         $this->addMoreInfo('source', $this->owner->source);
     }
 }