Exemple #1
0
 /**
  * Delete
  * @param $ID
  * @return mixed
  * @throws \Exception
  */
 public static function Delete($ID)
 {
     $obSite = new \CSite();
     $dbSite = $obSite->GetList($by = "sort", $order = "desc", array('ID' => $ID));
     if ($arSite = $dbSite->Fetch()) {
         $res = $obSite->Delete($ID);
         if ($res) {
             return $ID;
         } else {
             throw new BimException($obSite->LAST_ERROR);
         }
     }
 }