public function __toString() { if (!$this->pageName) { if ($this->oldTitle) { return $this->oldTitle; } return '-------'; } return $this->pageName; }