/** * * @return Zupal_Musicbrainz_Link_Attribute */ public static function getInstance() { if (is_null(self::$_Instance)) { self::$_Instance = new self(); } return self::$_Instance; }
function attrs($pReload = FALSE) { if ($pReload || is_null($this->_attribute)) { $attr_table = Zupal_Musicbrainz_Link_Attribute::getInstance(); $attrs = $attr_table->find(array('link' => $this->identity(), 'link_type' => 'artist_artist')); // process $this->_attribute = $attrs; } return $this->_attribute; }