Exemple #1
0
 /**
  * @param $elemID
  * @return bool
  * @throws \Exception
  */
 function delete($elemID)
 {
     $params = array(
         'select' => array('ID'),
         'filter' => array(
             '=ELEMENT_ID' => $elemID
         )
     );
     $row = ModifiersTable::getRow($params);
     if ($row['ID'] > 0)
     {
         return ModifiersTable::delete($row['ID'])->isSuccess();
     }
     return true;
 }
Exemple #2
0
 function installDB()
 {
     if (Loader::includeModule($this->MODULE_ID))
     {
         \Iiko\DB\ModifiersTable::getEntity()->createDbTable();
         \Iiko\DB\ElementModifiersTable::getEntity()->createDbTable();
         \Iiko\DB\HashTable::getEntity()->createDbTable();
     }
 }