public static function getInstance() { if (self::$classInstance === null) { self::$classInstance = new self(); } return self::$classInstance; }
public function deleteId($params) { $category = new SPDOWNLOAD_BOL_FileCategory(); $cate = SPDOWNLOAD_BOL_FileCategoryDao::getInstance()->getIdDelete($params); if (!empty($cate)) { foreach ($cate as $key => $value) { $category->id = $value->id; SPDOWNLOAD_BOL_FileCategoryDao::getInstance()->delete($category); } } }