コード例 #1
0
 public static function DropTable()
 {
     global $DB;
     if (self::$boolError) {
         return false;
     }
     $strSql = "DROP TABLE IF EXISTS " . self::$strTableName;
     $result = $DB->Query($strSql, true);
     if (!$result) {
         self::$boolError = true;
         if (!is_array(self::$arErrors)) {
             self::$arErrors = array();
         }
         self::$arErrors[] = $DB->db_Error;
         return false;
     }
     return true;
 }
コード例 #2
0
 public static function FormatComplete()
 {
     return CCatalogDiscountConvertTmp::DropTable();
 }