internal = FALSE; } public function __toString(): string { // We'll use finfo to try and figure out what type of image is stored $f = new \finfo; $result = ''; foreach ($this->values as $value) { switch ($x=$f->buffer($value,FILEINFO_MIME_TYPE)) { case 'image/jpeg': default: $result .= sprintf('', $x, base64_encode($value), $this->is_deletable ? sprintf('
%s',__('Delete')) : ''); } } $result .= '
%s
'; return $result; } }