getElement(); if (! $element instanceof Zend_Form_Element) { return $content; } if (null === $element->getView()) { return $content; } $label = $this->buildLabel(); $input = $this->buildInput(); $desc = $this->buildDescription(); $descOutput = ''; if ($desc != '') { $descOutput = sprintf('%s', $desc); } $attribs = $element->getAttribs(); $output = ''; if (isset($attribs['rowclass'])) { $rowclass = $attribs['rowclass']; $output = ''; } $output .= ' %s %s '. $descOutput . ' '; $output = sprintf($output, $label, $input); $separator = $this->getSeparator(); $placement = $this->getPlacement(); switch ($placement) { case (self::PREPEND): return $output . $separator . $content; case (self::APPEND): default: return $content . $separator . $output; } } }