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

Class: MediaSearch_Config_Text

Source Location: /MediaSearch/Config/Text.php

Class Overview

MediaSearch_Config_Abstract
   |
   --MediaSearch_Config_Text

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


Author(s):

Copyright:

  • Copyright (c) 2009 Sven Strittmatter

Constants


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 39]
A concrete implemetation for text config files. The file can contain any text string. The filename extensions need to be .txt.

This is the simplest implementation of a concrete config. By default it loads the whole config file into parsed date. In most common cases you will add one or more parse option obbjects to achieve what you want from the ttextfile.




Tags:

copyright:  Copyright (c) 2009 Sven Strittmatter


[ Top ]


Class Constants

TRACE_LELVEL =  13

[line 40]


[ Top ]



Documentation generated on Mon, 17 Aug 2009 14:54:13 +0200 by phpDocumentor 1.4.2