PHP Class FluentDOM\QualifiedName

Exibir arquivo Open project: fluentdom/fluentdom Class Usage Examples

Public Properties

Property Type Description
$cacheLimit

Public Methods

Method 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

Method 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 method

public __construct ( $name )

__get() public method

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

__isset() public method

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

__set() public method

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

__toString() public method

Allow to convert the qualified name object to a string.
public __toString ( ) : string
return string

__unset() public method

Block changes
public __unset ( $property )
$property

normalizeString() public static method

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
return string

split() public static method

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

validate() public static method

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

Property Details

$cacheLimit public_oe static_oe property

public static $cacheLimit