Пример #1
0
 public static function deleteTs($tsID = null)
 {
     try {
         if (is_null($tsID)) {
             throw new Exception\ArgumentNullException('tsID');
         }
     } catch (Exception\ArgumentNullException $e) {
         $e->showException();
         return false;
     }
     $query = new Query('delete');
     $query->setDeleteParams($tsID, null, Tables\TsTable::getTableName(), Tables\TsTable::getMapArray(), Tables\TsTable::getTableLinks());
     $res = $query->exec();
     if ($res->getResult()) {
         return true;
     } else {
         return false;
     }
 }