Overview

Namespaces

  • None
  • PHP
  • Pry
    • Auth
      • Interfaces
    • Config
    • Controller
    • Date
    • Db
    • Feed
      • Abstracts
      • Writers
    • File
      • Decorator
    • Form
      • Element
    • Image
    • Log
      • Writer
    • Net
      • Exception
    • Session
    • Util
    • Validate
      • Validator
    • View

Classes

  • Config
  • Ini
  • Overview
  • Namespace
  • Class
  • Tree

Class Ini

Classe permettant la lecture de fichier de config au format INI. Basée sur Zend_Config_Ini Il est possible de créer un héritage entre les section à l'aide du caractère ":" Si une clé contient un "." cela sera considérer comme un séparateur pour créer une sous propriété. Par exemple :

[prod]
db.host = mysite.com
db.user = root
[dev : prod]
db.host = localhost
Pry\Config\Config implements Countable, Iterator
Extended by Pry\Config\Ini
Namespace: Pry\Config
Package: Config
Author: Olivier ROGER <oroger.fr>
Version: 1.0.0
Located at Config/Ini.class.php
Methods summary
public
# __construct( string $file, string $section = null )

Initialise la lecture d'un fichier de config au format ini

Initialise la lecture d'un fichier de config au format ini

Parameters

$file
string
$file Chemin vers le fichier à lire
$section
string
$section Section du fichier à lire. Null pour tout lire

Throws

RuntimeException

Overrides

Pry\Config\Config::__construct()
Methods inherited from Pry\Config\Config
__get(), __isset(), __unset(), _arrayMergeRecursive(), checkForCircularInheritance(), count(), current(), errorHandler(), key(), next(), rewind(), toArray(), valid()
Properties inherited from Pry\Config\Config
$_extends, $count, $datas, $errorStr, $index
Pry API documentation generated by ApiGen 2.8.0