Beispiel #1
0
 /**
  * Constructor
  * 
  * @param Zend_Db_Adapter_Abstract $db
  * @param int $post_id 
  */
 public function __construct($db, $post_id = null)
 {
     $this->_config['db'] = $db;
     parent::__construct($this->_config);
     if ($post_id > 0) {
         $this->setPostId($post_id);
     }
 }
Beispiel #2
0
 /**
  * Constructor
  * 
  * @param Zend_Db_Adapter_Abstract $db
  * @param int $user_id 
  */
 public function __construct($db, $user_id = null)
 {
     $this->_config['db'] = $db;
     parent::__construct($this->_config);
     if ($user_id > 0) {
         $this->setUserId($user_id);
     }
 }