Exemplo n.º 1
0
 /**
  * @param unknown_type $Where
  * @param unknown_type $Limit
  * @param unknown_type $ResetData
  * @todo add doc
  */
 public function Delete($Where = '', $Limit = FALSE, $ResetData = FALSE)
 {
     if (is_numeric($Where)) {
         $Where = array($this->PrimaryKey => $Where);
     }
     if ($ResetData) {
         $Result = $this->SQL->Delete($this->Name, $Where, $Limit);
     } else {
         $Result = $this->SQL->NoReset()->Delete($this->Name, $Where, $Limit);
     }
     return $Result;
 }
Exemplo n.º 2
0
 /**
  * @param unknown_type $Where
  * @param unknown_type $Limit
  * @param unknown_type $ResetData
  * @todo add doc
  */
 public function Delete($Where = '', $Limit = FALSE, $ResetData = FALSE)
 {
     if (is_numeric($Where)) {
         $Where = array($this->Name . 'ID' => $Where);
     }
     if ($ResetData) {
         $this->SQL->Delete($this->Name, $Where, $Limit);
     } else {
         $this->SQL->NoReset()->Delete($this->Name, $Where, $Limit);
     }
 }
Exemplo n.º 3
0
 /**
  * @param unknown_type $Where
  * @param unknown_type $Limit
  * @param unknown_type $ResetData
  * @todo add doc
  */
 public function Delete($Where = '', $Limit = FALSE, $ResetData = FALSE)
 {
     if ($ResetData) {
         $this->SQL->Delete($this->Name, $Where, $Limit);
     } else {
         $this->SQL->NoReset()->Delete($this->Name, $Where, $Limit);
     }
 }