PHP Class FluentDOM\QualifiedName

Afficher le fichier Open project: fluentdom/fluentdom Class Usage Examples

Méthodes publiques

Свойство Type Description
$cacheLimit

Méthodes publiques

Méthode Description
__construct ( $name )
__get ( $property ) : string Read dynamic property, throw exception for invalid properties.
__isset ( $property ) : boolean Define dynamic properties, return false for all other
__set ( $property, $value ) Block changes
__toString ( ) : string Allow to convert the qualified name object to a string.
__unset ( $property ) Block changes
normalizeString ( string $string, string $default = '_' ) : string Removes all characters from a string that are not allowed in a xml NCName. An NCName is the tag name of an xml element without a prefix.
split ( string $name ) : array Split an qualified name into its two parts.
validate ( string $name ) : boolean Validate a string to be an valid QName

Private Methods

Méthode Description
isNCName ( string $name, integer $offset, string $fullName = NULL ) : boolean Validate string as qualified node name part (namespace or local name)
setQName ( string $name ) Validate string as qualified node name

Method Details

__construct() public méthode

public __construct ( $name )

__get() public méthode

Read dynamic property, throw exception for invalid properties.
public __get ( $property ) : string
$property
Résultat string

__isset() public méthode

Define dynamic properties, return false for all other
public __isset ( $property ) : boolean
$property
Résultat boolean

__set() public méthode

Block changes
public __set ( $property, $value )
$property
$value

__toString() public méthode

Allow to convert the qualified name object to a string.
public __toString ( ) : string
Résultat string

__unset() public méthode

Block changes
public __unset ( $property )
$property

normalizeString() public static méthode

If the result of that removal is an empty string, the default value is returned.
public static normalizeString ( string $string, string $default = '_' ) : string
$string string
$default string
Résultat string

split() public static méthode

Split an qualified name into its two parts.
public static split ( string $name ) : array
$name string
Résultat array

validate() public static méthode

Validate a string to be an valid QName
public static validate ( string $name ) : boolean
$name string
Résultat boolean

Property Details

$cacheLimit public_oe static_oe property

public static $cacheLimit