public function loadTable($table)
    {
        $file = $this->path . '/' . $table . '.json';
        if (is_file($file)) {
            $data = file_get_contents($file);
            if (!$data) {
                return $this->blankTable();
            }

            if (!$data = @json_decode($data, true, 512)) {
                throw new Exception("Unable to parse table file '{$table}.json'");
            }

            return  $data;
        }

        return $this->blankTable();
    }
public function loadTable($table)
    {
        $file = $this->path . '/' . $table . '.json';
        if (is_file($file)) {
            $data = file_get_contents($file);
            if (!$data) {
                return $this->blankTable();
            }

            if (!$data = @json_decode($data, true, 512)) {
                throw new Exception("Unable to parse table file '{$table}.json'");
            }

            return  $data;
        }

        return $this->blankTable();
    }
public function loadTable ( $ table ) { $ file = $ this -> path . '/' . $ table . '.json' ; if ( is_file ( $ file ) ) { $ data = file_get_contents ( $ file ) ; if ( ! $ data ) { return $ this -> blankTable ( ) ; } if ( ! $ data = @ json_decode ( $ data , true , 512 ) ) { throw new Exception ( "Unable to parse table file '{$table}.json'" ) ; } return $ data ; } return $ this -> blankTable ( ) ; }
Load table data

@param  string $table
@return array  $data
Load table data