Exemplo n.º 1
0
 protected function beforeDelete()
 {
     if (!parent::beforeDelete()) {
         return false;
     }
     $sql = 'Drop table if exists ' . $this->getTempTableName();
     R::exec($sql);
     return true;
 }
Exemplo n.º 2
0
 /**
  * @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();
     }
 }
Exemplo n.º 3
0
 protected function beforeDelete()
 {
     if (!parent::beforeDelete()) {
         return false;
     }
     AllPermissionsOptimizationUtil::roleBeingDeleted($this);
     return true;
 }
Exemplo n.º 4
0
 public function beforeDelete()
 {
     if ($this->emailBox->isSpecialBox()) {
         throw new NotSupportedException();
     }
     return parent::beforeDelete();
 }
Exemplo n.º 5
0
 /**
  * @return string
  */
 protected function beforeDelete()
 {
     parent::beforeDelete();
     return !(count($this->productTemplates) > 0 || count($this->productCategories) > 0);
 }
Exemplo n.º 6
0
 /**
  * @return bool
  */
 protected function beforeDelete()
 {
     parent::beforeDelete();
     if ($this->name != self::DEFAULT_NAME) {
         return true;
     } else {
         return false;
     }
 }
Exemplo n.º 7
0
 protected function beforeDelete()
 {
     if (!parent::beforeDelete()) {
         return false;
     }
     ZurmoRedBean::$writer->dropTableByTableName($this->getTempTableName());
     return true;
 }
Exemplo n.º 8
0
 /**
  * @return bool
  */
 protected function beforeDelete()
 {
     parent::beforeDelete();
     return count($this->products) == 0;
 }