Blame view

src/vendor/1.2.5/Phalcon/Config/Adapter/Json.php 724 Bytes
1ea3b987   Administrator   maby first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
  <?php 
  
  namespace Phalcon\Config\Adapter {
  
  	/**
  	 * Phalcon\Config\Adapter\Json
  	 *
  	 * Reads JSON files and converts them to Phalcon\Config objects.
  	 *
  	 * Given the following configuration file:
  	 *
  	 *<code>
  	 *{"phalcon":{"baseuri":"\/phalcon\/"},"models":{"metadata":"memory"}}
  	 *</code>
  	 *
  	 * You can read it as follows:
  	 *
  	 *<code>
  	 *	$config = new Phalcon\Config\Adapter\Json("path/config.json");
  	 *	echo $config->phalcon->baseuri;
  	 *	echo $config->models->metadata;
  	 *</code>
  	 *
  	 */
  	
  	class Json extends \Phalcon\Config implements \Countable, \ArrayAccess {
  
  		/**
  		 * \Phalcon\Config\Adapter\Json constructor
  		 *
  		 * @param string $filePath
  		 */
  		public function __construct($filePath){ }
  
  	}
  }