Class AttributeProperties
Collection des propriétés possibles pour un attribut de tâche. Ces propriétés sont manipulées au sein de champs de bits dans la classe Task.
Author: Geoffroy AUBRY <gaubry@hi-media.com>
See: Task::$aAttrProperties()
Located at Himedia/Padocc/AttributeProperties.php
public
|
|
private
|
#
normalizeAttributeProperties( array & $aProperties )
Normalise les propriétés des attributs des tâches XML. Par exemple si c'est un AttributeProperties::FILEJOKER, alors c'est forcément aussi un AttributeProperties::FILE. |
private
|
#
checkUnknownAttributes( array $aProperties, array $aValues )
Vérifie l'absence d'attribut non permis. |
public
|
#
checkAttributes( array & $aProperties, array & $aValues )
Vérifie au moyen de tests basiques que les valeurs des attributs sont conformes à leurs propriétés. Lance une exception si tel n'est pas le cas. |
private
string
|
#
formatAttribute( integer $iProperties, string $sValue )
Formate la valeur d'un attribut au regard de ses propriétés. |
private
|
#
checkAttribute( string $sName, integer $iProperties, string $sValue )
Vérifie au moyen de tests basiques que la valeur de l'attribut spécifié est conforme à ses propriétés. Lance une exception si tel n'est pas le cas. |
integer |
ALLOW_PARAMETER
|
1 |
#
Propriété d'attribut : autorise l'utilisation des '${parameter}'. |
integer |
DIR
|
2 |
#
Propriété d'attribut : l'attribut désigne un répertoire. |
integer |
DIRJOKER
|
4 |
#
Propriété d'attribut : autorise l'utilisation des jokers shell ? et * pour les répertoires (implique AttributeProperties::DIR). |
integer |
FILE
|
8 |
#
Propriété d'attribut : l'attribut désigne un fichier. |
integer |
FILEJOKER
|
16 |
#
Propriété d'attribut : autorise l'utilisation des jokers shell ? et * pour les fichiers (implique AttributeProperties::FILE). |
integer |
REQUIRED
|
32 |
#
Propriété d'attribut : l'attribut est obligatoire. |
integer |
SRC_PATH
|
64 |
#
Propriété d'attribut : l'attribut est un fichier ou un répertoire source et doit donc exister (implique AttributeProperties::FILE et AttributeProperties::DIR). |
integer |
BOOLEAN
|
128 |
#
Propriété d'attribut : l'attribut est un booléen sous forme de chaîne de caractères, valant soit 'true' soit 'false'. |
integer |
URL
|
256 |
#
Propriété d'attribut : l'attribut est une URL. |
integer |
EMAIL
|
512 |
#
Propriété d'attribut : l'attribut est un email. |
integer |
MULTI_VALUED
|
1024 |
#
Propriété d'attribut : l'attribut peut être multi-valué. |
public static
string
|
$sMultiValuedSep | '/\s*,\s*/' |
#
Pattern regex pour scinder les différentes valeurs d'un attribut doté de la propriété MULTI_VALUED. |
public static
string
|
$sMultiValuedJoinGlue | ', ' |
#
Glue pour concaténer les différentes valeurs d'un attribut doté de la propriété MULTI_VALUED. |
protected
|
$oShell |
|
#
Shell adapter. |