Flake\Core\Model\Db::destroy PHP Method

destroy() public method

public destroy ( )
    function destroy()
    {
        $GLOBALS["DB"]->exec_DELETEquery(self::getDataTable(), self::getPrimaryKey() . "='" . $GLOBALS["DB"]->quote($this->getPrimary()) . "'");
    }

Usage Example

Esempio n. 1
0
 public function destroy()
 {
     $oContacts = $this->getContactsBaseRequester()->execute();
     foreach ($oContacts as $contact) {
         $contact->destroy();
     }
     parent::destroy();
 }
All Usage Examples Of Flake\Core\Model\Db::destroy