public function getTitle() { if ($this->title != '') { return $this->title; } // get view class by type $strClass = $GLOBALS['WLV'][$this->type]; if (!class_exists($strClass)) { return; } $strategy = new $strClass(); $view = new WatchlistItemView($strategy); return $view->getTitle($this); }