PHP Class JoliTypo\StateBag

Afficher le fichier Open project: jolicode/jolitypo Class Usage Examples

Protected Properties

Свойство Type Description
$currentDepth integer
$currentNode StateNode
$siblingNode array

Méthodes publiques

Méthode Description
fixSiblingNode ( string $key, string $new_content ) Replace and destroy the content of a stored Node.
getCurrentDepth ( ) : integer
getSiblingNode ( string $key ) : boolean | StateNode
setCurrentDepth ( integer $currentDepth )
setCurrentNode ( StateNode $currentNode )
storeSiblingNode ( string $key ) Save the current StateNode, edit MAY be done to it later.

Method Details

fixSiblingNode() public méthode

Replace and destroy the content of a stored Node.
public fixSiblingNode ( string $key, string $new_content )
$key string
$new_content string

getCurrentDepth() public méthode

public getCurrentDepth ( ) : integer
Résultat integer

getSiblingNode() public méthode

public getSiblingNode ( string $key ) : boolean | StateNode
$key string
Résultat boolean | StateNode

setCurrentDepth() public méthode

public setCurrentDepth ( integer $currentDepth )
$currentDepth integer

setCurrentNode() public méthode

public setCurrentNode ( StateNode $currentNode )
$currentNode StateNode

storeSiblingNode() public méthode

Save the current StateNode, edit MAY be done to it later.
public storeSiblingNode ( string $key )
$key string

Property Details

$currentDepth protected_oe property

protected int $currentDepth
Résultat integer

$currentNode protected_oe property

protected StateNode,jolitypo $currentNode
Résultat StateNode

$siblingNode protected_oe property

protected array $siblingNode
Résultat array