Example #1
0
 public function getConfigXML()
 {
     $xml = parent::getConfigXML(array('options'));
     foreach ($this->_config->get('options', array()) as $option) {
         if ($option['name'] != '' || $option['value'] != '') {
             $xml->addChild('option')->addAttribute('name', $option['name'])->addAttribute('value', $option['value']);
         }
     }
     return $xml;
 }
Example #2
0
 public function getConfigXML($ignore = array())
 {
     $xml = parent::getConfigXML(array('selectable_countries'));
     foreach ($this->_config->get('selectable_countries', array()) as $selectable_country) {
         if ($selectable_country['value'] != '') {
             $xml->addChild('selectable_country')->addAttribute('value', $selectable_country);
         }
     }
     return $xml;
 }
Example #3
0
 public function getConfigXML($ignore = array())
 {
     $xml = parent::getConfigXML($ignore);
     $bookmarks = $this->_config->get('bookmarks');
     foreach (self::getBookmarks() as $bookmark => $value) {
         if (isset($bookmarks[$bookmark])) {
             $xml->addAttribute($bookmark, $bookmarks[$bookmark]);
         }
     }
     return $xml;
 }