Beispiel #1
0
 public static function isTableExists($table = false)
 {
     if ($table === FALSE) {
         return FALSE;
     }
     if ($table === TRUE) {
         return TRUE;
     }
     $table = APP::$config['db']['prefix'] . $table;
     if (empty(self::$tables)) {
         $model = new basemodel();
         self::$tables = $model->getTables();
     }
     if (isset(self::$tables->{$table})) {
         return true;
     } else {
         return false;
     }
 }