Overview

Namespaces

  • GAubry
    • ErrorHandler
    • Helpers
    • Logger
    • Shell
  • Himedia
    • Padocc
      • DB
      • Minifier
      • Numbering
      • Properties
      • Task
        • Base
        • Extended
  • None
  • Psr
    • Log

Classes

  • Adapter

Interfaces

  • PropertiesInterface
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo

Class Adapter

Gestionnaire de propriétés (table de hashage).

Le nom des propriétés est insensible à la casse. Sait charger les fichiers de configuration PHP au format INI. Sait également charger les fichiers de configuration shell (qui acceptent la factorisation) au format suivant : PROPRIETE1="chaîne" PROPRIETE2="chaîne $PROPRIETE1 chaîne"

Himedia\Padocc\Properties\Adapter implements Himedia\Padocc\Properties\PropertiesInterface
Namespace: Himedia\Padocc\Properties
Author: Geoffroy AUBRY <gaubry@hi-media.com>
Located at Himedia/Padocc/Properties/Adapter.php
Methods summary
public
# __construct( GAubry\Shell\ShellAdapter $oShell, array $aConfig )

Constructeur.

Constructeur.

Parameters

$oShell
GAubry\Shell\ShellAdapter
$oShell instance utilisée pour charger les fichiers de configuration shell
$aConfig
array
$aConfig
public string
# getProperty( string $sPropertyName )

Retourne la valeur de la propriété spécifiée (insensible à la casse).

Retourne la valeur de la propriété spécifiée (insensible à la casse).

Parameters

$sPropertyName
string
$sPropertyName propriété dont on recherche la valeur

Returns

string
valeur de la propriété spécifiée.

Throws

UnexpectedValueException
si propriété inconnue

Implementation of

Himedia\Padocc\Properties\PropertiesInterface::getProperty()
public Himedia\Padocc\Properties\PropertiesInterface
# setProperty( string $sPropertyName, string $sValue )

Initialise ou met à jour la valeur de la propriété spécifiée (insensible à la casse).

Initialise ou met à jour la valeur de la propriété spécifiée (insensible à la casse).

Parameters

$sPropertyName
string
$sPropertyName propriété
$sValue
string
$sValue

Returns

Himedia\Padocc\Properties\PropertiesInterface
$this

Implementation of

Himedia\Padocc\Properties\PropertiesInterface::setProperty()
public Himedia\Padocc\Properties\PropertiesInterface
# loadConfigIniFile( string $sIniPath )

Charge le fichier INI spécifié en ajoutant ou écrasant ses définitions aux propriétés existantes. Le nom des propriétés sont insensibles à la casse.

Charge le fichier INI spécifié en ajoutant ou écrasant ses définitions aux propriétés existantes. Le nom des propriétés sont insensibles à la casse.

Parameters

$sIniPath
string
$sIniPath path du fichier INI à charger

Returns

Himedia\Padocc\Properties\PropertiesInterface
cette instance

Throws

RuntimeException
si erreur de chargement du fichier INI
UnexpectedValueException
si fichier INI introuvable

Implementation of

Himedia\Padocc\Properties\PropertiesInterface::loadConfigIniFile()
public Himedia\Padocc\Properties\PropertiesInterface
# loadConfigShellFile( string $sConfigShellPath )

Charge le fichier shell spécifié en ajoutant ou écrasant ses définitions aux propriétés existantes. Le nom des propriétés sont insensibles à la casse.

Charge le fichier shell spécifié en ajoutant ou écrasant ses définitions aux propriétés existantes. Le nom des propriétés sont insensibles à la casse.

Format du fichier : PROPRIETE1="chaîne" PROPRIETE2="chaîne $PROPRIETE1 chaîne" ...

Parameters

$sConfigShellPath
string
$sConfigShellPath path du fichier shell à charger

Returns

Himedia\Padocc\Properties\PropertiesInterface
cette instance

Throws

RuntimeException
si erreur de chargement du fichier
UnexpectedValueException
si fichier shell introuvable

Implementation of

Himedia\Padocc\Properties\PropertiesInterface::loadConfigShellFile()
Properties summary
private array $aProperties
#

Table de hashage des propriétés (clé => valeur).

Table de hashage des propriétés (clé => valeur).

private GAubry\Shell\ShellAdapter $oShell
#

Shell adapter.

Shell adapter.

See

Himedia\Padocc\Properties\Adapter::loadConfigShellFile()
private array $aConfig
#

Application config.

Application config.

Platform for Automatized Deployments with pOwerful Concise Configuration API documentation generated by ApiGen 2.8.0