Value=$value; } public function Format($includeLabel=true) { $html=''; if(trim($this->Value->Label)!=''&&$includeLabel) $html=''; $values=[]; foreach($this->Value->SelectedValues as $currentValue) { $html.='
'; } return [array('name'=>$this->Value->Label,'value'=>implode(', ',$values),'field'=>$this->Value,'key'=>$this->Value->Label,'type'=>$this->Value->Type,'display'=>$html)]; } private function GetImage($currentValue) { if($currentValue->ImageType=='icon') { if(!isset($currentValue->Ref)||!isset($currentValue->Ref->icon)||!\is_array($currentValue->Ref->icon)||count($currentValue->Ref->icon)<5) return ''; $width=$currentValue->Ref->icon[0]; $height=$currentValue->Ref->icon[1]; return ''; } if($currentValue->ImageType=='image') return '