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':
|
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 = '';
|
||||||
|
Loading…
Reference in New Issue
Block a user