PHP Class ezcWorkflowUtil, Workflow

Exibir arquivo Open project: zetacomponents/workflow Class Usage Examples

Public Methods

Method Description
findObject ( array $haystack, object $needle ) : mixed Finds the object $needle in an array of objects and returns the position in the $haystack
getChildNode ( DOMNode $node ) : DOMNode Wrapper around getChildNodes() that only returns the first node.
getChildNodes ( DOMNode $node ) : array Wrapper around DOMNode->childNodes that filters DOMText (whitespace) nodes.
getDefaultConfiguration ( string $className ) : mixed Returns the default configuration for a node class.
variableToString ( mixed $variable ) : string Returns a compact textual representation of a PHP variable.

Method Details

findObject() public static method

Finds the object $needle in an array of objects and returns the position in the $haystack
public static findObject ( array $haystack, object $needle ) : mixed
$haystack array The array of objects to search.
$needle object The object to search for.
return mixed The index position at which the object is located in the array, false otherwise.

getChildNode() public static method

Wrapper around getChildNodes() that only returns the first node.
public static getChildNode ( DOMNode $node ) : DOMNode
$node DOMNode
return DOMNode

getChildNodes() public static method

Wrapper around DOMNode->childNodes that filters DOMText (whitespace) nodes.
public static getChildNodes ( DOMNode $node ) : array
$node DOMNode
return array

getDefaultConfiguration() public static method

Returns the default configuration for a node class.
public static getDefaultConfiguration ( string $className ) : mixed
$className string
return mixed

variableToString() public static method

Returns a compact textual representation of a PHP variable.
public static variableToString ( mixed $variable ) : string
$variable mixed
return string