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

Source for file Php.php

Documentation is available at Php.php

  1. <?php
  2. /**
  3.  * MediaSearch
  4.  *
  5.  * LICENSE
  6.  *
  7.  * "THE BEER-WARE LICENSE" (Revision 42):
  8.  * "Sven Strittmatter" <ausserirdisch@sven-space.de> wrote this file.
  9.  * As long as you retain this notice you can do whatever you want with
  10.  * this stuff. If we meet some day, and you think this stuff is worth it,
  11.  * you can buy me a beer in return.
  12.  *
  13.  * $Author$
  14.  * $Revision$
  15.  *
  16.  * @category    MediaSearch
  17.  * @package     MediaSearch_Config
  18.  * @copyright   Copyright (c) 2009 Sven Strittmatter
  19.  */
  20.  
  21. /**
  22.  * @see MediaSearch_Config_Abstract
  23.  */
  24. require_once('MediaSearch/Config/Abstract.php');
  25.  
  26. /**
  27.  * A concrete implemetation for PHP config files. The file need to contain
  28.  * a return statement of any PHP variable. The filename extensions need to
  29.  * be .php.
  30.  *
  31.  * Example of a well formed PHP config file:
  32.  * <code>
  33.  * return array(
  34.  *      'option_1' => 1,
  35.  *      'option_2' => 'twoo',
  36.  *      'option_3' => array(1, 2, 3),
  37.  * // ...
  38.  * );
  39.  * </code>
  40.  *
  41.  * @category   MediaSearch
  42.  * @package    MediaSearch_Config
  43.  * @copyright  Copyright (c) 2009 Sven Strittmatter
  44.  */
  45.     const TRACE_LELVEL = 11;
  46.  
  47.     /**
  48.      * @see MediaSearch_Config_Abstract
  49.      *
  50.      *  Loads the data by include() from file.
  51.      *
  52.      * @access public
  53.      */
  54.     protected function loadRawData({
  55.         $this->rawData = include($this->getFileName());
  56.     }
  57. }

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