/** * 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); } }
/** * 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); } }