diff --git a/src/Fenom/Accessor.php b/src/Fenom/Accessor.php index fc80b83..9ca1d89 100644 --- a/src/Fenom/Accessor.php +++ b/src/Fenom/Accessor.php @@ -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.')'; } -} \ No newline at end of file +}