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(); }
/** * @see ObjectModel::toggleStatus() */ public function toggleStatus() { $result = parent::toggleStatus(); Hook::exec('actionCategoryUpdate'); return $result; }
public function toggleStatus() { if (parent::toggleStatus()) { return $this->onStatusChange(); } return false; }