Suppression des fonctions inutiles

This commit is contained in:
Damien LASSERRE 2012-01-17 10:23:07 +00:00
parent 1593854833
commit af41c36d47

View File

@ -12,44 +12,37 @@ Class Zend_View_Helper_Field extends Zend_View_Helper_Abstract
case 'select': case 'select':
$html.= $this->structureHTML( $html.= $this->structureHTML(
$field['label'], $field['label'],
$this->selectHTML($name, $field), $this->selectHTML($name, $field));
$this->createValidate($type, $name));
break; break;
case 'selectMultiple': case 'selectMultiple':
$html.= $this->structureHTML( $html.= $this->structureHTML(
$field['label'], $field['label'],
$this->selectMultipleHTML($name, $field), $this->selectMultipleHTML($name, $field));
$this->createValidate($type, $name));
break; break;
case 'interval': case 'interval':
$html.= $this->structureHTML( $html.= $this->structureHTML(
$field['label'], $field['label'],
$this->intervalHTML($name, $field), $this->intervalHTML($name, $field));
$this->createValidate($type, $name));
break; break;
case 'date': case 'date':
$html.= $this->structureHTML( $html.= $this->structureHTML(
$field['label'], $field['label'],
$this->dateHTML($name, $field), $this->dateHTML($name, $field));
$this->createValidate($type, $name));
break; break;
case 'text': case 'text':
$html.= $this->structureHTML( $html.= $this->structureHTML(
$field['label'], $field['label'],
$this->textHTML($name, $field), $this->textHTML($name, $field));
$this->createValidate($type, $name));
break; break;
case 'textarea': case 'textarea':
$html.= $this->structureHTML( $html.= $this->structureHTML(
$field['label'], $field['label'],
$this->textareaHTML($name, $field), $this->textareaHTML($name, $field));
$this->createValidate($type, $name));
break; break;
case 'radio': case 'radio':
$html.= $this->structureHTML( $html.= $this->structureHTML(
$field['label'], $field['label'],
$this->radioHTML($name, $field), $this->radioHTML($name, $field));
$this->createValidate($type, $name));
break; break;
} }
$html.= '</div>'; $html.= '</div>';
@ -57,18 +50,6 @@ Class Zend_View_Helper_Field extends Zend_View_Helper_Abstract
return $html; return $html;
} }
private function createValidate($type, $name)
{
$return = array();
switch($type) {
case 'textarea':
case 'date':
//$return[] = array('lib'=>'Valider', 'url'=>'#');
break;
}
return $return;
}
private function structureHTML($label, $html, $liens = array()) private function structureHTML($label, $html, $liens = array())
{ {
$out = ''; $out = '';