Contentserv PHP API

CSTokenContext
in package
implements Stringable

This class represents a token context

Tags
access

public

since

CS21.7

Interfaces, Classes and Traits

Stringable

Table of Contents

__toString()  : string
Generates the string representation of the token context.
check()  : bool
Checks if the token context instance is valid for the current context.
createFromDefinition()  : CSTokenContext
Restores a token context from the definition stored in the string representation.

Methods

__toString()

Generates the string representation of the token context.

public final __toString() : string
Tags
access

public

Return values
string

String representation of the token context.

check()

Checks if the token context instance is valid for the current context.

public final check() : bool
Tags
access

public

Return values
bool

True, if token context matches the context, otherwise false.

createFromDefinition()

Restores a token context from the definition stored in the string representation.

public final static createFromDefinition(array<string|int, mixed> $aDefinition) : CSTokenContext
Parameters
$aDefinition : array<string|int, mixed>

The token context definition retrieved from string representation.

Tags
access

public

Return values
CSTokenContext

A concrete instance of CSToken Context.


        

Search results