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

Source for file Json.php

Documentation is available at Json.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 JSON config files. The file can contain
  28.   * any JSON string. The filename extensions need to be .json.
  29.   *
  30.   * @category   MediaSearch
  31.   * @package    MediaSearch_Config
  32.   * @copyright  Copyright (c) 2009 Sven Strittmatter
  33.   */
  34.     const TRACE_LELVEL =  10;
  35.  
  36.     /**
  37.      * Parses the data by json_decode() to an array.
  38.      * The naplys the parse options.
  39.      * 
  40.      * @access public
  41.      */
  42.     public function parseData({
  43.         $this->parsedData = json_decode($this->getRawData()true);
  44.         $this->applayParseOptions();
  45.     }
  46. }

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