FRED™  3.0
FRED™: Framework for Rapid and Easy Development
Format.php
Go to the documentation of this file.
1 <?php
2 
4 
5 class Format extends \Rsi\Fred\Controller\View\Html\Builder{
6 
7  public function build($ids){
8  if(preg_match_all('/<(widget|caption):(\\w+)>/',$ids,$matches,PREG_SET_ORDER)) foreach($matches as list($full,$type,$id))
9  $ids = str_replace($full,call_user_func([$this,'render' . ucfirst($type)],$id),$ids);
10  return $ids;
11  }
12 
13 }