Changeset 3335
- Timestamp:
- 12/20/07 02:11:07 (6 years ago)
- Location:
- lang/php/Cache/trunk/Handler/PlugIn
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/php/Cache/trunk/Handler/PlugIn/JSON.php
r2154 r3335 14 14 * @access public 15 15 */ 16 public function __construct( )16 public function __construct($assoc=false) 17 17 { 18 //do nothing18 $this->assoc = $assoc; 19 19 } 20 20 /** … … 26 26 public function beforeWrite( $data ) 27 27 { 28 28 return json_encode($data, $this->$assoc); 29 29 } 30 30 /** … … 36 36 public function afterRead( $data ) 37 37 { 38 38 return json_decode($data, $this->$assoc); 39 39 } 40 40 -
lang/php/Cache/trunk/Handler/PlugIn/Yaml.php
r2154 r3335 16 16 public function __construct() 17 17 { 18 //do nothing 18 //Yamlパーサーを選択する 19 //TODO:YAMLのパーサーを選択するロジック 19 20 } 20 21 /** … … 26 27 public function beforeWrite( $data ) 27 28 { 28 29 return Spyc::YAMLDump($array); 29 30 } 30 31 /** … … 36 37 public function afterRead( $data ) 37 38 { 38 39 return Spyc::YAMLLoad($data); 39 40 } 40 41 41 } <?php42 } 42 43 43 44
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)