Beispiel #1
0
 /**
  *
  * @return string Rendered string
  * @api
  */
 public function render()
 {
     if ($this->arguments['prefix'] !== NULL) {
         $this->pushPrefix($this->arguments['prefix']);
         $output = $this->renderChildren();
         $this->popPrefix();
         return $output;
     }
     $name = $this->getPrefix();
     if ($this->arguments['name'] !== NULL) {
         $name .= '.' . $this->arguments['name'];
     }
     return String::pathToformName($name);
 }
Beispiel #2
0
 public function getPrefix()
 {
     $path = trim(str_replace(array('Famelo\\Soup\\Ingredients', '\\'), array('', '-'), get_class($this)), '-') . '.' . $this->getId();
     return String::pathToformName($path);
 }