Beispiel #1
0
 private function saveInfoLines($params)
 {
     $info[UHEADER_BOL_Service::INFO_LINE1] = null;
     $info[UHEADER_BOL_Service::INFO_LINE2] = null;
     $line1key = empty($params[UHEADER_BOL_Service::INFO_LINE1]["key"]) ? null : $params[UHEADER_BOL_Service::INFO_LINE1]["key"];
     $line1question = empty($params[UHEADER_BOL_Service::INFO_LINE1]["question"]) ? null : $params[UHEADER_BOL_Service::INFO_LINE1]["question"];
     if ($line1key !== null) {
         $info[UHEADER_BOL_Service::INFO_LINE1] = $this->service->getInfoLinePreview($line1key, $line1question, UHEADER_BOL_Service::INFO_LINE1);
     }
     $this->service->saveInfoConfig(UHEADER_BOL_Service::INFO_LINE1, $line1key, $line1question);
     $line2key = empty($params[UHEADER_BOL_Service::INFO_LINE2]["key"]) ? null : $params[UHEADER_BOL_Service::INFO_LINE2]["key"];
     $line2question = empty($params[UHEADER_BOL_Service::INFO_LINE2]["question"]) ? null : $params[UHEADER_BOL_Service::INFO_LINE2]["question"];
     if ($line2key !== null) {
         $info[UHEADER_BOL_Service::INFO_LINE2] = $this->service->getInfoLinePreview($line2key, $line2question, UHEADER_BOL_Service::INFO_LINE2);
     }
     $this->service->saveInfoConfig(UHEADER_BOL_Service::INFO_LINE2, $line2key, $line2question);
     return array("infoLines" => $info);
 }