Update Accessor.php

This commit is contained in:
Anton Popov 2016-04-19 14:34:29 +05:00
parent 2d3c89ec1e
commit ba978c901e

View File

@ -74,6 +74,17 @@ class Accessor {
{
return self::parserCall('$tpl->getStorage()->'.$method, $tokens, $tpl);
}
/**
* @param string $chain chain methods
* @param Tokenizer $tokens
* @param Template $tpl
* @return string
*/
public static function parserChain($chain, Tokenizer $tokens, Template $tpl)
{
return $tpl->parseChain($tokens, '$tpl->getStorage()->'. $chain);
}
/**
* Accessor for global variables
@ -192,4 +203,4 @@ class Accessor {
$tokens->skip(')');
return '$tpl->getStorage()->fetch('.$name.', '.$vars.')';
}
}
}