Skip to content

Instantly share code, notes, and snippets.

@davidino
Created January 7, 2012 15:46
Show Gist options
  • Select an option

  • Save davidino/1575087 to your computer and use it in GitHub Desktop.

Select an option

Save davidino/1575087 to your computer and use it in GitHub Desktop.
getTokenReplaces
<?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