__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ 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;
/**
* iCalendar/vCard/jCal/jCard/xCal/xCard reader object.
*
* This object provides a few (static) convenience methods to quickly access
* the parsers.
*
* @copyright Copyright (C) fruux GmbH (https://fruux.com/)
* @author Evert Pot (http://evertpot.com/)
* @license http://sabre.io/license/ Modified BSD License
*/
class Reader
{
/**
* If this option is passed to the reader, it will be less strict about the
* validity of the lines.
*/
const OPTION_FORGIVING = 1;
/**
* If this option is turned on, any lines we cannot parse will be ignored
* by the reader.
*/
const OPTION_IGNORE_INVALID_LINES = 2;
/**
* Parses a vCard or iCalendar object, and returns the top component.
*
* The options argument is a bitfield. Pass any of the OPTIONS constant to
* alter the parsers' behaviour.
*
* You can either supply a string, or a readable stream for input.
*
* @param string|resource $data
* @param int $options
* @param string $charset
*
* @return Document
*/
public static function read($data, $options = 0, $charset = 'UTF-8')
{
$parser = new Parser\MimeDir();
$parser->setCharset($charset);
$result = $parser->parse($data, $options);
return $result;
}
/**
* Parses a jCard or jCal object, and returns the top component.
*
* The options argument is a bitfield. Pass any of the OPTIONS constant to
* alter the parsers' behaviour.
*
* You can either a string, a readable stream, or an array for its input.
* Specifying the array is useful if json_decode was already called on the
* input.
*
* @param string|resource|array $data
* @param int $options
*
* @return Document
*/
public static function readJson($data, $options = 0)
{
$parser = new Parser\Json();
$result = $parser->parse($data, $options);
return $result;
}
/**
* Parses a xCard or xCal object, and returns the top component.
*
* The options argument is a bitfield. Pass any of the OPTIONS constant to
* alter the parsers' behaviour.
*
* You can either supply a string, or a readable stream for input.
*
* @param string|resource $data
* @param int $options
*
* @return Document
*/
public static function readXML($data, $options = 0)
{
$parser = new Parser\XML();
$result = $parser->parse($data, $options);
return $result;
}
}
| 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 |
|