Source for file Token.php
Documentation is available at Token.php
* Teeple2 - PHP5 Web Application Framework inspired by Seasar2
* LICENSE: This source file is subject to version 3.0 of the PHP license
* that is available through the world-wide-web at the following URI:
* http://www.php.net/license/3_0.txt. If you did not receive a copy of
* the PHP License and are unable to obtain it through the web, please
* send a note to license@php.net so we can mail you a copy immediately.
* @author Mitsutaka Sato <miztaka@gmail.com>
* @license http://www.php.net/license/3_0.txt PHP License 3.0
* @var Teeple_ActionChain
$this->token->setSession($this->session);
if (isset
($attributes["name"])) {
$this->token->setName($attributes["name"]);
if (isset
($attributes["mode"])) {
$modeArray =
explode(",", $attributes["mode"]);
foreach ($modeArray as $key =>
$value) {
$modeArray[$key] =
trim($value);
foreach ($modeArray as $value) {
if (!$this->token->check($this->request)) {
$this->request->setFilterError('Token');
$this->request->addErrorMessage('不正なアクセスです。');
$this->log->warn('Tokenが不正です。');