예제 #1
0
 /**
  * 
  * init slider by db data
  * 
  */
 public function initByDBData($arrData)
 {
     $this->id = $arrData["id"];
     $this->title = $arrData["title"];
     $this->alias = $arrData["alias"];
     $settings = $arrData["settings"];
     $settings = (array) json_decode($settings);
     $this->settings = $settings;
     $params = $arrData["params"];
     $params = (array) json_decode($params);
     $params = RevSliderBase::translate_settings_to_v5($params);
     $this->arrParams = $params;
 }