コード例 #1
0
 /**
  * Render a single token
  *
  * @param  \Zend\Markup\Token $token
  * @return string
  */
 protected function _render(Token $token)
 {
     $return = '';
     $oldToken = $this->_token;
     $this->_token = $token;
     // if this markup has children, execute them
     if ($token->hasChildren()) {
         foreach ($token->getChildren() as $child) {
             $return .= $this->_execute($child);
         }
     }
     $this->_token = $oldToken;
     return $return;
 }