示例#1
0
 public function renderNormal(Entity $entity)
 {
     $attr = array('id' => $entity->getId() . '-label', 'class' => $entity->getWrapperClass());
     return Entity::html('dt', $attr, $entity->isLabelOutside() ? $entity->renderLabel() : '') . Entity::html('dd', array('id' => $entity->getId() . '-element'), $entity->render() . $entity->renderDescription() . $entity->renderErrors());
 }
示例#2
0
 public function renderNormal(Entity $entity)
 {
     $attr = array('class' => $entity->getWrapperClass());
     return Entity::html('tr', $attr, Entity::html('td', array(), $entity->isLabelOutside() ? $entity->renderLabel() : ' ') . Entity::html('td', array(), $entity->render() . $entity->renderDescription() . $entity->renderErrors()));
 }
示例#3
0
 public function renderNormal(Entity $entity)
 {
     $attr = array('class' => $entity->getWrapperClass());
     $markup = ($entity->isLabelOutside() ? $entity->renderLabel() : '') . $entity->render() . $entity->renderDescription() . $entity->renderErrors();
     return Entity::html('div', $attr, $markup);
 }