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

Class: MediaSearch_Config_Php

Source Location: /MediaSearch/Config/Php.php

Class Overview

MediaSearch_Config_Abstract
   |
   --MediaSearch_Config_Php

A concrete implemetation for PHP config files. The file need to contain a return statement of any PHP variable. The filename extensions need to be .php.


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 45]
A concrete implemetation for PHP config files. The file need to contain a return statement of any PHP variable. The filename extensions need to be .php.

Example of a well formed PHP config file:

  1.  return array(
  2.       'option_1' => 1,
  3.       'option_2' => 'twoo',
  4.       'option_3' => array(123),
  5.  // ...
  6.  );




Tags:

copyright:  Copyright (c) 2009 Sven Strittmatter


[ Top ]


Class Methods


method loadRawData [line 55]

void loadRawData( )



Tags:

see:  MediaSearch_Config_Abstract Loads the data by include() from file.
access:  protected


Overrides MediaSearch_Config_Abstract::loadRawData() (Loads the data by file_get_contents() from file.)

[ Top ]


Class Constants

TRACE_LELVEL =  11

[line 46]


[ Top ]



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