コード例 #1
0
ファイル: BlogPostTag.php プロジェクト: bsa-git/zf-myblog
 /**
  * Constructor
  * 
  * @param Zend_Db_Adapter_Abstract $db
  */
 public function __construct($db)
 {
     $this->_config['db'] = $db;
     parent::__construct($this->_config);
     $this->add('post_id');
     $this->add('tag');
     $this->add('label');
 }
コード例 #2
0
ファイル: BlogPostImage.php プロジェクト: bsa-git/zf-myblog
 /**
  * Constructor
  * 
  * @param Zend_Db_Adapter_Abstract $db
  */
 public function __construct($db)
 {
     $this->_config['db'] = $db;
     parent::__construct($this->_config);
     $this->add('filename');
     $this->add('post_id');
     $this->add('ranking');
     $this->add('comment');
 }
コード例 #3
0
ファイル: BlogInfo.php プロジェクト: bsa-git/zf-myblog
 /**
  * Constructor
  * 
  * @param Zend_Db_Adapter_Abstract $db
  */
 public function __construct($db)
 {
     $this->_config['db'] = $db;
     parent::__construct($this->_config);
     $this->add('info_key');
     $this->add('title_info');
     $this->add('actual', 1, self::TYPE_BOOLEAN);
     $this->profile = new Default_Model_DbTable_BlogInfoProfile($db);
 }
コード例 #4
0
ファイル: BlogLog.php プロジェクト: bsa-git/zf-myblog
 /**
  * Constructor
  * 
  * @param Zend_Db_Adapter_Abstract $db
  * @param string $nameTable 
  */
 public function __construct($db, $nameTable)
 {
     $this->_config['db'] = $db;
     $this->_config['name'] = $nameTable;
     parent::__construct($this->_config);
     $this->add('ts', time(), self::TYPE_TIMESTAMP);
     $this->add('msg');
     $this->add('pr');
     $this->add('pr_name');
 }
コード例 #5
0
ファイル: BlogPostComment.php プロジェクト: bsa-git/zf-myblog
 /**
  * Constructor
  * 
  * @param Zend_Db_Adapter_Abstract $db
  */
 public function __construct($db)
 {
     $this->_config['db'] = $db;
     parent::__construct($this->_config);
     $this->add('ts', time(), self::TYPE_TIMESTAMP);
     $this->add('post_id');
     $this->add('user_id');
     $this->add('reply_id', 0);
     $this->add('comment', "", self::TYPE_HTML);
 }
コード例 #6
0
ファイル: BlogPostVideo.php プロジェクト: bsa-git/zf-myblog
 /**
  * Constructor
  * 
  * @param Zend_Db_Adapter_Abstract $db
  */
 public function __construct($db)
 {
     $this->_config['db'] = $db;
     parent::__construct($this->_config);
     $this->add('type');
     $this->add('identifier');
     $this->add('post_id');
     $this->add('ranking');
     $this->add('name');
     $this->add('comment', "", self::TYPE_HTML);
 }
コード例 #7
0
ファイル: BlogPost.php プロジェクト: bsa-git/zf-myblog
 /**
  * Constructor
  * 
  * @param Zend_Db_Adapter_Abstract $db
  */
 public function __construct($db)
 {
     $this->_config['db'] = $db;
     parent::__construct($this->_config);
     $this->add('user_id');
     $this->add('url');
     $this->add('ts_created', time(), self::TYPE_TIMESTAMP);
     $this->add('status', self::STATUS_DRAFT);
     $this->add('actual', 1, self::TYPE_BOOLEAN);
     $this->profile = new Default_Model_DbTable_BlogPostProfile($db);
 }
コード例 #8
0
 /**
  * Constructor
  * 
  * @param Zend_Db_Adapter_Abstract $db
  */
 public function __construct($db)
 {
     $this->_config['db'] = $db;
     parent::__construct($this->_config);
     $this->add('post_id');
     $this->add('longitude');
     $this->add('latitude');
     $this->add('description');
     $this->add('content', NULL, self::TYPE_HTML);
     $this->add('correction', 0);
     $this->add('details', NULL, self::TYPE_HTML);
 }
コード例 #9
0
ファイル: User.php プロジェクト: bsa-git/zf-myblog
 /**
  * Constructor
  * 
  * @param Zend_Db_Adapter_Abstract $db
  */
 public function __construct($db)
 {
     $this->_config['db'] = $db;
     parent::__construct($this->_config);
     $this->add('username', NULL, NULL);
     $this->add('password', NULL, NULL);
     //        $this->add('user_type', self::$userTypes['member'], NULL);
     $this->add('user_type', self::$userTypes['commentator'], NULL);
     $this->add('ts_created', time(), self::TYPE_TIMESTAMP);
     $this->add('ts_last_login', NULL, self::TYPE_TIMESTAMP);
     $this->add('actual', 1, self::TYPE_BOOLEAN);
     $this->profile = new Default_Model_DbTable_UserProfile($db);
 }