コード例 #1
0
ファイル: SiteIntegrate.php プロジェクト: cjp2600/bim-core
 /**
  * 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);
         }
     }
 }