Beispiel #1
0
 static function getAll()
 {
     if (self::$settings === null) {
         self::$settings = json_decode(N2SmartSliderStorage::get(self::$_type), true);
         if (self::$settings === null) {
             self::$settings = array();
         }
     }
     return self::$settings;
 }
Beispiel #2
0
 public function form($xml)
 {
     /** @noinspection PhpUnusedLocalVariableInspection */
     $data = array();
     switch ($xml) {
         case 'joomla':
             $data = N2SmartSliderJoomlaSettings::getAll();
             break;
         default:
             $data = N2SmartSliderSettings::getAll();
             break;
     }
     $this->render(dirname(__FILE__) . '/forms/settings/' . $xml . '.xml', $data);
 }