PHP Класс FluentDOM\QualifiedName

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$cacheLimit

Открытые методы

Метод Описание
__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

Приватные методы

Метод Описание
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

Описание методов

__construct() публичный Метод

public __construct ( $name )

__get() публичный Метод

Read dynamic property, throw exception for invalid properties.
public __get ( $property ) : string
$property
Результат string

__isset() публичный Метод

Define dynamic properties, return false for all other
public __isset ( $property ) : boolean
$property
Результат boolean

__set() публичный Метод

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

__toString() публичный Метод

Allow to convert the qualified name object to a string.
public __toString ( ) : string
Результат string

__unset() публичный Метод

Block changes
public __unset ( $property )
$property

normalizeString() публичный статический Метод

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
Результат string

split() публичный статический Метод

Split an qualified name into its two parts.
public static split ( string $name ) : array
$name string
Результат array

validate() публичный статический Метод

Validate a string to be an valid QName
public static validate ( string $name ) : boolean
$name string
Результат boolean

Описание свойств

$cacheLimit публичное статическое свойство

public static $cacheLimit