mirror of
https://github.com/fenom-template/fenom.git
synced 2023-08-10 21:13:07 +03:00
Update Accessor.php
This commit is contained in:
parent
2d3c89ec1e
commit
ba978c901e
@ -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.')';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user