Beispiel #1
0
 function remove()
 {
     jimport('joomla.filesystem.file');
     $data = $this->find(' path = ' . $this->db->Quote($this->path));
     if ($data && $this->_db->getNumRows($this->_db->query()) == 1) {
         JFile::delete($this->path);
     }
     parent::delete();
 }
Beispiel #2
0
 function delete($id, $tUser)
 {
     $tUser->memtot--;
     $query = "update " . $tUser->getTableName() . " set memtot= " . $tUser->memtot . " where userId = " . $tUser->userId;
     $tUser->_db->setQuery($query);
     $tUser->_db->query();
     $fee = $tUser->calculateFee();
     $fee->paid_amount = $tUser->TableFee->paid_amount;
     $tUser->TableFee->save((array) $fee);
     parent::delete($id);
 }
Beispiel #3
0
 function delete($id = 0)
 {
     $this->query("delete from #__dtregister_permissions where aro_id=" . $id);
     parent::delete($id);
 }
Beispiel #4
0
 function delete($id = null)
 {
     $this->TableUserfield->removeByUserId($id ? $id : $this->userId);
     $this->TableMember->removeByUserId($id ? $id : $this->userId);
     $this->TableFee->removeByUserId($id ? $id : $this->userId);
     $this->TableCard->removeByUserId($id ? $id : $this->userId);
     parent::delete($id);
 }
Beispiel #5
0
 function delete($id)
 {
     parent::delete($id);
     $this->slabId = $id;
     $this->setChilds();
     if ($this->childs) {
         foreach ($this->childs as $child) {
             $removeEvent = new TableEvent($this->_db);
             $removeEvent->delete($child->slabId);
             unset($removeEvent);
         }
     }
     $this->TablePrerequisitecategory->event_id = $id;
     $this->removeprequisitecategory();
     $this->TablePrerequisite->event_id = $id;
     $this->removeprequisite();
     $this->TableGroup->slabId = $id;
     $this->removegroups();
     $this->TableEventdiscountcode->event_id = $id;
     $this->removediscountcode();
     $this->TableEventfield->event_id = $id;
     $this->removefields();
     $this->TableEventfeeorder->removeByeventId($id);
     $this->TableEventfile->removeByevent_id($id);
     $user = DtrModel::getInstance('user', 'DtregisterModel');
     $tUser = $user->table;
     $tUser->removeByeventId($id);
 }
Beispiel #6
0
 function delete()
 {
     echo "<br />" . ($sql = "Delete From #__dtregister_field_event Where field_id=" . $this->id);
     //$database->setQuery($sql);
     //$database->query();
     $arrNotDelete = array('firstname', 'lastname', 'email');
     if (in_array($this->name, $arrNotDelete)) {
         $this->error = JText::_('DT_COMPULSARY_FIELD');
         return false;
     } else {
         parent::delete();
     }
     return true;
 }