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':
$html.= $this->structureHTML(
$field['label'],
$this->selectHTML($name, $field),
$this->createValidate($type, $name));
$this->selectHTML($name, $field));
break;
case 'selectMultiple':
$html.= $this->structureHTML(
$field['label'],
$this->selectMultipleHTML($name, $field),
$this->createValidate($type, $name));
$this->selectMultipleHTML($name, $field));
break;
case 'interval':
$html.= $this->structureHTML(
$field['label'],
$this->intervalHTML($name, $field),
$this->createValidate($type, $name));
$this->intervalHTML($name, $field));
break;
case 'date':
$html.= $this->structureHTML(
$field['label'],
$this->dateHTML($name, $field),
$this->createValidate($type, $name));
$this->dateHTML($name, $field));
break;
case 'text':
$html.= $this->structureHTML(
$field['label'],
$this->textHTML($name, $field),
$this->createValidate($type, $name));
$this->textHTML($name, $field));
break;
case 'textarea':
$html.= $this->structureHTML(
$field['label'],
$this->textareaHTML($name, $field),
$this->createValidate($type, $name));
$this->textareaHTML($name, $field));
break;
case 'radio':
$html.= $this->structureHTML(
$field['label'],
$this->radioHTML($name, $field),
$this->createValidate($type, $name));
$this->radioHTML($name, $field));
break;
}
$html.= '</div>';
@ -57,18 +50,6 @@ Class Zend_View_Helper_Field extends Zend_View_Helper_Abstract
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())
{
$out = '';