public function Remove() { if (!DMS_documents::DeleteAllDocument($this->ContractID, "contract")) { ExceptionHandler::PushException("خطا در حذف مدارک"); return false; } return parent::Remove(); }
function Remove($pdo = null) { $dt = parent::runquery("select * from PLN_Elements where GroupID=?", array($this->GroupID)); if (count($dt) > 0) { return false; } parent::Remove($pdo); }
public function Remove($pdo = null) { $res = parent::runquery("select count(*) from CNT_ContractItems where TemplateItemID = ? limit 1", array($this->TemplateItemID), $pdo); if ($res[0]['count(*)'] > 0) { throw new Exception(self::UsedTemplateItem); /*parent::PushException("UsedTemplateItem"); return false;*/ } return parent::Remove($pdo); }
function Remove($pdo = null) { if (!parent::delete("DMS_PackageItems", "PackageID=?", array($this->PackageID), $pdo)) { return false; } return parent::Remove($pdo); }
function Remove() { parent::Remove(); }