public function getPage() { if (!$this->_page) { if ($this->_parent) { $this->_page = $this->_parent->getPage(); } else { if ($this->_tplControl) { $this->_page = $this->_tplControl->getPage(); } } } return $this->_page; }