コード例 #1
0
 public static function getInstance()
 {
     if (self::$_instance === null) {
         self::$_instance = new self();
         self::$_instance->_table = 'user_article';
     }
     return self::$_instance;
 }
コード例 #2
0
 public function unreadAction()
 {
     $this->view->article = Application_Model_UserArticleRepository::getInstance()->unread($this->getParam('id'));
 }