function setName($name) { $this->class_name = $name; parent::setName($name); $this->is_active = true; if ($this->owner instanceof Doc_Page) { $this->is_active = $this->owner->subPage($this->short_name, $name); } if ($this->is_active) { $this->initMethods(); } return $this; }