Text Ids

Contains functions that work with textual ids

Class Methods

The following methods can be invoked on instances of this class.

checkSlashes(string strId)

Ensures that an id has an initial slash and a trailing slash

makePartValid(string strId, mixed bAllowDots)

Makes a local part of an id valid
The id is made lower case The following replacements are made: ' ' => '-' '%' => 'percent' '&' => 'and' All non-alphanumeric values are stripped

makeValid(string strId, mixed bAllowDots)

Makes an id valid
The id is made lower case The following replacements are made: ' ' => '-' '%' => 'percent' '&' => 'and' All non-alphanumeric values are stripped All ids must have a beginning and trailing slash

getLocalPart(mixed strId)

Determines the local part of an id

getParent(mixed strId)

Determines a parent id of an id

generateIdFromString(mixed strParentId, string strTitle)

Generates a textual id from a parent id and a title

__call(mixed strName, array arrArguments)

Magic function to trap calls to undefined functions and throw an exception rather than
a fatal error.

__callStatic(mixed strName, array arrArguments)

Magic function to trap static calls to undefined functions and throw an exception rather
than a fatal error.

classGetFolder()

Returns the folder where the class exists

__set_state(mixed arrValues)

classGetFolderResources()

Returns the folder where the class's resources exist

classGetSrcFile()

Returns the folder where the class exists

classGetSrcHash()

Returns the folder where the class exists

classGetReflection()

Returns the reflection data for the current class

classGetReflectionAnnotation(string strField)

Returns a specific class annotation for the current class