/**
  * __construct() assigns pid, calls the parent construct, registers page actions
  * @access public
  * @author Sam West aka Nimmit - osc@kangaroopartners.com
  * @param $intPID int
  * @return void
  */
 function attributeManagerInstant($intPID)
 {
     parent::attributeManager();
     $this->intPID = (int) $intPID;
     $this->registerPageAction('addAttributeToProduct', 'addAttributeToProduct');
     $this->registerPageAction('addOptionValueToProduct', 'addOptionValueToProduct');
     $this->registerPageAction('addNewOptionValueToProduct', 'addNewOptionValueToProduct');
     $this->registerPageAction('removeOptionFromProduct', 'removeOptionFromProduct');
     $this->registerPageAction('removeOptionValueFromProduct', 'removeOptionValueFromProduct');
     // QT Pro Plugin
     $this->registerPageAction('RemoveStockOptionValueFromProduct', 'RemoveStockOptionValueFromProduct');
     $this->registerPageAction('AddStockToProduct', 'AddStockToProduct');
     // QT Pro Plugin
     $this->registerPageAction('update', 'update');
     $this->registerPageAction('updateProductStockQuantity', 'updateProductStockQuantity');
     if (AM_USE_SORT_ORDER) {
         $this->registerPageAction('moveOption', 'moveOption');
         $this->registerPageAction('moveOptionValue', 'moveOptionValue');
     }
     //----------------------------
     // Change: Add download attributes function for AM
     // @author Urs Nyffenegger ak mytool
     // Function: register PageActions for Download options
     //-----------------------------
     $this->registerPageAction('addDownloadAttributeToProduct', 'addDownloadAttributeToProduct');
     $this->registerPageAction('updateDownloadAttributeToProduct', 'updateDownloadAttributeToProduct');
     $this->registerPageAction('removeDownloadAttributeToProduct', 'removeDownloadAttributeToProduct');
     //----------------------------
     // EOF Change: download attributes for AM
     //-----------------------------
 }
 /**
  * __construct() assigns pid, calls the parent construct, registers page actions
  * @access public
  * @author Sam West aka Nimmit - osc@kangaroopartners.com
  * @param $intPID int
  * @return void
  */
 function attributeManagerInstant($intPID)
 {
     parent::attributeManager();
     $this->intPID = (int) $intPID;
     $this->registerPageAction('addAttributeToProduct', 'addAttributeToProduct');
     $this->registerPageAction('addOptionValueToProduct', 'addOptionValueToProduct');
     $this->registerPageAction('addNewOptionValueToProduct', 'addNewOptionValueToProduct');
     $this->registerPageAction('removeOptionFromProduct', 'removeOptionFromProduct');
     $this->registerPageAction('removeOptionValueFromProduct', 'removeOptionValueFromProduct');
     $this->registerPageAction('update', 'update');
     if (AM_USE_SORT_ORDER) {
         $this->registerPageAction('moveOptionUp', 'moveOptionUp');
         $this->registerPageAction('moveOptionDown', 'moveOptionDown');
         $this->registerPageAction('moveOptionValueUp', 'moveOptionValueUp');
         $this->registerPageAction('moveOptionValueDown', 'moveOptionValueDown');
     }
 }
 /**
  * __constrct - Assigns the session variable and calls the parent construct registers page actions
  * @access public
  * @author Sam West aka Nimmit - osc@kangaroopartners.com
  * @param $arrSessionVar array - passed by Ref
  * @return void
  */
 function attributeManagerAtomic(&$arrSessionVar)
 {
     parent::attributeManager();
     $this->arrSessionVar =& $arrSessionVar;
     $this->registerPageAction('addAttributeToProduct', 'addAttributeToProduct');
     $this->registerPageAction('addOptionValueToProduct', 'addOptionValueToProduct');
     $this->registerPageAction('addNewOptionValueToProduct', 'addNewOptionValueToProduct');
     $this->registerPageAction('removeOptionFromProduct', 'removeOptionFromProduct');
     $this->registerPageAction('removeOptionValueFromProduct', 'removeOptionValueFromProduct');
     $this->registerPageAction('update', 'update');
     if (AM_USE_SORT_ORDER) {
         $this->registerPageAction('moveOptionUp', 'moveOptionUp');
         $this->registerPageAction('moveOptionDown', 'moveOptionDown');
         $this->registerPageAction('moveOptionValueUp', 'moveOptionValueUp');
         $this->registerPageAction('moveOptionValueDown', 'moveOptionValueDown');
     }
 }
 /**
  * __constrct - Assigns the session variable and calls the parent construct registers page actions
  * @access public
  * @author Sam West aka Nimmit - osc@kangaroopartners.com
  * @param $arrSessionVar array - passed by Ref
  * @return void
  */
 function attributeManagerAtomic(&$arrSessionVar)
 {
     parent::attributeManager();
     $this->arrSessionVar =& $arrSessionVar;
     $this->registerPageAction('addAttributeToProduct', 'addAttributeToProduct');
     $this->registerPageAction('addOptionValueToProduct', 'addOptionValueToProduct');
     $this->registerPageAction('addNewOptionValueToProduct', 'addNewOptionValueToProduct');
     $this->registerPageAction('removeOptionFromProduct', 'removeOptionFromProduct');
     $this->registerPageAction('removeOptionValueFromProduct', 'removeOptionValueFromProduct');
     // QT Pro Plugin
     $this->registerPageAction('removeStockOptionValueFromProduct', 'removeStockOptionValueFromProduct');
     $this->registerPageAction('addStockToProduct', 'addStockToProduct');
     $this->registerPageAction('updateProductStockQuantity', 'updateProductStockQuantity');
     // QT Pro Plugin
     $this->registerPageAction('update', 'update');
     if (AM_USE_SORT_ORDER) {
         $this->registerPageAction('moveOption', 'moveOption');
         $this->registerPageAction('moveOptionDown', 'moveOptionDown');
         $this->registerPageAction('moveOptionValue', 'moveOptionValue');
         $this->registerPageAction('moveOptionValueDown', 'moveOptionValueDown');
     }
 }