MediaSearch_Config
[ class tree: MediaSearch_Config ] [ index: MediaSearch_Config ] [ all elements ]

Class: MediaSearch_Config_Json

Source Location: /MediaSearch/Config/Json.php

Class Overview

MediaSearch_Config_Abstract
   |
   --MediaSearch_Config_Json

A concrete implemetation for JSON config files. The file can contain any JSON string. The filename extensions need to be .json.


Author(s):

Copyright:

  • Copyright (c) 2009 Sven Strittmatter

Constants

Methods


Inherited Constants

Inherited Variables

Inherited Methods

Class: MediaSearch_Config_Abstract

MediaSearch_Config_Abstract::__construct()
The constructor requires the full filename to the config file.
MediaSearch_Config_Abstract::addParseOption()
MediaSearch_Config_Abstract::addParseOptions()
Adds multiple parse options in an array.
MediaSearch_Config_Abstract::applayParseOptions()
Apply the added parse options to the data parsed by parseData().
MediaSearch_Config_Abstract::createConfig()
Factory method which creates a proper config file implementation depending on its type. The type is determined by the filename extension (@see MediaSearch_File_Util::getExtension()).
MediaSearch_Config_Abstract::get()
MediaSearch_Config_Abstract::getFileName()
MediaSearch_Config_Abstract::getRawData()
MediaSearch_Config_Abstract::hasParseOptions()
MediaSearch_Config_Abstract::loadRawData()
Loads the data by file_get_contents() from file.
MediaSearch_Config_Abstract::parseData()
The default parse behaviour is copying the loaded file string with no modification to parsed data.
MediaSearch_Config_Abstract::removeParseOptions()
MediaSearch_Config_Abstract::setFileName()

Class Details

[line 34]
A concrete implemetation for JSON config files. The file can contain any JSON string. The filename extensions need to be .json.



Tags:

copyright:  Copyright (c) 2009 Sven Strittmatter


[ Top ]


Class Methods


method parseData [line 43]

void parseData( )

Parses the data by json_decode() to an array.

The naplys the parse options.




Tags:

access:  public


Overrides MediaSearch_Config_Abstract::parseData() (The default parse behaviour is copying the loaded file string with no modification to parsed data.)

[ Top ]


Class Constants

TRACE_LELVEL =   10

[line 35]


[ Top ]



Documentation generated on Mon, 17 Aug 2009 14:53:18 +0200 by phpDocumentor 1.4.2