コード例 #1
0
ファイル: Marshaller.php プロジェクト: bluesnowman/Chimera
 /**
  * This method loads the specified file for reading.
  *
  * @access public
  * @static
  * @param Config\Reader $reader                             the config reader to use
  * @param boolean $case_sensitive                           whether keys are to be case sensitive
  * @param string $path                                      the path to the value to be returned
  * @return mixed                                            the resource as a collection
  */
 public static function unmarshal(Config\Reader $reader, $case_sensitive = true, $path = null)
 {
     if ($path !== null && !$case_sensitive) {
         $path = strtolower($path);
     }
     return static::useCollections($reader->read($path), Core\Convert::toBoolean($case_sensitive));
 }
コード例 #2
0
ファイル: Reader.php プロジェクト: bluesnowman/Chimera
 /**
  * This destructor ensures that any resources are properly disposed.
  *
  * @access public
  */
 public function __destruct()
 {
     parent::__destruct();
     unset($this->directives);
 }