Created
January 7, 2012 15:46
-
-
Save davidino/1575087 to your computer and use it in GitHub Desktop.
getTokenReplaces
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| protected function getTokenReplaces() | |
| { | |
| $replaces = array(); | |
| foreach ($this->tokens as $token => $value) { | |
| $key = $this->getFormatter()->untokenize($token); | |
| $formatter = $this->getTokenFormatter($key); | |
| $values = array_map(function($value){ | |
| //non mi ricordo cosa accadeva qui dentro. | |
| },$values); | |
| $replaces[$token] = $formatter::format($values); | |
| } | |
| return $replaces; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment