__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
namespace Sabre\VObject;
use Sabre\Xml;
/**
* iCalendar/vCard/jCal/jCard/xCal/xCard writer object.
*
* This object provides a few (static) convenience methods to quickly access
* the serializers.
*
* @copyright Copyright (C) fruux GmbH (https://fruux.com/)
* @author Ivan Enderlin
* @license http://sabre.io/license/ Modified BSD License
*/
class Writer
{
/**
* Serializes a vCard or iCalendar object.
*
* @return string
*/
public static function write(Component $component)
{
return $component->serialize();
}
/**
* Serializes a jCal or jCard object.
*
* @param int $options
*
* @return string
*/
public static function writeJson(Component $component, $options = 0)
{
return json_encode($component, $options);
}
/**
* Serializes a xCal or xCard object.
*
* @return string
*/
public static function writeXml(Component $component)
{
$writer = new Xml\Writer();
$writer->openMemory();
$writer->setIndent(true);
$writer->startDocument('1.0', 'utf-8');
if ($component instanceof Component\VCalendar) {
$writer->startElement('icalendar');
$writer->writeAttribute('xmlns', Parser\XML::XCAL_NAMESPACE);
} else {
$writer->startElement('vcards');
$writer->writeAttribute('xmlns', Parser\XML::XCARD_NAMESPACE);
}
$component->xmlSerialize($writer);
$writer->endElement();
return $writer->outputMemory();
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Component | Folder | 0775 |
|
|
| ITip | Folder | 0775 |
|
|
| Parser | Folder | 0775 |
|
|
| Property | Folder | 0775 |
|
|
| Recur | Folder | 0775 |
|
|
| Splitter | Folder | 0775 |
|
|
| TimezoneGuesser | Folder | 0775 |
|
|
| timezonedata | Folder | 0775 |
|
|
| BirthdayCalendarGenerator.php | File | 4.85 KB | 0664 |
|
| Cli.php | File | 20.48 KB | 0664 |
|
| Component.php | File | 20.32 KB | 0664 |
|
| DateTimeParser.php | File | 15.76 KB | 0664 |
|
| Document.php | File | 7.25 KB | 0664 |
|
| ElementList.php | File | 1.12 KB | 0664 |
|
| EofException.php | File | 356 B | 0664 |
|
| FreeBusyData.php | File | 5.33 KB | 0664 |
|
| FreeBusyGenerator.php | File | 18.95 KB | 0664 |
|
| InvalidDataException.php | File | 363 B | 0664 |
|
| Node.php | File | 5.81 KB | 0664 |
|
| Parameter.php | File | 9.25 KB | 0664 |
|
| ParseException.php | File | 329 B | 0664 |
|
| Property.php | File | 17.19 KB | 0664 |
|
| Reader.php | File | 2.59 KB | 0664 |
|
| Settings.php | File | 1.83 KB | 0664 |
|
| StringUtil.php | File | 1.28 KB | 0664 |
|
| TimeZoneUtil.php | File | 8.56 KB | 0664 |
|
| UUIDUtil.php | File | 1.71 KB | 0664 |
|
| VCardConverter.php | File | 15.78 KB | 0664 |
|
| Version.php | File | 371 B | 0664 |
|
| Writer.php | File | 1.55 KB | 0664 |
|