Ejemplo n.º 1
0
 static function delCategory($where)
 {
     if (!$where) {
         return false;
     }
     self::init();
     if (!is_array($where) && !strpos($where, '=')) {
         $where = "id='{$where}'";
     }
     $table = self::$category_table;
     return DBExt::del($where, $table);
 }