/** * Constructor * * @param Zend_Db_Adapter_Abstract $db * @param int $user_id * @param int $post_id */ public function __construct($db, $user_id, $post_id = 0) { $this->db = $db; $this->user = new Default_Model_DbTable_User($db); $this->user->load($user_id); $this->post = new Default_Model_DbTable_BlogPost($db); $this->post->loadForUser($this->user->getId(), $post_id); if (!$this->post->isSaved()) { $this->post->user_id = $this->user->getId(); } parent::__construct(); }
/** * Constructor * * @param Zend_Db_Adapter_Abstract $db * @param int $post_id */ public function __construct($post_id = 0) { $this->post_id = $post_id; parent::__construct(); }
/** * Constructor * * @param mixed $options * @return void */ public function __construct($options = null) { parent::__construct($options); }
/** * Constructor * */ public function __construct() { parent::__construct(); }
/** * Constructor * * @param Zend_Db_Adapter_Abstract $db * @param string $username * @param int $post_id */ public function __construct($username, $post_id = 0) { $this->username = $username; $this->post_id = $post_id; parent::__construct(); }