Example #1
0
 function unpublish()
 {
     EnmasseHelper::changePublishState(0, 'enmasse_taxes', 'tax', 'tax');
 }
Example #2
0
 function unpublish()
 {
     EnmasseHelper::changePublishState(0, 'enmasse_deal', 'deal', 'deal');
 }
Example #3
0
 function unpublish()
 {
     EnmasseHelper::changePublishState(0, 'enmasse_category', 'category', 'category');
 }
Example #4
0
 function unpublish()
 {
     EnmasseHelper::changePublishState(0, 'enmasse_location', 'location', 'location');
 }
Example #5
0
 function unpublish()
 {
     $id = JRequest::getVar('changeId');
     $cid = JRequest::getVar('cid', array(), '', 'array');
     if ($id != null && !empty($id) && $cid != null && !empty($cid)) {
         JArrayHelper::toInteger($cid);
         // change all deals to be assigned to new Sales Person
         JModel::getInstance('deal', 'enmasseModel')->updateSalePerson($id, $cid);
         // change all merchants to be assigned to new Sales Person
         JModel::getInstance('merchant', 'enmasseModel')->updateSalePerson($id, $cid);
     }
     // unpublish old Sales Person(s)
     EnmasseHelper::changePublishState(0, 'enmasse_sales_person', 'salesPerson', 'salesPerson');
 }
Example #6
0
 function unpublish()
 {
     EnmasseHelper::changePublishState(0, 'enmasse_merchant_branch', 'merchant', 'merchant');
 }
Example #7
0
 function unpublish()
 {
     EnmasseHelper::changePublishState(0, 'enmasse_pay_gty', 'payGty', 'payGty');
 }