Exemplo n.º 1
0
 /**
  *
  * @return Zupal_Musicbrainz_Artist
  */
 public static function getInstance()
 {
     if (is_null(self::$_Instance)) {
         self::$_Instance = new self();
     }
     return self::$_Instance;
 }
 /**
  *
  */
 public function artistsdataAction()
 {
     try {
         $this->_helper->layout->disableLayout();
         $this->_helper->viewRenderer->setNoRender();
         $artist = Zupal_Musicbrainz_Artist::getInstance();
         $data = array();
         $name = $this->_getParam('name', NULL);
         if ($name) {
             $data['name'] = $name;
         }
         echo $artist->render_data($data, $this->_getParam('start', 0), $this->_getParam('rows', 100), $this->_getParam('sort', 'name'));
     } catch (Exception $e) {
         error_log(print_r($e, 1));
         echo '{}';
     }
 }