Commit cc4fe83c authored by Patrick Barroca's avatar Patrick Barroca 😠
Browse files

api compatibility

parent 803484fc
......@@ -31,7 +31,7 @@ class ZendAfi_Form_Admin_User extends ZendAfi_Form {
: new Class_Users();
$form->setUser($user);
$form->addElements();
$form->buildElements();
$form->addValidity($datas['date_debut'],$datas['date_fin']);
return $form->populate($datas)
->setCustomForm($custom_form);
......@@ -44,7 +44,7 @@ class ZendAfi_Form_Admin_User extends ZendAfi_Form {
}
public function addElements() {
public function buildElements() {
$this
->addBasicUserInfo()
->addAdminUserInfo()
......
......@@ -80,7 +80,7 @@ class ZendAfi_Form_Element_DateRangePicker extends Zend_Form_Element_Xhtml {
}
public function isValid($value) {
public function isValid($value, $context=null) {
$datas = func_get_args()[1];
if(!isset($datas[$this->_start->getName()]) && !isset($datas[$this->_end->getName()]))
......@@ -96,7 +96,4 @@ class ZendAfi_Form_Element_DateRangePicker extends Zend_Form_Element_Xhtml {
$this->_end->setDateOnly(true);
return $this;
}
}
?>
\ No newline at end of file
......@@ -26,7 +26,7 @@ class ZendAfi_Form_Element_FixedText extends Zend_Form_Element_Text{
}
public function isValid($value) {
public function isValid($value, $context=null) {
return true;
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment