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 Config

Classe générique pour la configuration. Basée sur Zend_Config

Pry\Config\Config implements Countable, Iterator

Direct known subclasses

Pry\Config\Ini
Namespace: Pry\Config
Package: Config
Copyright: 2007-2012 Prynel
Author: Olivier ROGER <oroger.fr>
Version: 1.0.0
See: Zend_Config
Located at Config/Config.class.php
Methods summary
public
# __construct( array $array )
protected
# errorHandler( integer $errno, string $errstr, string $errfile, integer $errline )

Gère les erreurs pouvant survenir avec parse_ini_file

Gère les erreurs pouvant survenir avec parse_ini_file

Parameters

$errno
integer
$errno
$errstr
string
$errstr
$errfile
string
$errfile
$errline
integer
$errline
protected
# checkForCircularInheritance( string $extendingSection, string $extendedSection )

Throws an exception if $extendingSection may not extend $extendedSection, and tracks the section extension if it is valid.

Throws an exception if $extendingSection may not extend $extendedSection, and tracks the section extension if it is valid.

Parameters

$extendingSection
string
$extendingSection
$extendedSection
string
$extendedSection

Throws

Zend_Config_Exception
public array
# toArray( )

Convertit l'objet de config en tableau associatif

Convertit l'objet de config en tableau associatif

Returns

array
protected array
# _arrayMergeRecursive( mixed $firstArray, mixed $secondArray )

Merge two arrays recursively, overwriting keys of the same name in $firstArray with the value in $secondArray.

Merge two arrays recursively, overwriting keys of the same name in $firstArray with the value in $secondArray.

Parameters

$firstArray
mixed
$firstArray First array
$secondArray
mixed
$secondArray Second array to merge into first array

Returns

array
public
# __get( mixed $name )
public
# __isset( mixed $name )
public
# __unset( mixed $name )
public
# count( )

Implementation of

Countable::count()
public
# current( )

Implementation of

Iterator::current()
public
# key( )

Implementation of

Iterator::key()
public
# next( )

Implementation of

Iterator::next()
public
# rewind( )

Implementation of

Iterator::rewind()
public
# valid( )

Implementation of

Iterator::valid()
Properties summary
protected integer $index 0
#

Index d'itération

Index d'itération

protected integer $count
#

Nombre d'élément dans le tableau de config

Nombre d'élément dans le tableau de config

protected array $datas array()
#

Tableau des données de config

Tableau des données de config

protected string $errorStr null
#

Chaine contenant une erreur

Chaine contenant une erreur

protected array $_extends array()
#

This is used to track section inheritance. The keys are names of sections that extend other sections, and the values are the extended sections.

This is used to track section inheritance. The keys are names of sections that extend other sections, and the values are the extended sections.

Pry API documentation generated by ApiGen 2.8.0