NegationNode

class NegationNode extends AbstractNode Represents a ":not()" node. This component is a port of the Python cssselect library, which is copyright Ian Bicking, see https://github.com/SimonSapin/cssselect. Methods string getNodeName() from AbstractNode __construct(NodeInterface $selector, NodeInterface $subSelector) NodeInterface getSelector() NodeInterface getSubSelector() Specificity getSpecificity() Returns node's specificity. string __toString() Returns node'

NativeSessionTokenStorage::setToken()

setToken(string $tokenId, string $token) Stores a CSRF token. Parameters string $tokenId The token ID string $token The CSRF token

NativeSessionTokenStorage::removeToken()

string|null removeToken(string $tokenId) Removes a CSRF token. Parameters string $tokenId The token ID Return Value string|null Returns the removed token if one existed, NULL otherwise

NativeSessionTokenStorage::hasToken()

bool hasToken(string $tokenId) Checks whether a token with the given token ID exists. Parameters string $tokenId The token ID Return Value bool Whether a token exists with the given ID

NativeSessionTokenStorage::getToken()

string getToken(string $tokenId) Reads a stored CSRF token. Parameters string $tokenId The token ID Return Value string The stored token Exceptions TokenNotFoundException If the token ID does not exist

NativeSessionTokenStorage

class NativeSessionTokenStorage implements TokenStorageInterface Token storage that uses PHP's native session handling. Constants SESSION_NAMESPACE The namespace used to store values in the session. Methods __construct(string $namespace = self::SESSION_NAMESPACE) Initializes the storage with a session namespace. string getToken(string $tokenId) Reads a stored CSRF token. setToken(string $tokenId, string $token) Stores a CSRF token. bool hasToken(string $tokenId) Check

NativeSessionStorage::start()

bool start() Starts the session. Return Value bool True if started Exceptions RuntimeException If something goes wrong starting the session.

NativeSessionStorage::setSaveHandler()

setSaveHandler(AbstractProxy|NativeSessionHandler|SessionHandlerInterface|null $saveHandler = null) Registers session save handler as a PHP session handler. To use internal PHP session save handlers, override this method using iniset with session.savehandler and session.save_path e.g. ini_set('session.save_handler', 'files'); ini_set('session.save_path', '/tmp'); or pass in a NativeSessionHandler instance which configures session.save_handler in the constructor, for a template see N

NativeSessionStorage::setOptions()

setOptions(array $options) Sets session.* ini variables. For convenience we omit 'session.' from the beginning of the keys. Explicitly ignores other ini keys. Parameters array $options Session ini directives array(key => value) See also http://php.net/session.configuration

NativeSessionStorage::setName()

setName(string $name) Sets the session name. Parameters string $name