/** * * @return Zupal_People */ public static function getInstance() { if (is_null(self::$_Instance)) { // process self::$_Instance = new self(); } return self::$_Instance; }
function target($pReload = FALSE) { if ($pReload || is_null($this->_target)) { switch (strtolower($this->target_type)) { case 'artist': $value = Zupal_Media_Musicbrains_Artists::getInstance()->get($this->target); break; case 'release': $value = Zupal_Media_Musicbrains_Releases::getInstance()->get($this->target); break; default: $value = NULL; } // process $this->_target = $value; } return $this->_target; }