コード例 #1
0
 /**
  *
  * @return Zupal_Musicbrainz_Link_Attribute
  */
 public static function getInstance()
 {
     if (is_null(self::$_Instance)) {
         self::$_Instance = new self();
     }
     return self::$_Instance;
 }
コード例 #2
0
ファイル: Artist.php プロジェクト: BGCX262/zupal-svn-to-git
 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;
 }