Suppression des fonctions inutiles
This commit is contained in:
parent
1593854833
commit
af41c36d47
@ -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 = '';
|
||||
|
Loading…
Reference in New Issue
Block a user