Example #1
0
 /**
  * Passes the user for validation purposes.
  *
  * @param Mage_Api_Model_User $user
  * 		The user logged into the system
  * @param Faett_Channel_Model_Channel $channel
  * 		The channel itself
  * @return void
  */
 public function __construct(Mage_Api_Model_User $user, Faett_Channel_Model_Channel $channel)
 {
     // call the parent constructor
     parent::__construct($user);
     // set the channel itself
     $this->_channel = $channel;
 }
 /**
  * Passes the category the serializer has to be attached.
  *
  * @param Mage_Api_Model_User $user
  * 		The user logged into the system
  * @param Faett_Channel_Model_Category $category
  * 		The category the serializer has to be attached to
  * @return void
  */
 public function __construct(Mage_Api_Model_User $user, Faett_Channel_Model_Category $category)
 {
     Faett_Channel_Serializer_Abstract::__construct($user);
     $this->_category = $category->setSerializer($this);
 }
 /**
  * Passes the maintainer the serializer has to be attached.
  *
  * @param Mage_Api_Model_User $user
  * 		The user logged into the system
  * @param Faett_Channel_Model_Maintainer $maintainer
  * 		The maintainer to serializer has to be attached to
  * @return void
  */
 public function __construct(Mage_Api_Model_User $user, Faett_Channel_Model_Maintainer $maintainer)
 {
     Faett_Channel_Serializer_Abstract::__construct($user);
     $this->_maintainer = $maintainer->setSerializer($this);
 }
 /**
  * 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)
 {
     Faett_Channel_Serializer_Abstract::__construct($user);
     $this->_package = $package->setSerializer($this);
 }