protected function beforeDelete() { if (!parent::beforeDelete()) { return false; } $sql = 'Drop table if exists ' . $this->getTempTableName(); R::exec($sql); return true; }
/** * @return string */ protected function beforeDelete() { if ($this->getScenario() != 'autoBuildDatabase') { parent::beforeDelete(); if (count($this->productTemplates) > 0 || count($this->productCategories) > 0) { return false; } else { return true; } } else { return parent::beforeDelete(); } }
protected function beforeDelete() { if (!parent::beforeDelete()) { return false; } AllPermissionsOptimizationUtil::roleBeingDeleted($this); return true; }
public function beforeDelete() { if ($this->emailBox->isSpecialBox()) { throw new NotSupportedException(); } return parent::beforeDelete(); }
/** * @return string */ protected function beforeDelete() { parent::beforeDelete(); return !(count($this->productTemplates) > 0 || count($this->productCategories) > 0); }
/** * @return bool */ protected function beforeDelete() { parent::beforeDelete(); if ($this->name != self::DEFAULT_NAME) { return true; } else { return false; } }
protected function beforeDelete() { if (!parent::beforeDelete()) { return false; } ZurmoRedBean::$writer->dropTableByTableName($this->getTempTableName()); return true; }
/** * @return bool */ protected function beforeDelete() { parent::beforeDelete(); return count($this->products) == 0; }