Refactoring

Contains methods to make global changes to content

Class Methods

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

findAll(string strFind)

Finds all occurances of a string

matchAll(string strFind)

Matches all occurances of a string

simpleReplace(mixed strSearch, string strReplace, mixed bCaseInsensitive)

Performs a simple replace on all occurances of a string

pregReplace(mixed strSearch, string strReplace)

Runs preg_replace over every entity in the data adapter

pregReplaceCallback(mixed strSearch, function fnReplace)

Runs preg_replace_callback over every entity in the data adapter

changeTagName(mixed strOldTag, mixed strNewTag, string strAddAttributes)

Changes all tags of a specific name to a new name

changeAttribute(mixed strOld, string strNew)

Changes all attributes of a specific name to a new name

refactorAll(mixed fnCallback)

Refactors all data adapters by using the specified function

renameComponent(mixed strFrom, string strTo)

Refactors all instances of component $strFrom to $strTo

renameFolder(mixed strOldName, mixed strNewName)

__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