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

fix api compatibility

parent e13b4dfa
......@@ -86,11 +86,10 @@ class ZendAfi_Form_Admin_Ouverture extends ZendAfi_Form {
}
public function populate($values) {
public function populate(array $values) {
$this->getElement('validity_range')
->setStartValue(isset($values['validity_start']) ? $values['validity_start'] : '')
->setEndValue(isset($values['validity_end']) ? $values['validity_end'] : '');
return parent::populate($values);
}
}
?>
\ No newline at end of file
......@@ -90,7 +90,7 @@ class ZendAfi_Form_AdvancedSearch extends ZendAfi_Form {
}
public function populate($datas) {
public function populate(array $datas) {
parent::populate($datas);
foreach(array_keys($this->_axes) as $type)
......
......@@ -21,7 +21,7 @@
class ZendAfi_Form_Configuration_Menu_Album extends ZendAfi_Form_Configuration_Menu_Entry {
public function populate($datas) {
public function populate(array $datas) {
$albums = (new Storm_Model_Collection(Class_Album::getItemsOf(0)))
->injectInto([], function($albums, $album)
{
......
......@@ -39,7 +39,7 @@ class ZendAfi_Form_Configuration_Menu_Link extends ZendAfi_Form_Configuration_Me
$this->removeElement('use_profil');
}
public function populate($datas) {
public function populate(array $datas) {
parent::populate($datas);
$this->addToHeadGroup(['url']);
$this->addToStyleGroup(['target']);
......
......@@ -34,7 +34,7 @@ class ZendAfi_Form_Configuration_Menu_LinkToProfile extends ZendAfi_Form_Configu
}
public function populate($datas) {
public function populate(array $datas) {
parent::populate($datas);
$this->addToHeadGroup(['clef_profil']);
return $this;
......
......@@ -21,7 +21,7 @@
class ZendAfi_Form_Configuration_Menu_ListOfSites extends ZendAfi_Form_Configuration_Menu_Entry {
public function populate($datas) {
public function populate(array $datas) {
$this
->addElement('treeSelect',
'listOfSites_source',
......
......@@ -21,7 +21,7 @@
class ZendAfi_Form_Configuration_Menu_Rss extends ZendAfi_Form_Configuration_Menu_Entry {
public function populate($datas) {
public function populate(array $datas) {
$this
->addElement('treeSelect',
'feed_source',
......
......@@ -55,7 +55,7 @@ class ZendAfi_Form_Configuration_Menu_SearchResult extends ZendAfi_Form_Configur
}
public function populate($datas) {
public function populate(array $datas) {
$this
->addElement('treeSelect',
'data_source',
......
......@@ -73,7 +73,7 @@ class ZendAfi_Form_Configuration_Record extends ZendAfi_Form {
}
public function populate($datas) {
public function populate(array $datas) {
$this->getElement('record_tabs')
->setSettings($datas['onglets']);
......
......@@ -94,7 +94,7 @@ formSelectToggleVisibilityForElement("#type_aff", $("#id_categorie, #nb_aff_by_p
}
public function populate($datas) {
public function populate(array $datas) {
$selected_categories = array_key_exists('id_categorie', $datas)
? $datas['id_categorie']
: '';
......
......@@ -67,7 +67,7 @@ class ZendAfi_Form_Configuration_Widget_Articles extends ZendAfi_Form_Configurat
}
public function populate($datas) {
public function populate(array $datas) {
$this->getElement('style_liste')
->setPreferences($datas);
......
......@@ -94,7 +94,7 @@ class ZendAfi_Form_Configuration_Widget_Calendar extends ZendAfi_Form_Configurat
}
public function populate($datas) {
public function populate(array $datas) {
$this->getElement('mode-affichage')->setSettings($datas);
$this->addElement('treeSelect',
......
......@@ -20,7 +20,7 @@
*/
class ZendAfi_Form_Configuration_Widget_Carousel extends ZendAfi_Form_Configuration_Widget_Base {
public function populate($datas) {
public function populate(array $datas) {
$this->getElement('style_liste')
->setSettings($datas)
->setMultiOptions(Class_Systeme_ModulesAccueil::moduleByCode('KIOSQUE')
......
......@@ -21,7 +21,7 @@
class ZendAfi_Form_Configuration_Widget_ChangeCarouselDatas extends ZendAfi_Form {
public function populate($datas) {
public function populate(array $datas) {
$this->addElement('treeSelect',
'data_source',
['UrlDataSource' => Class_Url::assemble(['module' => 'admin',
......
......@@ -109,7 +109,7 @@ class ZendAfi_Form_Configuration_Widget_Libraries extends ZendAfi_Form_Configura
}
public function populate($datas) {
public function populate(array $datas) {
$this
->addToSelectionGroup(['libraries'])
......
......@@ -47,7 +47,7 @@ class ZendAfi_Form_Configuration_Widget_ListOfSites extends ZendAfi_Form_Configu
}
public function populate($datas) {
public function populate(array $datas) {
$this
->addElement('treeSelect',
'listOfSites_source',
......
......@@ -102,7 +102,7 @@ class ZendAfi_Form_Configuration_Widget_Login extends ZendAfi_Form_Configuration
}
public function populate($datas) {
public function populate(array $datas) {
parent::populate($datas);
return $this
->addToStyleGroup(['autocomplete_off'])
......
......@@ -54,7 +54,7 @@ class ZendAfi_Form_Configuration_Widget_PremierChapitre extends ZendAfi_Form_Con
}
public function populate($datas) {
public function populate(array $datas) {
$this
->addElement('domainePanier',
'data_source',
......
......@@ -38,7 +38,7 @@ class ZendAfi_Form_Configuration_Widget_RSS extends ZendAfi_Form_Configuration_W
}
public function populate($datas) {
public function populate(array $datas) {
$this->addElement('treeSelect',
'feed_source',
['IdItems' => isset($datas['id_items']) ? $datas['id_items'] : '',
......
......@@ -63,7 +63,7 @@ class ZendAfi_Form_Configuration_Widget_Reviews extends ZendAfi_Form_Configurati
}
public function populate($datas) {
public function populate(array $datas) {
$this->addElement('domainePanier',
'data_source',
['label' => $this->_('Filtrer avec une sélection'),
......
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