ICal\EventObject::printData PHP Метод

printData() публичный Метод

Return Event data excluding anything blank within an HTML template
public printData ( string $html = '<p>%s: %s</p>' ) : string
$html string HTML template to use
Результат string
    public function printData($html = '<p>%s: %s</p>')
    {
        $data = array('SUMMARY' => $this->summary, 'DTSTART' => $this->dtstart, 'DTEND' => $this->dtend, 'DURATION' => $this->duration, 'DTSTAMP' => $this->dtstamp, 'UID' => $this->uid, 'CREATED' => $this->created, 'LAST-MODIFIED' => $this->lastmodified, 'DESCRIPTION' => $this->description, 'LOCATION' => $this->location, 'SEQUENCE' => $this->sequence, 'STATUS' => $this->status, 'TRANSP' => $this->transp, 'ORGANISER' => $this->organizer, 'ATTENDEE(S)' => $this->attendee);
        $data = array_map('trim', $data);
        // Trim all values
        $data = array_filter($data);
        // Remove any blank values
        $output = '';
        foreach ($data as $key => $value) {
            $output .= sprintf($html, $key, $value);
        }
        return $output;
    }