• Main Page
  • Related Pages
  • Namespaces
  • Data Structures
  • Files
  • Examples
  • File List

E:/E/GEAMP/www/openbiz/openbiz/others/Zend/View/Helper/Form.php

00001 <?php
00024 require_once 'Zend/View/Helper/FormElement.php';
00025 
00034 class Zend_View_Helper_Form extends Zend_View_Helper_FormElement
00035 {
00044     public function form($name, $attribs = null, $content = false)
00045     {
00046         $info = $this->_getInfo($name, $content, $attribs);
00047         extract($info);
00048 
00049         if (!empty($id)) {
00050             $id = ' id="' . $this->view->escape($id) . '"';
00051         } else {
00052             $id = '';
00053         }
00054 
00055         if (array_key_exists('id', $attribs) && empty($attribs['id'])) {
00056             unset($attribs['id']);
00057         }
00058 
00059         $xhtml = '<form'
00060                . $id
00061                . $this->_htmlAttribs($attribs)
00062                . '>';
00063 
00064         if (false !== $content) {
00065             $xhtml .= $content
00066                    .  '</form>';
00067         }
00068 
00069         return $xhtml;
00070     }
00071 }

Generated on Thu Apr 19 2012 17:01:17 for openbiz by  doxygen 1.7.2