Example #1
0
 public function toggleStatus()
 {
     $db = JFacctory::getDBO();
     parent::toggleStatus();
     /* Change status to active/inactive */
     $query = "UPDATE " . $db->quoteName('#__jeproshop_customer') . " SET " . $db->quoteName('date_upd') . " = NOW() WHERE " . $db->quoteName('customer_id') . " = " . (int) $this->customer_id;
     $db->setQuery($query);
     return $db->query();
 }
Example #2
0
 /**
  * @see ObjectModel::toggleStatus()
  */
 public function toggleStatus()
 {
     $result = parent::toggleStatus();
     Hook::exec('actionCategoryUpdate');
     return $result;
 }
Example #3
0
 public function toggleStatus()
 {
     if (parent::toggleStatus()) {
         return $this->onStatusChange();
     }
     return false;
 }