/** * Passes the package the serializer has to be attached. * * @param Mage_Api_Model_User $user * The user logged into the system * @param Faett_Channel_Model_Package $package * The package to serializer has to be attached to * @param Faett_Channel_Model_Channel $channel * The channel itself * @return void */ public function __construct(Mage_Api_Model_User $user, Faett_Channel_Model_Package $package, Faett_Channel_Model_Channel $channel) { // call the parent constructor parent::__construct($user, $package); // set the channel itself $this->_channel = $channel; }
/** * Passes the package the serializer has to be attached. * * @param Mage_Api_Model_User $user * The user logged into the system * @param Faett_Channel_Model_Package $package * The package to serializer has to be attached to * @return void */ public function __construct(Mage_Api_Model_User $user, Faett_Channel_Model_Package $package) { // set the passed package Faett_Channel_Serializer_Release_Abstract::__construct($user, $package); // set the namespace $this->setNamespace(Faett_Channel_Serializer_Release_Abstract::REST_RELEASE); }