mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-01 07:39:57 +00:00
101 lines
2.7 KiB
PHP
101 lines
2.7 KiB
PHP
<?php
|
|
/**
|
|
* YAML extension stub file for code completion purposes
|
|
*
|
|
* WARNING: Do not include this file
|
|
*
|
|
*/
|
|
|
|
define("YAML_ANY_SCALAR_STYLE", 0);
|
|
define("YAML_PLAIN_SCALAR_STYLE", 1);
|
|
define("YAML_SINGLE_QUOTED_SCALAR_STYLE", 0);
|
|
define("YAML_DOUBLE_QUOTED_SCALAR_STYLE", 0);
|
|
define("YAML_LITERAL_SCALAR_STYLE", 0);
|
|
define("YAML_FOLDED_SCALAR_STYLE", 0);
|
|
|
|
define("YAML_NULL_TAG", "tag:yaml.org,2002:null");
|
|
define("YAML_BOOL_TAG", "tag:yaml.org,2002:bool");
|
|
define("YAML_STR_TAG", "tag:yaml.org,2002:str");
|
|
define("YAML_INT_TAG", "tag:yaml.org,2002:int");
|
|
define("YAML_FLOAT_TAG", "tag:yaml.org,2002:float");
|
|
define("YAML_TIMESTAMP_TAG", "tag:yaml.org,2002:timestamp");
|
|
define("YAML_SEQ_TAG", "tag:yaml.org,2002:seq");
|
|
define("YAML_MAP_TAG", "tag:yaml.org,2002:map");
|
|
define("YAML_PHP_TAG", "!php/object");
|
|
|
|
define("YAML_ANY_ENCODING", 0);
|
|
define("YAML_UTF8_ENCODING", 1);
|
|
define("YAML_UTF16LE_ENCODING", 2);
|
|
define("YAML_UTF16BE_ENCODING", 3);
|
|
|
|
|
|
define("YAML_ANY_BREAK", 0);
|
|
define("YAML_CR_BREAK", 1);
|
|
define("YAML_LN_BREAK", 2);
|
|
define("YAML_CRLN_BREAK", 3);
|
|
|
|
/**
|
|
* Send the YAML representation of a value to a file
|
|
*
|
|
* @param string $filename
|
|
* @param mixed $data
|
|
* @param int $encoding
|
|
* @param int $linebreak
|
|
* @param array $callbacks
|
|
*
|
|
* @link http://www.php.net/manual/en/function.yaml-emit-file.php
|
|
* @return bool
|
|
*/
|
|
function yaml_emit_file($filename, $data, $encoding = YAML_ANY_ENCODING, $linebreak = YAML_ANY_BREAK, array $callbacks = array()){}
|
|
|
|
/**
|
|
* Returns the YAML representation of a value
|
|
*
|
|
* @param mixed $data
|
|
* @param int $encoding
|
|
* @param int $linebreak
|
|
* @param array $callbacks
|
|
*
|
|
* @link http://www.php.net/manual/en/function.yaml-emit.php
|
|
* @return string
|
|
*/
|
|
function yaml_emit($data, $encoding = YAML_ANY_ENCODING, $linebreak = YAML_ANY_BREAK, array $callbacks = array()){}
|
|
|
|
/**
|
|
* Parse a YAML stream from a file
|
|
*
|
|
* @param string $filename
|
|
* @param int $pos
|
|
* @param int &$ndocs
|
|
* @param array $callbacks
|
|
*
|
|
* @link http://www.php.net/manual/en/function.yaml-parse-file.php
|
|
* @return mixed
|
|
*/
|
|
function yaml_parse_file($filename, $pos = 0, &$ndocs = null, array $callbacks = array()){}
|
|
|
|
/**
|
|
* Parse a YAML stream from a URL
|
|
*
|
|
* @param string $url
|
|
* @param int $pos
|
|
* @param int &$ndocs
|
|
* @param array $callbacks
|
|
*
|
|
* @link http://www.php.net/manual/en/function.yaml-parse-url.php
|
|
* @return mixed
|
|
*/
|
|
function yaml_parse_url($url, $pos = 0, &$ndocs = null, array $callbacks = array()){}
|
|
|
|
/**
|
|
* Parse a YAML stream
|
|
*
|
|
* @param string $input
|
|
* @param int $pos
|
|
* @param int &$ndocs
|
|
* @param array $callbacks
|
|
*
|
|
* @link http://www.php.net/manual/en/function.yaml-parse.php
|
|
* @return mixed
|
|
*/
|
|
function yaml_parse($input, $pos = 0, &$ndocs = null, array $callbacks = array()){} |