diff --git a/library/model/manual.php b/library/model/manual.php index e7c856c..7e18489 100644 --- a/library/model/manual.php +++ b/library/model/manual.php @@ -24,11 +24,13 @@ public static function process($ext_name, callable $callback) { // SVN签出 $cmd = "svn export 'http://svn.php.net/repository/phpdoc/zh/trunk/reference/{$ext_name}' {$docs_xml_dir} --force 2>&1"; + echo $cmd . "\n"; exec($cmd, $output, $cmd_code); - + // 中文签出失败,尝试英文的 if ($cmd_code) { $cmd = "svn export 'http://svn.php.net/repository/phpdoc/en/trunk/reference/{$ext_name}' {$docs_xml_dir} --force"; + echo $cmd . "\n"; exec($cmd, $output, $cmd_code); } diff --git a/php_docs_code/co-/co-context.php b/php_docs_code/co-/co-context.php index 65957c6..93e8716 100644 --- a/php_docs_code/co-/co-context.php +++ b/php_docs_code/co-/co-context.php @@ -10,29 +10,29 @@ class context extends \ArrayObject implements \Countable,\Serializable,\ArrayAcc const STD_PROP_LIST = 1; const ARRAY_AS_PROPS = 2; -public function __construct($array = null, $flags = null, $iteratorClass = null) {} -public function offsetExists($key) {} -public function offsetGet($key) {} -public function offsetSet($key, $value) {} -public function offsetUnset($key) {} +public function __construct($input = null, $flags = null, $iterator_class = null) {} +public function offsetExists($index) {} +public function offsetGet($index) {} +public function offsetSet($index, $newval) {} +public function offsetUnset($index) {} public function append($value) {} public function getArrayCopy() {} public function count() {} public function getFlags() {} public function setFlags($flags) {} -public function asort($flags = null) {} -public function ksort($flags = null) {} -public function uasort($callback) {} -public function uksort($callback) {} +public function asort() {} +public function ksort() {} +public function uasort($cmp_function) {} +public function uksort($cmp_function) {} public function natsort() {} public function natcasesort() {} -public function unserialize($data) {} +public function unserialize($serialized) {} public function serialize() {} +public function __unserialize($serialized) {} public function __serialize() {} -public function __unserialize($data) {} +public function __debugInfo() {} public function getIterator() {} -public function exchangeArray($array) {} +public function exchangeArray($input) {} public function setIteratorClass($iteratorClass) {} public function getIteratorClass() {} -public function __debugInfo() {} } diff --git a/php_docs_code/co-/co-http-client-exception.php b/php_docs_code/co-/co-http-client-exception.php index 4539c63..4a8a598 100644 --- a/php_docs_code/co-/co-http-client-exception.php +++ b/php_docs_code/co-/co-http-client-exception.php @@ -5,13 +5,14 @@ * @author Leelmes */ namespace co\http\client; -class exception extends \Swoole\Exception implements \Throwable,\Stringable { +class exception extends \Swoole\Exception implements \Throwable { protected $message = ''; protected $code = 0; protected $file; protected $line; +private function __clone() {} public function __construct($message = null, $code = null, $previous = null) {} public function __wakeup() {} public function getMessage() {} diff --git a/php_docs_code/co-/co-http-client.php b/php_docs_code/co-/co-http-client.php index 5191d13..90b4cfc 100644 --- a/php_docs_code/co-/co-http-client.php +++ b/php_docs_code/co-/co-http-client.php @@ -39,8 +39,6 @@ public function setData($data) {} public function addFile($path, $name, $type = null, $filename = null, $offset = null, $length = null) {} public function addData($path, $name, $type = null, $filename = null) {} public function execute($path) {} -public function getpeername() {} -public function getsockname() {} public function get($path) {} public function post($path, $data) {} public function download($path, $file, $offset = null) {} @@ -49,7 +47,6 @@ public function getHeaders() {} public function getCookies() {} public function getStatusCode() {} public function getHeaderOut() {} -public function getPeerCert() {} public function upgrade($path) {} public function push($data, $opcode = null, $flags = null) {} public function recv($timeout = null) {} diff --git a/php_docs_code/co-/co-http-server.php b/php_docs_code/co-/co-http-server.php index 547c749..c6e8cd3 100644 --- a/php_docs_code/co-/co-http-server.php +++ b/php_docs_code/co-/co-http-server.php @@ -19,7 +19,7 @@ public function __construct($host, $port = null, $ssl = null, $reuse_port = null public function __destruct() {} public function set($settings) {} public function handle($pattern, $callback) {} -private function onAccept() {} +public function onAccept() {} public function start() {} public function shutdown() {} } diff --git a/php_docs_code/co-/co-iterator.php b/php_docs_code/co-/co-iterator.php index 540e7f7..dda1120 100644 --- a/php_docs_code/co-/co-iterator.php +++ b/php_docs_code/co-/co-iterator.php @@ -11,30 +11,30 @@ class iterator extends \ArrayIterator implements \Countable,\Serializable,\Seeka const ARRAY_AS_PROPS = 2; public function __construct($array = null, $flags = null) {} -public function offsetExists($key) {} -public function offsetGet($key) {} -public function offsetSet($key, $value) {} -public function offsetUnset($key) {} +public function offsetExists($index) {} +public function offsetGet($index) {} +public function offsetSet($index, $newval) {} +public function offsetUnset($index) {} public function append($value) {} public function getArrayCopy() {} public function count() {} public function getFlags() {} public function setFlags($flags) {} -public function asort($flags = null) {} -public function ksort($flags = null) {} -public function uasort($callback) {} -public function uksort($callback) {} +public function asort() {} +public function ksort() {} +public function uasort($cmp_function) {} +public function uksort($cmp_function) {} public function natsort() {} public function natcasesort() {} -public function unserialize($data) {} +public function unserialize($serialized) {} public function serialize() {} +public function __unserialize($serialized) {} public function __serialize() {} -public function __unserialize($data) {} +public function __debugInfo() {} public function rewind() {} public function current() {} public function key() {} public function next() {} public function valid() {} -public function seek($offset) {} -public function __debugInfo() {} +public function seek($position) {} } diff --git a/php_docs_code/co-/co-mysql-exception.php b/php_docs_code/co-/co-mysql-exception.php index 67188fc..2534df1 100644 --- a/php_docs_code/co-/co-mysql-exception.php +++ b/php_docs_code/co-/co-mysql-exception.php @@ -5,13 +5,14 @@ * @author Leelmes */ namespace co\mysql; -class exception extends \Swoole\Exception implements \Throwable,\Stringable { +class exception extends \Swoole\Exception implements \Throwable { protected $message = ''; protected $code = 0; protected $file; protected $line; +private function __clone() {} public function __construct($message = null, $code = null, $previous = null) {} public function __wakeup() {} public function getMessage() {} diff --git a/php_docs_code/co-/co-mysql.php b/php_docs_code/co-/co-mysql.php index e757cfb..16ea9a7 100644 --- a/php_docs_code/co-/co-mysql.php +++ b/php_docs_code/co-/co-mysql.php @@ -31,6 +31,5 @@ public function recv() {} public function begin($timeout = null) {} public function commit($timeout = null) {} public function rollback($timeout = null) {} -public function escape($string, $flags = null) {} public function close() {} } diff --git a/php_docs_code/co-/co-scheduler.php b/php_docs_code/co-/co-scheduler.php index 2a21658..d213658 100644 --- a/php_docs_code/co-/co-scheduler.php +++ b/php_docs_code/co-/co-scheduler.php @@ -11,6 +11,5 @@ final class scheduler { public function add($func, $params = null) {} public function parallel($n, $func = null, $params = null) {} public function set($settings) {} -public function getOptions() {} public function start() {} } diff --git a/php_docs_code/co-/co-socket-exception.php b/php_docs_code/co-/co-socket-exception.php index ac1f15f..6a4e148 100644 --- a/php_docs_code/co-/co-socket-exception.php +++ b/php_docs_code/co-/co-socket-exception.php @@ -5,13 +5,14 @@ * @author Leelmes */ namespace co\socket; -class exception extends \Swoole\Exception implements \Throwable,\Stringable { +class exception extends \Swoole\Exception implements \Throwable { protected $message = ''; protected $code = 0; protected $file; protected $line; +private function __clone() {} public function __construct($message = null, $code = null, $previous = null) {} public function __wakeup() {} public function getMessage() {} diff --git a/php_docs_code/co-/co-socket.php b/php_docs_code/co-/co-socket.php index 1935a0e..6e1071c 100644 --- a/php_docs_code/co-/co-socket.php +++ b/php_docs_code/co-/co-socket.php @@ -8,9 +8,6 @@ class socket { public $fd = -1; -public $domain = 0; -public $type = 0; -public $protocol = 0; public $errCode = 0; public $errMsg = ''; @@ -19,26 +16,17 @@ public function bind($address, $port = null) {} public function listen($backlog = null) {} public function accept($timeout = null) {} public function connect($host, $port = null, $timeout = null) {} -public function checkLiveness() {} -public function peek($length = null) {} public function recv($length = null, $timeout = null) {} -public function recvAll($length = null, $timeout = null) {} -public function recvLine($length = null, $timeout = null) {} -public function recvWithBuffer($length = null, $timeout = null) {} public function recvPacket($timeout = null) {} public function send($data, $timeout = null) {} -public function readVector($io_vector, $timeout = null) {} -public function readVectorAll($io_vector, $timeout = null) {} -public function writeVector($io_vector, $timeout = null) {} -public function writeVectorAll($io_vector, $timeout = null) {} public function sendFile($filename, $offset = null, $length = null) {} +public function recvAll($length = null, $timeout = null) {} public function sendAll($data, $timeout = null) {} public function recvfrom(& $peername, $timeout = null) {} public function sendto($addr, $port, $data) {} public function getOption($level, $opt_name) {} public function setProtocol($settings) {} public function setOption($level, $opt_name, $opt_value) {} -public function sslHandshake() {} public function shutdown($how = null) {} public function cancel($event = null) {} public function close() {} diff --git a/php_docs_code/co-/co-system.php b/php_docs_code/co-/co-system.php index 7d79ae7..9edd909 100644 --- a/php_docs_code/co-/co-system.php +++ b/php_docs_code/co-/co-system.php @@ -12,15 +12,11 @@ static public function gethostbyname($domain_name, $family = null, $timeout = nu static public function dnsLookup($domain_name, $timeout = null) {} static public function exec($command, $get_error_stream = null) {} static public function sleep($seconds) {} -static public function getaddrinfo($hostname, $family = null, $socktype = null, $protocol = null, $service = null, $timeout = null) {} -static public function statvfs($path) {} -static public function readFile($filename) {} -static public function writeFile($filename, $data, $flags = null) {} -static public function wait($timeout = null) {} -static public function waitPid($pid, $timeout = null) {} -static public function waitSignal($signo, $timeout = null) {} -static public function waitEvent($fd, $events = null, $timeout = null) {} static public function fread($handle, $length = null) {} static public function fwrite($handle, $string, $length = null) {} static public function fgets($handle) {} +static public function getaddrinfo($hostname, $family = null, $socktype = null, $protocol = null, $service = null, $timeout = null) {} +static public function readFile($filename) {} +static public function writeFile($filename, $data, $flags = null) {} +static public function statvfs($path) {} } diff --git a/php_docs_code/co-/co-waitgroup.php b/php_docs_code/co-/co-waitgroup.php index 9c5d8f2..629ac07 100644 --- a/php_docs_code/co-/co-waitgroup.php +++ b/php_docs_code/co-/co-waitgroup.php @@ -11,7 +11,7 @@ class waitgroup { protected $count = 0; protected $waiting = false; -public function __construct($delta = null) {} +public function __construct() {} public function add($delta = null) {} public function done() {} public function wait($timeout = null) {} diff --git a/php_docs_code/co.php b/php_docs_code/co.php index be54300..250b263 100644 --- a/php_docs_code/co.php +++ b/php_docs_code/co.php @@ -10,7 +10,6 @@ class co { static public function create($func, $params = null) {} static public function defer($callback) {} static public function set($options) {} -static public function getOptions() {} static public function exists($cid) {} static public function yield() {} static public function suspend() {} @@ -21,8 +20,6 @@ static public function getuid() {} static public function getPcid($cid = null) {} static public function getContext($cid = null) {} static public function getBackTrace($cid = null, $options = null, $limit = null) {} -static public function printBackTrace($cid = null, $options = null, $limit = null) {} -static public function getElapsed($cid = null) {} static public function list() {} static public function listCoroutines() {} static public function enableScheduler() {} @@ -31,15 +28,11 @@ static public function gethostbyname($domain_name, $family = null, $timeout = nu static public function dnsLookup($domain_name, $timeout = null) {} static public function exec($command, $get_error_stream = null) {} static public function sleep($seconds) {} -static public function getaddrinfo($hostname, $family = null, $socktype = null, $protocol = null, $service = null, $timeout = null) {} -static public function statvfs($path) {} -static public function readFile($filename) {} -static public function writeFile($filename, $data, $flags = null) {} -static public function wait($timeout = null) {} -static public function waitPid($pid, $timeout = null) {} -static public function waitSignal($signo, $timeout = null) {} -static public function waitEvent($fd, $events = null, $timeout = null) {} static public function fread($handle, $length = null) {} static public function fgets($handle) {} static public function fwrite($handle, $string, $length = null) {} +static public function readFile($filename) {} +static public function writeFile($filename, $data, $flags = null) {} +static public function getaddrinfo($hostname, $family = null, $socktype = null, $protocol = null, $service = null, $timeout = null) {} +static public function statvfs($path) {} } diff --git a/php_docs_code/swoole.php b/php_docs_code/swoole.php index bea0832..0bf5372 100644 --- a/php_docs_code/swoole.php +++ b/php_docs_code/swoole.php @@ -11,8 +11,6 @@ function swoole_async_dns_lookup_coro($domain_name, $timeout = null) {} function swoole_async_set($settings) {} function swoole_coroutine_create($func, $params = null) {} function swoole_coroutine_defer($callback) {} -function swoole_coroutine_socketpair($domain, $type, $protocol) {} -function swoole_test_kernel_coroutine($count = null, $sleep_time = null) {} function swoole_client_select(& $read_array, & $write_array, & $error_array, $timeout = null) {} function swoole_select(& $read_array, & $write_array, & $error_array, $timeout = null) {} function swoole_set_process_name($process_name) {} @@ -20,20 +18,15 @@ function swoole_get_local_ip() {} function swoole_get_local_mac() {} function swoole_strerror($errno, $error_type = null) {} function swoole_errno() {} -function swoole_clear_error() {} -function swoole_error_log($level, $msg) {} function swoole_hashcode($data, $type = null) {} -function swoole_mime_type_add($suffix, $mime_type) {} -function swoole_mime_type_set($suffix, $mime_type) {} -function swoole_mime_type_delete($suffix) {} -function swoole_mime_type_get($filename) {} function swoole_get_mime_type($filename) {} -function swoole_mime_type_exists($filename) {} -function swoole_mime_type_list() {} function swoole_clear_dns_cache() {} -function swoole_substr_unserialize($str, $offset, $length = null, $options = null) {} -function swoole_substr_json_decode($json, $offset, $length = null, $associative = null, $depth = null, $flags = null) {} function swoole_internal_call_user_shutdown_begin() {} +function swoole_async_read($filename, $callback, $chunk_size = null, $offset = null) {} +function swoole_async_write($filename, $content, $offset = null, $callback = null) {} +function swoole_async_readfile($filename, $callback) {} +function swoole_async_writefile($filename, $content, $callback = null, $flags = null) {} +function swoole_async_dns_lookup($hostname, $callback) {} function swoole_event_add($fd, $read_callback, $write_callback = null, $events = null) {} function swoole_event_del($fd) {} function swoole_event_set($fd, $read_callback = null, $write_callback = null, $events = null) {} @@ -53,16 +46,3 @@ function swoole_timer_stats() {} function swoole_timer_list() {} function swoole_timer_clear($timer_id) {} function swoole_timer_clear_all() {} -function swoole_native_curl_close($handle) {} -function swoole_native_curl_copy_handle($handle) {} -function swoole_native_curl_errno($handle) {} -function swoole_native_curl_error($handle) {} -function swoole_native_curl_exec($handle) {} -function swoole_native_curl_getinfo($handle, $option = null) {} -function swoole_native_curl_init($url = null) {} -function swoole_native_curl_setopt($handle, $option, $value) {} -function swoole_native_curl_setopt_array($handle, $options) {} -function swoole_native_curl_reset($handle) {} -function swoole_native_curl_escape($handle, $string) {} -function swoole_native_curl_unescape($handle, $string) {} -function swoole_native_curl_pause($handle, $flags) {} diff --git a/php_docs_code/swoole/Swoole-ArrayObject.php b/php_docs_code/swoole/Swoole-ArrayObject.php index 713b402..d14a4e3 100644 --- a/php_docs_code/swoole/Swoole-ArrayObject.php +++ b/php_docs_code/swoole/Swoole-ArrayObject.php @@ -11,7 +11,6 @@ class ArrayObject implements \ArrayAccess,\Serializable,\Countable,\Iterator,\Tr public function __construct($array = null) {} public function __toArray() {} -public function toArray() {} public function isEmpty() {} public function count() {} public function current() {} @@ -20,10 +19,6 @@ public function valid() {} public function rewind() {} public function next() {} public function get($key) {} -public function last() {} -public function firstKey() {} -public function lastKey() {} -public function first() {} public function set($key, $value) {} public function delete($key) {} public function remove($value, $strict = null, $loop = null) {} @@ -43,19 +38,16 @@ public function unserialize($string) {} public function sum() {} public function product() {} public function push($value) {} -public function pushFront($value) {} -public function append($values = null) {} public function pushBack($value) {} public function insert($offset, $value) {} public function pop() {} public function popFront() {} -public function popBack() {} public function slice($offset, $length = null, $preserve_keys = null) {} public function randomGet() {} public function each($fn) {} -public function map($fn, $args = null) {} -public function reduce($fn, $initial = null) {} -public function keys($args = null) {} +public function map($fn) {} +public function reduce($fn) {} +public function keys($search_value = null, $strict = null) {} public function values() {} public function column($column_key, $index = null) {} public function unique($sort_flags = null) {} @@ -63,6 +55,7 @@ public function reverse($preserve_keys = null) {} public function chunk($size, $preserve_keys = null) {} public function flip() {} public function filter($fn, $flag = null) {} +public function multiSort($sort_order = null, $sort_flags = null) {} public function asort($sort_flags = null) {} public function arsort($sort_flags = null) {} public function krsort($sort_flags = null) {} diff --git a/php_docs_code/swoole/Swoole-Async-Client.php b/php_docs_code/swoole/Swoole-Async-Client.php new file mode 100644 index 0000000..7927e95 --- /dev/null +++ b/php_docs_code/swoole/Swoole-Async-Client.php @@ -0,0 +1,50 @@ + + */ +namespace Swoole\Async; +class Client { + +const MSG_OOB = 1; +const MSG_PEEK = 2; +const MSG_DONTWAIT = 64; +const MSG_WAITALL = 256; +const SHUT_RDWR = 2; +const SHUT_RD = 0; +const SHUT_WR = 1; +public $errCode = 0; +public $sock = -1; +public $type = 0; +public $setting; +private $onConnect; +private $onError; +private $onReceive; +private $onClose; +private $onBufferFull; +private $onBufferEmpty; +private $onSSLReady; + +public function __construct($type) {} +public function __destruct() {} +public function set($settings) {} +public function connect($host, $port = null, $timeout = null, $sock_flag = null) {} +public function send($data, $flag = null) {} +public function sendfile($filename, $offset = null, $length = null) {} +public function sendto($ip, $port, $data) {} +public function sleep() {} +public function wakeup() {} +public function pause() {} +public function resume() {} +public function shutdown($how) {} +public function enableSSL($callback) {} +public function getPeerCert() {} +public function verifyPeerCert() {} +public function isConnected() {} +public function getsockname() {} +public function getpeername() {} +public function close($force = null) {} +public function on($event_name, $callback) {} +public function getSocket() {} +} diff --git a/php_docs_code/swoole/Swoole-Async.php b/php_docs_code/swoole/Swoole-Async.php new file mode 100644 index 0000000..7266bad --- /dev/null +++ b/php_docs_code/swoole/Swoole-Async.php @@ -0,0 +1,18 @@ + + */ +namespace Swoole; +class Async { + + +static public function read($filename, $callback, $chunk_size = null, $offset = null) {} +static public function write($filename, $content, $offset = null, $callback = null) {} +static public function readFile($filename, $callback) {} +static public function writeFile($filename, $content, $callback = null, $flags = null) {} +static public function dnsLookup($hostname, $callback) {} +static public function set($settings) {} +static public function exec($command, $callback) {} +} diff --git a/php_docs_code/swoole/Swoole-Buffer.php b/php_docs_code/swoole/Swoole-Buffer.php new file mode 100644 index 0000000..4babd8e --- /dev/null +++ b/php_docs_code/swoole/Swoole-Buffer.php @@ -0,0 +1,23 @@ + + */ +namespace Swoole; +class Buffer { + +public $capacity = 128; +public $length = 0; + +public function __construct($size = null) {} +public function __destruct() {} +public function __toString() {} +public function substr($offset, $length = null, $remove = null) {} +public function write($offset, $data) {} +public function read($offset, $length) {} +public function append($data) {} +public function expand($size) {} +public function recycle() {} +public function clear() {} +} diff --git a/php_docs_code/swoole/Swoole-Channel.php b/php_docs_code/swoole/Swoole-Channel.php new file mode 100644 index 0000000..1c4ef8c --- /dev/null +++ b/php_docs_code/swoole/Swoole-Channel.php @@ -0,0 +1,17 @@ + + */ +namespace Swoole; +class Channel { + + +public function __construct($size) {} +public function __destruct() {} +public function push($data) {} +public function pop() {} +public function peek() {} +public function stats() {} +} diff --git a/php_docs_code/swoole/Swoole-Constant.php b/php_docs_code/swoole/Swoole-Constant.php index 19aecca..bd9e703 100644 --- a/php_docs_code/swoole/Swoole-Constant.php +++ b/php_docs_code/swoole/Swoole-Constant.php @@ -27,37 +27,22 @@ class Constant { const EVENT_MANAGER_START = 'managerStart'; const EVENT_MANAGER_STOP = 'managerStop'; const EVENT_ERROR = 'error'; -const OPTION_DEBUG_MODE = 'debug_mode'; -const OPTION_TRACE_FLAGS = 'trace_flags'; -const OPTION_LOG_FILE = 'log_file'; -const OPTION_LOG_LEVEL = 'log_level'; -const OPTION_LOG_DATE_FORMAT = 'log_date_format'; -const OPTION_LOG_DATE_WITH_MICROSECONDS = 'log_date_with_microseconds'; -const OPTION_LOG_ROTATION = 'log_rotation'; -const OPTION_DISPLAY_ERRORS = 'display_errors'; -const OPTION_DNS_SERVER = 'dns_server'; -const OPTION_SOCKET_DNS_TIMEOUT = 'socket_dns_timeout'; -const OPTION_SOCKET_CONNECT_TIMEOUT = 'socket_connect_timeout'; -const OPTION_SOCKET_WRITE_TIMEOUT = 'socket_write_timeout'; -const OPTION_SOCKET_SEND_TIMEOUT = 'socket_send_timeout'; -const OPTION_SOCKET_READ_TIMEOUT = 'socket_read_timeout'; -const OPTION_SOCKET_RECV_TIMEOUT = 'socket_recv_timeout'; -const OPTION_SOCKET_BUFFER_SIZE = 'socket_buffer_size'; -const OPTION_SOCKET_TIMEOUT = 'socket_timeout'; -const OPTION_AIO_CORE_WORKER_NUM = 'aio_core_worker_num'; -const OPTION_AIO_WORKER_NUM = 'aio_worker_num'; -const OPTION_AIO_MAX_WAIT_TIME = 'aio_max_wait_time'; -const OPTION_AIO_MAX_IDLE_TIME = 'aio_max_idle_time'; const OPTION_ENABLE_SIGNALFD = 'enable_signalfd'; -const OPTION_WAIT_SIGNAL = 'wait_signal'; const OPTION_DNS_CACHE_REFRESH_TIME = 'dns_cache_refresh_time'; +const OPTION_SOCKET_BUFFER_SIZE = 'socket_buffer_size'; +const OPTION_SOCKET_SEND_TIMEOUT = 'socket_send_timeout'; +const OPTION_LOG_LEVEL = 'log_level'; const OPTION_THREAD_NUM = 'thread_num'; const OPTION_MIN_THREAD_NUM = 'min_thread_num'; const OPTION_MAX_THREAD_NUM = 'max_thread_num'; +const OPTION_DISPLAY_ERRORS = 'display_errors'; const OPTION_SOCKET_DONTWAIT = 'socket_dontwait'; const OPTION_DNS_LOOKUP_RANDOM = 'dns_lookup_random'; +const OPTION_DNS_SERVER = 'dns_server'; const OPTION_USE_ASYNC_RESOLVER = 'use_async_resolver'; const OPTION_ENABLE_COROUTINE = 'enable_coroutine'; +const OPTION_ENABLE_REUSE_PORT = 'enable_reuse_port'; +const OPTION_SSL_METHOD = 'ssl_method'; const OPTION_SSL_PROTOCOLS = 'ssl_protocols'; const OPTION_SSL_COMPRESS = 'ssl_compress'; const OPTION_SSL_CERT_FILE = 'ssl_cert_file'; @@ -98,29 +83,26 @@ class Constant { const OPTION_READ_TIMEOUT = 'read_timeout'; const OPTION_WRITE_TIMEOUT = 'write_timeout'; const OPTION_SSL_DISABLE_COMPRESSION = 'ssl_disable_compression'; -const OPTION_MAX_CORO_NUM = 'max_coro_num'; const OPTION_MAX_COROUTINE = 'max_coroutine'; -const OPTION_ENABLE_DEADLOCK_CHECK = 'enable_deadlock_check'; const OPTION_HOOK_FLAGS = 'hook_flags'; -const OPTION_ENABLE_PREEMPTIVE_SCHEDULER = 'enable_preemptive_scheduler'; const OPTION_C_STACK_SIZE = 'c_stack_size'; const OPTION_STACK_SIZE = 'stack_size'; +const OPTION_SOCKET_CONNECT_TIMEOUT = 'socket_connect_timeout'; +const OPTION_SOCKET_TIMEOUT = 'socket_timeout'; +const OPTION_SOCKET_READ_TIMEOUT = 'socket_read_timeout'; +const OPTION_SOCKET_WRITE_TIMEOUT = 'socket_write_timeout'; +const OPTION_TRACE_FLAGS = 'trace_flags'; const OPTION_DNS_CACHE_EXPIRE = 'dns_cache_expire'; const OPTION_DNS_CACHE_CAPACITY = 'dns_cache_capacity'; +const OPTION_AIO_CORE_WORKER_NUM = 'aio_core_worker_num'; +const OPTION_AIO_WORKER_NUM = 'aio_worker_num'; +const OPTION_AIO_MAX_WAIT_TIME = 'aio_max_wait_time'; +const OPTION_AIO_MAX_IDLE_TIME = 'aio_max_idle_time'; const OPTION_RECONNECT = 'reconnect'; const OPTION_DEFER = 'defer'; -const OPTION_LOWERCASE_HEADER = 'lowercase_header'; const OPTION_KEEP_ALIVE = 'keep_alive'; const OPTION_WEBSOCKET_MASK = 'websocket_mask'; const OPTION_WEBSOCKET_COMPRESSION = 'websocket_compression'; -const OPTION_HTTP_PARSE_COOKIE = 'http_parse_cookie'; -const OPTION_HTTP_PARSE_POST = 'http_parse_post'; -const OPTION_HTTP_PARSE_FILES = 'http_parse_files'; -const OPTION_HTTP_COMPRESSION = 'http_compression'; -const OPTION_HTTP_COMPRESSION_LEVEL = 'http_compression_level'; -const OPTION_HTTP_GZIP_LEVEL = 'http_gzip_level'; -const OPTION_COMPRESSION_MIN_LENGTH = 'compression_min_length'; -const OPTION_UPLOAD_TMP_DIR = 'upload_tmp_dir'; const OPTION_HOST = 'host'; const OPTION_PORT = 'port'; const OPTION_SSL = 'ssl'; @@ -135,23 +117,22 @@ class Constant { const OPTION_CHROOT = 'chroot'; const OPTION_GROUP = 'group'; const OPTION_DAEMONIZE = 'daemonize'; +const OPTION_DEBUG_MODE = 'debug_mode'; const OPTION_PID_FILE = 'pid_file'; const OPTION_REACTOR_NUM = 'reactor_num'; const OPTION_SINGLE_THREAD = 'single_thread'; const OPTION_WORKER_NUM = 'worker_num'; const OPTION_MAX_WAIT_TIME = 'max_wait_time'; -const OPTION_MAX_QUEUED_BYTES = 'max_queued_bytes'; +const OPTION_MAX_CORO_NUM = 'max_coro_num'; const OPTION_SEND_TIMEOUT = 'send_timeout'; const OPTION_DISPATCH_MODE = 'dispatch_mode'; const OPTION_SEND_YIELD = 'send_yield'; const OPTION_DISPATCH_FUNC = 'dispatch_func'; +const OPTION_LOG_FILE = 'log_file'; const OPTION_DISCARD_TIMEOUT_REQUEST = 'discard_timeout_request'; const OPTION_ENABLE_UNSAFE_EVENT = 'enable_unsafe_event'; const OPTION_ENABLE_DELAY_RECEIVE = 'enable_delay_receive'; -const OPTION_ENABLE_REUSE_PORT = 'enable_reuse_port'; const OPTION_TASK_USE_OBJECT = 'task_use_object'; -const OPTION_TASK_OBJECT = 'task_object'; -const OPTION_EVENT_OBJECT = 'event_object'; const OPTION_TASK_ENABLE_COROUTINE = 'task_enable_coroutine'; const OPTION_TASK_WORKER_NUM = 'task_worker_num'; const OPTION_TASK_IPC_MODE = 'task_ipc_mode'; @@ -160,7 +141,6 @@ class Constant { const OPTION_TASK_MAX_REQUEST_GRACE = 'task_max_request_grace'; const OPTION_MAX_CONNECTION = 'max_connection'; const OPTION_MAX_CONN = 'max_conn'; -const OPTION_START_SESSION_ID = 'start_session_id'; const OPTION_HEARTBEAT_CHECK_INTERVAL = 'heartbeat_check_interval'; const OPTION_HEARTBEAT_IDLE_TIME = 'heartbeat_idle_time'; const OPTION_MAX_REQUEST = 'max_request'; @@ -168,14 +148,17 @@ class Constant { const OPTION_RELOAD_ASYNC = 'reload_async'; const OPTION_OPEN_CPU_AFFINITY = 'open_cpu_affinity'; const OPTION_CPU_AFFINITY_IGNORE = 'cpu_affinity_ignore'; +const OPTION_HTTP_PARSE_COOKIE = 'http_parse_cookie'; +const OPTION_HTTP_PARSE_POST = 'http_parse_post'; +const OPTION_HTTP_PARSE_FILES = 'http_parse_files'; +const OPTION_HTTP_COMPRESSION = 'http_compression'; +const OPTION_HTTP_COMPRESSION_LEVEL = 'http_compression_level'; +const OPTION_HTTP_GZIP_LEVEL = 'http_gzip_level'; +const OPTION_UPLOAD_TMP_DIR = 'upload_tmp_dir'; const OPTION_ENABLE_STATIC_HANDLER = 'enable_static_handler'; const OPTION_DOCUMENT_ROOT = 'document_root'; -const OPTION_HTTP_AUTOINDEX = 'http_autoindex'; -const OPTION_HTTP_INDEX_FILES = 'http_index_files'; const OPTION_STATIC_HANDLER_LOCATIONS = 'static_handler_locations'; -const OPTION_INPUT_BUFFER_SIZE = 'input_buffer_size'; const OPTION_BUFFER_INPUT_SIZE = 'buffer_input_size'; -const OPTION_OUTPUT_BUFFER_SIZE = 'output_buffer_size'; const OPTION_BUFFER_OUTPUT_SIZE = 'buffer_output_size'; const OPTION_MESSAGE_QUEUE_KEY = 'message_queue_key'; const OPTION_BACKLOG = 'backlog'; @@ -187,15 +170,11 @@ class Constant { const OPTION_OPEN_WEBSOCKET_PROTOCOL = 'open_websocket_protocol'; const OPTION_WEBSOCKET_SUBPROTOCOL = 'websocket_subprotocol'; const OPTION_OPEN_WEBSOCKET_CLOSE_FRAME = 'open_websocket_close_frame'; -const OPTION_OPEN_WEBSOCKET_PING_FRAME = 'open_websocket_ping_frame'; -const OPTION_OPEN_WEBSOCKET_PONG_FRAME = 'open_websocket_pong_frame'; const OPTION_OPEN_HTTP2_PROTOCOL = 'open_http2_protocol'; const OPTION_OPEN_REDIS_PROTOCOL = 'open_redis_protocol'; -const OPTION_MAX_IDLE_TIME = 'max_idle_time'; const OPTION_TCP_KEEPIDLE = 'tcp_keepidle'; const OPTION_TCP_KEEPINTERVAL = 'tcp_keepinterval'; const OPTION_TCP_KEEPCOUNT = 'tcp_keepcount'; -const OPTION_TCP_USER_TIMEOUT = 'tcp_user_timeout'; const OPTION_TCP_FASTOPEN = 'tcp_fastopen'; const OPTION_PACKAGE_BODY_START = 'package_body_start'; const OPTION_SSL_CLIENT_CERT_FILE = 'ssl_client_cert_file'; @@ -203,8 +182,6 @@ class Constant { const OPTION_SSL_CIPHERS = 'ssl_ciphers'; const OPTION_SSL_ECDH_CURVE = 'ssl_ecdh_curve'; const OPTION_SSL_DHPARAM = 'ssl_dhparam'; -const OPTION_SSL_SNI_CERTS = 'ssl_sni_certs'; const OPTION_OPEN_SSL = 'open_ssl'; -const OPTION_OPEN_FASTCGI_PROTOCOL = 'open_fastcgi_protocol'; } diff --git a/php_docs_code/swoole/Swoole-Coroutine-Context.php b/php_docs_code/swoole/Swoole-Coroutine-Context.php index 62f1665..5873b40 100644 --- a/php_docs_code/swoole/Swoole-Coroutine-Context.php +++ b/php_docs_code/swoole/Swoole-Coroutine-Context.php @@ -10,29 +10,29 @@ class Context extends \ArrayObject implements \Countable,\Serializable,\ArrayAcc const STD_PROP_LIST = 1; const ARRAY_AS_PROPS = 2; -public function __construct($array = null, $flags = null, $iteratorClass = null) {} -public function offsetExists($key) {} -public function offsetGet($key) {} -public function offsetSet($key, $value) {} -public function offsetUnset($key) {} +public function __construct($input = null, $flags = null, $iterator_class = null) {} +public function offsetExists($index) {} +public function offsetGet($index) {} +public function offsetSet($index, $newval) {} +public function offsetUnset($index) {} public function append($value) {} public function getArrayCopy() {} public function count() {} public function getFlags() {} public function setFlags($flags) {} -public function asort($flags = null) {} -public function ksort($flags = null) {} -public function uasort($callback) {} -public function uksort($callback) {} +public function asort() {} +public function ksort() {} +public function uasort($cmp_function) {} +public function uksort($cmp_function) {} public function natsort() {} public function natcasesort() {} -public function unserialize($data) {} +public function unserialize($serialized) {} public function serialize() {} +public function __unserialize($serialized) {} public function __serialize() {} -public function __unserialize($data) {} +public function __debugInfo() {} public function getIterator() {} -public function exchangeArray($array) {} +public function exchangeArray($input) {} public function setIteratorClass($iteratorClass) {} public function getIteratorClass() {} -public function __debugInfo() {} } diff --git a/php_docs_code/swoole/Swoole-Coroutine-Http-Client-Exception.php b/php_docs_code/swoole/Swoole-Coroutine-Http-Client-Exception.php index 1819a9b..c64d25c 100644 --- a/php_docs_code/swoole/Swoole-Coroutine-Http-Client-Exception.php +++ b/php_docs_code/swoole/Swoole-Coroutine-Http-Client-Exception.php @@ -5,13 +5,14 @@ * @author Leelmes */ namespace Swoole\Coroutine\Http\Client; -class Exception extends \Swoole\Exception implements \Throwable,\Stringable { +class Exception extends \Swoole\Exception implements \Throwable { protected $message = ''; protected $code = 0; protected $file; protected $line; +private function __clone() {} public function __construct($message = null, $code = null, $previous = null) {} public function __wakeup() {} public function getMessage() {} diff --git a/php_docs_code/swoole/Swoole-Coroutine-Http-Client.php b/php_docs_code/swoole/Swoole-Coroutine-Http-Client.php index e169cd4..d0837f9 100644 --- a/php_docs_code/swoole/Swoole-Coroutine-Http-Client.php +++ b/php_docs_code/swoole/Swoole-Coroutine-Http-Client.php @@ -39,8 +39,6 @@ public function setData($data) {} public function addFile($path, $name, $type = null, $filename = null, $offset = null, $length = null) {} public function addData($path, $name, $type = null, $filename = null) {} public function execute($path) {} -public function getpeername() {} -public function getsockname() {} public function get($path) {} public function post($path, $data) {} public function download($path, $file, $offset = null) {} @@ -49,7 +47,6 @@ public function getHeaders() {} public function getCookies() {} public function getStatusCode() {} public function getHeaderOut() {} -public function getPeerCert() {} public function upgrade($path) {} public function push($data, $opcode = null, $flags = null) {} public function recv($timeout = null) {} diff --git a/php_docs_code/swoole/Swoole-Coroutine-Http-Server.php b/php_docs_code/swoole/Swoole-Coroutine-Http-Server.php index 953b3f5..b16447e 100644 --- a/php_docs_code/swoole/Swoole-Coroutine-Http-Server.php +++ b/php_docs_code/swoole/Swoole-Coroutine-Http-Server.php @@ -19,7 +19,7 @@ public function __construct($host, $port = null, $ssl = null, $reuse_port = null public function __destruct() {} public function set($settings) {} public function handle($pattern, $callback) {} -private function onAccept() {} +public function onAccept() {} public function start() {} public function shutdown() {} } diff --git a/php_docs_code/swoole/Swoole-Coroutine-Iterator.php b/php_docs_code/swoole/Swoole-Coroutine-Iterator.php index ff332cc..6758f62 100644 --- a/php_docs_code/swoole/Swoole-Coroutine-Iterator.php +++ b/php_docs_code/swoole/Swoole-Coroutine-Iterator.php @@ -11,30 +11,30 @@ class Iterator extends \ArrayIterator implements \Countable,\Serializable,\Seeka const ARRAY_AS_PROPS = 2; public function __construct($array = null, $flags = null) {} -public function offsetExists($key) {} -public function offsetGet($key) {} -public function offsetSet($key, $value) {} -public function offsetUnset($key) {} +public function offsetExists($index) {} +public function offsetGet($index) {} +public function offsetSet($index, $newval) {} +public function offsetUnset($index) {} public function append($value) {} public function getArrayCopy() {} public function count() {} public function getFlags() {} public function setFlags($flags) {} -public function asort($flags = null) {} -public function ksort($flags = null) {} -public function uasort($callback) {} -public function uksort($callback) {} +public function asort() {} +public function ksort() {} +public function uasort($cmp_function) {} +public function uksort($cmp_function) {} public function natsort() {} public function natcasesort() {} -public function unserialize($data) {} +public function unserialize($serialized) {} public function serialize() {} +public function __unserialize($serialized) {} public function __serialize() {} -public function __unserialize($data) {} +public function __debugInfo() {} public function rewind() {} public function current() {} public function key() {} public function next() {} public function valid() {} -public function seek($offset) {} -public function __debugInfo() {} +public function seek($position) {} } diff --git a/php_docs_code/swoole/Swoole-Coroutine-MySQL-Exception.php b/php_docs_code/swoole/Swoole-Coroutine-MySQL-Exception.php index 0286c06..7ba0eef 100644 --- a/php_docs_code/swoole/Swoole-Coroutine-MySQL-Exception.php +++ b/php_docs_code/swoole/Swoole-Coroutine-MySQL-Exception.php @@ -5,13 +5,14 @@ * @author Leelmes */ namespace Swoole\Coroutine\MySQL; -class Exception extends \Swoole\Exception implements \Throwable,\Stringable { +class Exception extends \Swoole\Exception implements \Throwable { protected $message = ''; protected $code = 0; protected $file; protected $line; +private function __clone() {} public function __construct($message = null, $code = null, $previous = null) {} public function __wakeup() {} public function getMessage() {} diff --git a/php_docs_code/swoole/Swoole-Coroutine-MySQL.php b/php_docs_code/swoole/Swoole-Coroutine-MySQL.php index 2ea0bd8..a11b9ee 100644 --- a/php_docs_code/swoole/Swoole-Coroutine-MySQL.php +++ b/php_docs_code/swoole/Swoole-Coroutine-MySQL.php @@ -31,6 +31,5 @@ public function recv() {} public function begin($timeout = null) {} public function commit($timeout = null) {} public function rollback($timeout = null) {} -public function escape($string, $flags = null) {} public function close() {} } diff --git a/php_docs_code/swoole/Swoole-Coroutine-Scheduler.php b/php_docs_code/swoole/Swoole-Coroutine-Scheduler.php index 38dbe92..3486878 100644 --- a/php_docs_code/swoole/Swoole-Coroutine-Scheduler.php +++ b/php_docs_code/swoole/Swoole-Coroutine-Scheduler.php @@ -11,6 +11,5 @@ final class Scheduler { public function add($func, $params = null) {} public function parallel($n, $func = null, $params = null) {} public function set($settings) {} -public function getOptions() {} public function start() {} } diff --git a/php_docs_code/swoole/Swoole-Coroutine-Socket-Exception.php b/php_docs_code/swoole/Swoole-Coroutine-Socket-Exception.php index 518fd40..86fd376 100644 --- a/php_docs_code/swoole/Swoole-Coroutine-Socket-Exception.php +++ b/php_docs_code/swoole/Swoole-Coroutine-Socket-Exception.php @@ -5,13 +5,14 @@ * @author Leelmes */ namespace Swoole\Coroutine\Socket; -class Exception extends \Swoole\Exception implements \Throwable,\Stringable { +class Exception extends \Swoole\Exception implements \Throwable { protected $message = ''; protected $code = 0; protected $file; protected $line; +private function __clone() {} public function __construct($message = null, $code = null, $previous = null) {} public function __wakeup() {} public function getMessage() {} diff --git a/php_docs_code/swoole/Swoole-Coroutine-Socket.php b/php_docs_code/swoole/Swoole-Coroutine-Socket.php index b899aef..d94b0fe 100644 --- a/php_docs_code/swoole/Swoole-Coroutine-Socket.php +++ b/php_docs_code/swoole/Swoole-Coroutine-Socket.php @@ -8,9 +8,6 @@ class Socket { public $fd = -1; -public $domain = 0; -public $type = 0; -public $protocol = 0; public $errCode = 0; public $errMsg = ''; @@ -19,26 +16,17 @@ public function bind($address, $port = null) {} public function listen($backlog = null) {} public function accept($timeout = null) {} public function connect($host, $port = null, $timeout = null) {} -public function checkLiveness() {} -public function peek($length = null) {} public function recv($length = null, $timeout = null) {} -public function recvAll($length = null, $timeout = null) {} -public function recvLine($length = null, $timeout = null) {} -public function recvWithBuffer($length = null, $timeout = null) {} public function recvPacket($timeout = null) {} public function send($data, $timeout = null) {} -public function readVector($io_vector, $timeout = null) {} -public function readVectorAll($io_vector, $timeout = null) {} -public function writeVector($io_vector, $timeout = null) {} -public function writeVectorAll($io_vector, $timeout = null) {} public function sendFile($filename, $offset = null, $length = null) {} +public function recvAll($length = null, $timeout = null) {} public function sendAll($data, $timeout = null) {} public function recvfrom(& $peername, $timeout = null) {} public function sendto($addr, $port, $data) {} public function getOption($level, $opt_name) {} public function setProtocol($settings) {} public function setOption($level, $opt_name, $opt_value) {} -public function sslHandshake() {} public function shutdown($how = null) {} public function cancel($event = null) {} public function close() {} diff --git a/php_docs_code/swoole/Swoole-Coroutine-System.php b/php_docs_code/swoole/Swoole-Coroutine-System.php index ef12539..d3b5324 100644 --- a/php_docs_code/swoole/Swoole-Coroutine-System.php +++ b/php_docs_code/swoole/Swoole-Coroutine-System.php @@ -12,15 +12,11 @@ static public function gethostbyname($domain_name, $family = null, $timeout = nu static public function dnsLookup($domain_name, $timeout = null) {} static public function exec($command, $get_error_stream = null) {} static public function sleep($seconds) {} -static public function getaddrinfo($hostname, $family = null, $socktype = null, $protocol = null, $service = null, $timeout = null) {} -static public function statvfs($path) {} -static public function readFile($filename) {} -static public function writeFile($filename, $data, $flags = null) {} -static public function wait($timeout = null) {} -static public function waitPid($pid, $timeout = null) {} -static public function waitSignal($signo, $timeout = null) {} -static public function waitEvent($fd, $events = null, $timeout = null) {} static public function fread($handle, $length = null) {} static public function fwrite($handle, $string, $length = null) {} static public function fgets($handle) {} +static public function getaddrinfo($hostname, $family = null, $socktype = null, $protocol = null, $service = null, $timeout = null) {} +static public function readFile($filename) {} +static public function writeFile($filename, $data, $flags = null) {} +static public function statvfs($path) {} } diff --git a/php_docs_code/swoole/Swoole-Coroutine-WaitGroup.php b/php_docs_code/swoole/Swoole-Coroutine-WaitGroup.php index 0ae45aa..2a36506 100644 --- a/php_docs_code/swoole/Swoole-Coroutine-WaitGroup.php +++ b/php_docs_code/swoole/Swoole-Coroutine-WaitGroup.php @@ -11,7 +11,7 @@ class WaitGroup { protected $count = 0; protected $waiting = false; -public function __construct($delta = null) {} +public function __construct() {} public function add($delta = null) {} public function done() {} public function wait($timeout = null) {} diff --git a/php_docs_code/swoole/Swoole-Coroutine.php b/php_docs_code/swoole/Swoole-Coroutine.php index 85603f3..a9f0201 100644 --- a/php_docs_code/swoole/Swoole-Coroutine.php +++ b/php_docs_code/swoole/Swoole-Coroutine.php @@ -11,7 +11,6 @@ class Coroutine { static public function create($func, $params = null) {} static public function defer($callback) {} static public function set($options) {} -static public function getOptions() {} static public function exists($cid) {} static public function yield() {} static public function suspend() {} @@ -22,8 +21,6 @@ static public function getuid() {} static public function getPcid($cid = null) {} static public function getContext($cid = null) {} static public function getBackTrace($cid = null, $options = null, $limit = null) {} -static public function printBackTrace($cid = null, $options = null, $limit = null) {} -static public function getElapsed($cid = null) {} static public function list() {} static public function listCoroutines() {} static public function enableScheduler() {} @@ -32,15 +29,11 @@ static public function gethostbyname($domain_name, $family = null, $timeout = nu static public function dnsLookup($domain_name, $timeout = null) {} static public function exec($command, $get_error_stream = null) {} static public function sleep($seconds) {} -static public function getaddrinfo($hostname, $family = null, $socktype = null, $protocol = null, $service = null, $timeout = null) {} -static public function statvfs($path) {} -static public function readFile($filename) {} -static public function writeFile($filename, $data, $flags = null) {} -static public function wait($timeout = null) {} -static public function waitPid($pid, $timeout = null) {} -static public function waitSignal($signo, $timeout = null) {} -static public function waitEvent($fd, $events = null, $timeout = null) {} static public function fread($handle, $length = null) {} static public function fgets($handle) {} static public function fwrite($handle, $string, $length = null) {} +static public function readFile($filename) {} +static public function writeFile($filename, $data, $flags = null) {} +static public function getaddrinfo($hostname, $family = null, $socktype = null, $protocol = null, $service = null, $timeout = null) {} +static public function statvfs($path) {} } diff --git a/php_docs_code/swoole/Swoole-Curl-Exception.php b/php_docs_code/swoole/Swoole-Curl-Exception.php index e0a2706..a50953c 100644 --- a/php_docs_code/swoole/Swoole-Curl-Exception.php +++ b/php_docs_code/swoole/Swoole-Curl-Exception.php @@ -5,13 +5,14 @@ * @author Leelmes */ namespace Swoole\Curl; -class Exception extends \Swoole\Exception implements \Throwable,\Stringable { +class Exception extends \Swoole\Exception implements \Throwable { protected $message = ''; protected $code = 0; protected $file; protected $line; +private function __clone() {} public function __construct($message = null, $code = null, $previous = null) {} public function __wakeup() {} public function getMessage() {} diff --git a/php_docs_code/swoole/Swoole-Curl-Handler.php b/php_docs_code/swoole/Swoole-Curl-Handler.php index 98710ed..4736e55 100644 --- a/php_docs_code/swoole/Swoole-Curl-Handler.php +++ b/php_docs_code/swoole/Swoole-Curl-Handler.php @@ -5,7 +5,7 @@ * @author Leelmes */ namespace Swoole\Curl; -final class Handler implements \Stringable { +final class Handler { private $client; private $info = array ( @@ -17,7 +17,7 @@ final class Handler implements \Stringable { 'filetime' => -1, 'ssl_verify_result' => 0, 'redirect_count' => 0, - 'total_time' => 5.3E-5, + 'total_time' => 5.3000000000000000778023478975597981843748129904270172119140625E-5, 'namelookup_time' => 0.0, 'connect_time' => 0.0, 'pretransfer_time' => 0.0, @@ -69,17 +69,12 @@ final class Handler implements \Stringable { private $method = ''; private $headers = array ( ); -private $headerMap = array ( -); private $transfer; private $errCode = 0; private $errMsg = ''; -private $failOnError = false; private $closed = false; -private $cookieJar = ''; public function __construct($url = null) {} -public function __toString() {} public function isAvailable() {} public function setOpt($opt, $value) {} public function exec() {} @@ -95,8 +90,6 @@ private function setUrl($url, $setInfo = null) {} private function setUrlInfo($urlInfo) {} private function setPort($port) {} private function setError($code, $msg = null) {} -private function hasHeader($headerName) {} -private function setHeader($headerName, $value) {} private function setOption($opt, $value) {} private function execute() {} static private function unparseUrl($parsedUrl) {} diff --git a/php_docs_code/swoole/Swoole-Database-MysqliException.php b/php_docs_code/swoole/Swoole-Database-MysqliException.php index 9f30cd8..5ecc356 100644 --- a/php_docs_code/swoole/Swoole-Database-MysqliException.php +++ b/php_docs_code/swoole/Swoole-Database-MysqliException.php @@ -5,13 +5,14 @@ * @author Leelmes */ namespace Swoole\Database; -class MysqliException extends \Exception implements \Stringable,\Throwable { +class MysqliException extends \Exception implements \Throwable { protected $message = ''; protected $code = 0; protected $file; protected $line; +private function __clone() {} public function __construct($message = null, $code = null, $previous = null) {} public function __wakeup() {} public function getMessage() {} diff --git a/php_docs_code/swoole/Swoole-Database-MysqliProxy.php b/php_docs_code/swoole/Swoole-Database-MysqliProxy.php index b522c5e..00dda33 100644 --- a/php_docs_code/swoole/Swoole-Database-MysqliProxy.php +++ b/php_docs_code/swoole/Swoole-Database-MysqliProxy.php @@ -5,9 +5,8 @@ * @author Leelmes */ namespace Swoole\Database; -class MysqliProxy extends \Swoole\Database\ObjectProxy { +class MysqliProxy extends \Swoole\ObjectProxy { -const IO_METHOD_REGEX = '/^autocommit|begin_transaction|change_user|close|commit|kill|multi_query|ping|prepare|query|real_connect|real_query|reap_async_query|refresh|release_savepoint|rollback|savepoint|select_db|send_query|set_charset|ssl_set$/i'; const IO_ERRORS = array ( 0 => 2002, 1 => 2006, @@ -24,11 +23,9 @@ public function __construct($constructor) {} public function __call($name, $arguments) {} public function getRound() {} public function reconnect() {} -public function options($option, $value) {} public function set_opt($option, $value) {} public function set_charset($charset) {} public function change_user($user, $password, $database) {} -public function __clone() {} public function __getObject() {} public function __get($name) {} public function __set($name, $value) {} diff --git a/php_docs_code/swoole/Swoole-Database-MysqliStatementProxy.php b/php_docs_code/swoole/Swoole-Database-MysqliStatementProxy.php index 7ce4ab9..0416a2e 100644 --- a/php_docs_code/swoole/Swoole-Database-MysqliStatementProxy.php +++ b/php_docs_code/swoole/Swoole-Database-MysqliStatementProxy.php @@ -5,9 +5,8 @@ * @author Leelmes */ namespace Swoole\Database; -class MysqliStatementProxy extends \Swoole\Database\ObjectProxy { +class MysqliStatementProxy extends \Swoole\ObjectProxy { -const IO_METHOD_REGEX = '/^close|execute|fetch|prepare$/i'; protected $__object; protected $queryString; protected $attrSetContext; @@ -21,7 +20,6 @@ public function __call($name, $arguments) {} public function attr_set($attr, $mode) {} public function bind_param($types, & $arguments = null) {} public function bind_result(& $arguments = null) {} -public function __clone() {} public function __getObject() {} public function __get($name) {} public function __set($name, $value) {} diff --git a/php_docs_code/swoole/Swoole-Database-PDOConfig.php b/php_docs_code/swoole/Swoole-Database-PDOConfig.php index aa2a816..e37d270 100644 --- a/php_docs_code/swoole/Swoole-Database-PDOConfig.php +++ b/php_docs_code/swoole/Swoole-Database-PDOConfig.php @@ -8,6 +8,7 @@ class PDOConfig { const DRIVER_MYSQL = 'mysql'; +const DRIVER_PGSQL = 'pgsql'; protected $driver = 'mysql'; protected $host = '127.0.0.1'; protected $port = 3306; diff --git a/php_docs_code/swoole/Swoole-Database-PDOProxy.php b/php_docs_code/swoole/Swoole-Database-PDOProxy.php index 26507cf..11b3e57 100644 --- a/php_docs_code/swoole/Swoole-Database-PDOProxy.php +++ b/php_docs_code/swoole/Swoole-Database-PDOProxy.php @@ -5,9 +5,8 @@ * @author Leelmes */ namespace Swoole\Database; -class PDOProxy extends \Swoole\Database\ObjectProxy { +class PDOProxy extends \Swoole\ObjectProxy { -const IO_METHOD_REGEX = '/^query|prepare|exec|beginTransaction|commit|rollback$/i'; const IO_ERRORS = array ( 0 => 2002, 1 => 2006, @@ -24,7 +23,6 @@ public function getRound() {} public function reconnect() {} public function setAttribute($attribute, $value) {} public function inTransaction() {} -public function __clone() {} public function __getObject() {} public function __get($name) {} public function __set($name, $value) {} diff --git a/php_docs_code/swoole/Swoole-Database-PDOStatementProxy.php b/php_docs_code/swoole/Swoole-Database-PDOStatementProxy.php index 69ab289..1561458 100644 --- a/php_docs_code/swoole/Swoole-Database-PDOStatementProxy.php +++ b/php_docs_code/swoole/Swoole-Database-PDOStatementProxy.php @@ -5,7 +5,7 @@ * @author Leelmes */ namespace Swoole\Database; -class PDOStatementProxy extends \Swoole\Database\ObjectProxy { +class PDOStatementProxy extends \Swoole\ObjectProxy { protected $__object; protected $setAttributeContext; @@ -23,7 +23,6 @@ public function setFetchMode($mode, $classNameObject = null, $ctorarfg = null) { public function bindParam($parameter, & $variable, $data_type = null, $length = null, $driver_options = null) {} public function bindColumn($column, & $param, $type = null, $maxlen = null, $driverdata = null) {} public function bindValue($parameter, $value, $data_type = null) {} -public function __clone() {} public function __getObject() {} public function __get($name) {} public function __set($name, $value) {} diff --git a/php_docs_code/swoole/Swoole-Error.php b/php_docs_code/swoole/Swoole-Error.php index 6f537fb..7b5fd6f 100644 --- a/php_docs_code/swoole/Swoole-Error.php +++ b/php_docs_code/swoole/Swoole-Error.php @@ -5,13 +5,14 @@ * @author Leelmes */ namespace Swoole; -class Error extends \Error implements \Stringable,\Throwable { +class Error extends \Error implements \Throwable { protected $message = ''; protected $code = 0; protected $file; protected $line; +private function __clone() {} public function __construct($message = null, $code = null, $previous = null) {} public function __wakeup() {} public function getMessage() {} diff --git a/php_docs_code/swoole/Swoole-Exception.php b/php_docs_code/swoole/Swoole-Exception.php index 8d1f446..b4fec56 100644 --- a/php_docs_code/swoole/Swoole-Exception.php +++ b/php_docs_code/swoole/Swoole-Exception.php @@ -5,13 +5,14 @@ * @author Leelmes */ namespace Swoole; -class Exception extends \Exception implements \Stringable,\Throwable { +class Exception extends \Exception implements \Throwable { protected $message = ''; protected $code = 0; protected $file; protected $line; +private function __clone() {} public function __construct($message = null, $code = null, $previous = null) {} public function __wakeup() {} public function getMessage() {} diff --git a/php_docs_code/swoole/Swoole-ExitException.php b/php_docs_code/swoole/Swoole-ExitException.php index cb4b143..c297682 100644 --- a/php_docs_code/swoole/Swoole-ExitException.php +++ b/php_docs_code/swoole/Swoole-ExitException.php @@ -5,7 +5,7 @@ * @author Leelmes */ namespace Swoole; -class ExitException extends \Swoole\Exception implements \Throwable,\Stringable { +class ExitException extends \Swoole\Exception implements \Throwable { protected $message = ''; protected $code = 0; @@ -16,6 +16,7 @@ class ExitException extends \Swoole\Exception implements \Throwable,\Stringable public function getFlags() {} public function getStatus() {} +private function __clone() {} public function __construct($message = null, $code = null, $previous = null) {} public function __wakeup() {} public function getMessage() {} diff --git a/php_docs_code/swoole/Swoole-Http-Client.php b/php_docs_code/swoole/Swoole-Http-Client.php new file mode 100644 index 0000000..86a3314 --- /dev/null +++ b/php_docs_code/swoole/Swoole-Http-Client.php @@ -0,0 +1,48 @@ + + */ +namespace Swoole\Http; +class Client { + +public $type = 0; +public $errCode = 0; +public $errMsg = ''; +public $statusCode = 0; +public $host; +public $port = 0; +public $ssl = false; +public $requestMethod; +public $requestHeaders; +public $requestBody; +public $uploadFiles; +public $set_cookie_headers; +public $downloadFile; +public $headers; +public $cookies; +public $body; +public $onConnect; +public $onError; +public $onMessage; +public $onClose; + +public function __construct($host, $port = null, $ssl = null) {} +public function __destruct() {} +public function set($settings) {} +public function setMethod($method) {} +public function setHeaders($headers) {} +public function setCookies($cookies) {} +public function setData($data) {} +public function addFile($path, $name, $type = null, $filename = null, $offset = null, $length = null) {} +public function execute($path, $callback) {} +public function push($data, $opcode = null, $flags = null) {} +public function get($path, $callback) {} +public function post($path, $data, $callback) {} +public function upgrade($path, $callback) {} +public function download($path, $file, $callback, $offset = null) {} +public function isConnected() {} +public function close() {} +public function on($event_name, $callback) {} +} diff --git a/php_docs_code/swoole/Swoole-Http-Request.php b/php_docs_code/swoole/Swoole-Http-Request.php index dcad31f..50fda2d 100644 --- a/php_docs_code/swoole/Swoole-Http-Request.php +++ b/php_docs_code/swoole/Swoole-Http-Request.php @@ -8,7 +8,6 @@ class Request { public $fd = 0; -public $streamId = 0; public $header; public $server; public $cookie; @@ -18,11 +17,6 @@ class Request { public $tmpfiles; public function rawContent() {} -public function getContent() {} public function getData() {} -static public function create($options = null) {} -public function parse($data) {} -public function isCompleted() {} -public function getMethod() {} public function __destruct() {} } diff --git a/php_docs_code/swoole/Swoole-Http-Response.php b/php_docs_code/swoole/Swoole-Http-Response.php index 94593a8..160d6b8 100644 --- a/php_docs_code/swoole/Swoole-Http-Response.php +++ b/php_docs_code/swoole/Swoole-Http-Response.php @@ -11,26 +11,21 @@ class Response { public $socket; public $header; public $cookie; -public $trailer; public function initHeader() {} -public function isWritable() {} -public function cookie($name, $value = null, $expires = null, $path = null, $domain = null, $secure = null, $httponly = null, $samesite = null, $priority = null) {} -public function setCookie($name, $value = null, $expires = null, $path = null, $domain = null, $secure = null, $httponly = null, $samesite = null, $priority = null) {} -public function rawcookie($name, $value = null, $expires = null, $path = null, $domain = null, $secure = null, $httponly = null, $samesite = null, $priority = null) {} +public function cookie($name, $value = null, $expires = null, $path = null, $domain = null, $secure = null, $httponly = null, $samesite = null) {} +public function setCookie($name, $value = null, $expires = null, $path = null, $domain = null, $secure = null, $httponly = null, $samesite = null) {} +public function rawcookie($name, $value = null, $expires = null, $path = null, $domain = null, $secure = null, $httponly = null, $samesite = null) {} public function status($http_code, $reason = null) {} public function setStatusCode($http_code, $reason = null) {} -public function header($key, $value, $format = null) {} -public function setHeader($key, $value, $format = null) {} -public function trailer($key, $value) {} -public function ping() {} -public function goaway() {} +public function header($key, $value, $ucwords = null) {} +public function setHeader($key, $value, $ucwords = null) {} public function write($content) {} public function end($content = null) {} public function sendfile($filename, $offset = null, $length = null) {} public function redirect($location, $http_code = null) {} public function detach() {} -static public function create($server, $fd = null) {} +static public function create($fd) {} public function upgrade() {} public function push($data, $opcode = null, $flags = null) {} public function recv() {} diff --git a/php_docs_code/swoole/Swoole-Http-Server.php b/php_docs_code/swoole/Swoole-Http-Server.php index 3274e84..78a7051 100644 --- a/php_docs_code/swoole/Swoole-Http-Server.php +++ b/php_docs_code/swoole/Swoole-Http-Server.php @@ -19,7 +19,7 @@ class Server extends \Swoole\Server { public $worker_id = -1; public $taskworker = false; public $worker_pid = 0; -public $stats_timer; +private $onRequest; public function __construct($host, $port = null, $mode = null, $sock_type = null) {} public function __destruct() {} @@ -52,11 +52,6 @@ public function getLastError() {} public function heartbeat($reactor_id) {} public function getClientInfo($fd, $reactor_id = null) {} public function getClientList($start_fd, $find_count = null) {} -public function getWorkerId() {} -public function getWorkerPid() {} -public function getWorkerStatus($worker_id = null) {} -public function getManagerPid() {} -public function getMasterPid() {} public function connection_info($fd, $reactor_id = null) {} public function connection_list($start_fd, $find_count = null) {} public function sendMessage($message, $dst_worker_id) {} diff --git a/php_docs_code/swoole/Swoole-Memory-Pool-Slice.php b/php_docs_code/swoole/Swoole-Memory-Pool-Slice.php new file mode 100644 index 0000000..192b04b --- /dev/null +++ b/php_docs_code/swoole/Swoole-Memory-Pool-Slice.php @@ -0,0 +1,14 @@ + + */ +namespace Swoole\Memory\Pool; +class Slice { + + +public function read($size = null, $offset = null) {} +public function write($data, $offset = null) {} +public function __destruct() {} +} diff --git a/php_docs_code/swoole/Swoole-Memory-Pool.php b/php_docs_code/swoole/Swoole-Memory-Pool.php new file mode 100644 index 0000000..5cd7be0 --- /dev/null +++ b/php_docs_code/swoole/Swoole-Memory-Pool.php @@ -0,0 +1,19 @@ + + */ +namespace Swoole\Memory; +class Pool { + +const TYPE_RING = 1; +const TYPE_GLOBAL = 2; +const TYPE_FIXED = 0; +const TYPE_MALLOC = 3; +const TYPE_EMALLOC = 4; + +public function __construct($size, $type, $slice_size = null, $shared = null) {} +public function __destruct() {} +public function alloc($size = null) {} +} diff --git a/php_docs_code/swoole/Swoole-Mmap.php b/php_docs_code/swoole/Swoole-Mmap.php new file mode 100644 index 0000000..2a631f2 --- /dev/null +++ b/php_docs_code/swoole/Swoole-Mmap.php @@ -0,0 +1,12 @@ + + */ +namespace Swoole; +class Mmap { + + +static public function open($filename, $size = null, $offset = null) {} +} diff --git a/php_docs_code/swoole/Swoole-MsgQueue.php b/php_docs_code/swoole/Swoole-MsgQueue.php new file mode 100644 index 0000000..2e633aa --- /dev/null +++ b/php_docs_code/swoole/Swoole-MsgQueue.php @@ -0,0 +1,18 @@ + + */ +namespace Swoole; +class MsgQueue { + + +public function __construct($len) {} +public function __destruct() {} +public function push($data, $type = null) {} +public function pop($type = null) {} +public function setBlocking($blocking) {} +public function stats() {} +public function destroy() {} +} diff --git a/php_docs_code/swoole/Swoole-MultibyteStringObject.php b/php_docs_code/swoole/Swoole-MultibyteStringObject.php index 2e3810b..260741f 100644 --- a/php_docs_code/swoole/Swoole-MultibyteStringObject.php +++ b/php_docs_code/swoole/Swoole-MultibyteStringObject.php @@ -5,7 +5,7 @@ * @author Leelmes */ namespace Swoole; -class MultibyteStringObject extends \Swoole\StringObject implements \Stringable { +class MultibyteStringObject extends \Swoole\StringObject { protected $string; @@ -22,15 +22,13 @@ public function __toString() {} public function lower() {} public function upper() {} public function trim() {} -public function ltrim() {} +public function lrim() {} public function rtrim() {} public function repeat($n) {} -public function append($str) {} public function replace($search, $replace, & $count = null) {} public function startsWith($needle) {} -public function endsWith($needle) {} -public function equals($str, $strict = null) {} public function contains($subString) {} +public function endsWith($needle) {} public function split($delimiter, $limit = null) {} public function char($index) {} public function chunkSplit($chunkLength = null, $chunkEnd = null) {} diff --git a/php_docs_code/swoole/Swoole-MySQL-Exception.php b/php_docs_code/swoole/Swoole-MySQL-Exception.php new file mode 100644 index 0000000..c3be72c --- /dev/null +++ b/php_docs_code/swoole/Swoole-MySQL-Exception.php @@ -0,0 +1,26 @@ + + */ +namespace Swoole\MySQL; +class Exception extends \Swoole\Exception implements \Throwable { + +protected $message = ''; +protected $code = 0; +protected $file; +protected $line; + +private function __clone() {} +public function __construct($message = null, $code = null, $previous = null) {} +public function __wakeup() {} +public function getMessage() {} +public function getCode() {} +public function getFile() {} +public function getLine() {} +public function getTrace() {} +public function getPrevious() {} +public function getTraceAsString() {} +public function __toString() {} +} diff --git a/php_docs_code/swoole/Swoole-MySQL.php b/php_docs_code/swoole/Swoole-MySQL.php new file mode 100644 index 0000000..6f50529 --- /dev/null +++ b/php_docs_code/swoole/Swoole-MySQL.php @@ -0,0 +1,38 @@ + + */ +namespace Swoole; +class MySQL { + +const STATE_QUERY = 0; +const STATE_READ_START = 1; +const STATE_READ_FIELD = 2; +const STATE_READ_ROW = 3; +const STATE_READ_END = 5; +const STATE_CLOSED = 6; +public $serverInfo; +public $sock = -1; +public $connected = false; +public $errno = 0; +public $connect_errno = 0; +public $error; +public $connect_error; +public $insert_id; +public $affected_rows; +public $onConnect; +public $onClose; + +public function __construct() {} +public function __destruct() {} +public function connect($server_config, $callback) {} +public function begin($callback) {} +public function commit($callback) {} +public function rollback($callback) {} +public function query($sql, $callback) {} +public function close() {} +public function getState() {} +public function on($event_name, $callback) {} +} diff --git a/php_docs_code/swoole/Swoole-Process.php b/php_docs_code/swoole/Swoole-Process.php index bb788bb..15a75d3 100644 --- a/php_docs_code/swoole/Swoole-Process.php +++ b/php_docs_code/swoole/Swoole-Process.php @@ -26,9 +26,7 @@ static public function signal($signal_no, $callback) {} static public function alarm($usec, $type = null) {} static public function kill($pid, $signal_no = null) {} static public function daemon($nochdir = null, $noclose = null, $pipes = null) {} -static public function setAffinity($cpu_settings) {} -public function setPriority($which, $priority) {} -public function getPriority($which) {} +static public function setaffinity($cpu_settings) {} public function set($settings) {} public function setTimeout($seconds) {} public function setBlocking($blocking) {} diff --git a/php_docs_code/swoole/Swoole-Redis-Server.php b/php_docs_code/swoole/Swoole-Redis-Server.php index 7b9e6ad..fcabb5a 100644 --- a/php_docs_code/swoole/Swoole-Redis-Server.php +++ b/php_docs_code/swoole/Swoole-Redis-Server.php @@ -26,7 +26,6 @@ class Server extends \Swoole\Server { public $worker_id = -1; public $taskworker = false; public $worker_pid = 0; -public $stats_timer; public function start() {} public function setHandler($command, $callback) {} @@ -62,11 +61,6 @@ public function getLastError() {} public function heartbeat($reactor_id) {} public function getClientInfo($fd, $reactor_id = null) {} public function getClientList($start_fd, $find_count = null) {} -public function getWorkerId() {} -public function getWorkerPid() {} -public function getWorkerStatus($worker_id = null) {} -public function getManagerPid() {} -public function getMasterPid() {} public function connection_info($fd, $reactor_id = null) {} public function connection_list($start_fd, $find_count = null) {} public function sendMessage($message, $dst_worker_id) {} diff --git a/php_docs_code/swoole/Swoole-Redis.php b/php_docs_code/swoole/Swoole-Redis.php new file mode 100644 index 0000000..388d819 --- /dev/null +++ b/php_docs_code/swoole/Swoole-Redis.php @@ -0,0 +1,32 @@ + + */ +namespace Swoole; +class Redis { + +const STATE_CONNECT = 0; +const STATE_READY = 1; +const STATE_WAIT_RESULT = 2; +const STATE_SUBSCRIBE = 3; +const STATE_CLOSED = 4; +public $onConnect; +public $onClose; +public $onMessage; +public $setting; +public $host; +public $port; +public $sock; +public $errCode; +public $errMsg; + +public function __construct($setting = null) {} +public function __destruct() {} +public function on($event_name, $callback) {} +public function connect($host, $port, $callback) {} +public function close() {} +public function getState() {} +public function __call($command, $params) {} +} diff --git a/php_docs_code/swoole/Swoole-RingQueue.php b/php_docs_code/swoole/Swoole-RingQueue.php new file mode 100644 index 0000000..3060da7 --- /dev/null +++ b/php_docs_code/swoole/Swoole-RingQueue.php @@ -0,0 +1,18 @@ + + */ +namespace Swoole; +class RingQueue { + + +public function __construct($len) {} +public function __destruct() {} +public function push($data) {} +public function pop() {} +public function count() {} +public function isFull() {} +public function isEmpty() {} +} diff --git a/php_docs_code/swoole/Swoole-Runtime.php b/php_docs_code/swoole/Swoole-Runtime.php index 11598f9..580185d 100644 --- a/php_docs_code/swoole/Swoole-Runtime.php +++ b/php_docs_code/swoole/Swoole-Runtime.php @@ -8,7 +8,7 @@ class Runtime { +static public function enableStrictMode() {} static public function enableCoroutine($enable = null, $flags = null) {} static public function getHookFlags() {} -static public function setHookFlags($flags) {} } diff --git a/php_docs_code/swoole/Swoole-Server-Task.php b/php_docs_code/swoole/Swoole-Server-Task.php index 1cf5814..ed6cfc6 100644 --- a/php_docs_code/swoole/Swoole-Server-Task.php +++ b/php_docs_code/swoole/Swoole-Server-Task.php @@ -8,7 +8,6 @@ final class Task { public $data; -public $dispatch_time = 0.0; public $id = -1; public $worker_id = -1; public $flags = 0; diff --git a/php_docs_code/swoole/Swoole-Server.php b/php_docs_code/swoole/Swoole-Server.php index 6ab49ad..0929708 100644 --- a/php_docs_code/swoole/Swoole-Server.php +++ b/php_docs_code/swoole/Swoole-Server.php @@ -11,8 +11,6 @@ class Server { private $onShutdown; private $onWorkerStart; private $onWorkerStop; -private $onBeforeReload; -private $onAfterReload; private $onWorkerExit; private $onWorkerError; private $onTask; @@ -32,7 +30,6 @@ class Server { public $worker_id = -1; public $taskworker = false; public $worker_pid = 0; -public $stats_timer; public function __construct($host, $port = null, $mode = null, $sock_type = null) {} public function __destruct() {} @@ -65,11 +62,6 @@ public function getLastError() {} public function heartbeat($reactor_id) {} public function getClientInfo($fd, $reactor_id = null) {} public function getClientList($start_fd, $find_count = null) {} -public function getWorkerId() {} -public function getWorkerPid() {} -public function getWorkerStatus($worker_id = null) {} -public function getManagerPid() {} -public function getMasterPid() {} public function connection_info($fd, $reactor_id = null) {} public function connection_list($start_fd, $find_count = null) {} public function sendMessage($message, $dst_worker_id) {} diff --git a/php_docs_code/swoole/Swoole-StringObject.php b/php_docs_code/swoole/Swoole-StringObject.php index 72c8cf1..b54c3f8 100644 --- a/php_docs_code/swoole/Swoole-StringObject.php +++ b/php_docs_code/swoole/Swoole-StringObject.php @@ -5,7 +5,7 @@ * @author Leelmes */ namespace Swoole; -class StringObject implements \Stringable { +class StringObject { protected $string; @@ -20,16 +20,14 @@ public function ipos($needle) {} public function lower() {} public function upper() {} public function trim() {} -public function ltrim() {} +public function lrim() {} public function rtrim() {} public function substr($offset, $length = null) {} public function repeat($n) {} -public function append($str) {} public function replace($search, $replace, & $count = null) {} public function startsWith($needle) {} -public function endsWith($needle) {} -public function equals($str, $strict = null) {} public function contains($subString) {} +public function endsWith($needle) {} public function split($delimiter, $limit = null) {} public function char($index) {} public function chunkSplit($chunkLength = null, $chunkEnd = null) {} diff --git a/php_docs_code/swoole/Swoole-Table.php b/php_docs_code/swoole/Swoole-Table.php index 73ddd95..44727ee 100644 --- a/php_docs_code/swoole/Swoole-Table.php +++ b/php_docs_code/swoole/Swoole-Table.php @@ -8,10 +8,8 @@ class Table implements \Iterator,\Traversable,\ArrayAccess,\Countable { const TYPE_INT = 1; -const TYPE_STRING = 3; -const TYPE_FLOAT = 2; -public $size; -public $memorySize; +const TYPE_STRING = 7; +const TYPE_FLOAT = 6; public function __construct($table_size, $conflict_proportion = null) {} public function column($name, $type, $size = null) {} @@ -21,12 +19,10 @@ public function set($key, $value) {} public function get($key, $field = null) {} public function count() {} public function del($key) {} -public function delete($key) {} public function exists($key) {} public function exist($key) {} public function incr($key, $column, $incrby = null) {} public function decr($key, $column, $decrby = null) {} -public function getSize() {} public function getMemorySize() {} public function offsetExists($offset) {} public function offsetGet($offset) {} diff --git a/php_docs_code/swoole/Swoole-Timer-Iterator.php b/php_docs_code/swoole/Swoole-Timer-Iterator.php index b4c9af7..3d38854 100644 --- a/php_docs_code/swoole/Swoole-Timer-Iterator.php +++ b/php_docs_code/swoole/Swoole-Timer-Iterator.php @@ -11,30 +11,30 @@ class Iterator extends \ArrayIterator implements \Countable,\Serializable,\Seeka const ARRAY_AS_PROPS = 2; public function __construct($array = null, $flags = null) {} -public function offsetExists($key) {} -public function offsetGet($key) {} -public function offsetSet($key, $value) {} -public function offsetUnset($key) {} +public function offsetExists($index) {} +public function offsetGet($index) {} +public function offsetSet($index, $newval) {} +public function offsetUnset($index) {} public function append($value) {} public function getArrayCopy() {} public function count() {} public function getFlags() {} public function setFlags($flags) {} -public function asort($flags = null) {} -public function ksort($flags = null) {} -public function uasort($callback) {} -public function uksort($callback) {} +public function asort() {} +public function ksort() {} +public function uasort($cmp_function) {} +public function uksort($cmp_function) {} public function natsort() {} public function natcasesort() {} -public function unserialize($data) {} +public function unserialize($serialized) {} public function serialize() {} +public function __unserialize($serialized) {} public function __serialize() {} -public function __unserialize($data) {} +public function __debugInfo() {} public function rewind() {} public function current() {} public function key() {} public function next() {} public function valid() {} -public function seek($offset) {} -public function __debugInfo() {} +public function seek($position) {} } diff --git a/php_docs_code/swoole/Swoole-WebSocket-Server.php b/php_docs_code/swoole/Swoole-WebSocket-Server.php index 4fea217..998fb3d 100644 --- a/php_docs_code/swoole/Swoole-WebSocket-Server.php +++ b/php_docs_code/swoole/Swoole-WebSocket-Server.php @@ -19,7 +19,7 @@ class Server extends \Swoole\Http\Server { public $worker_id = -1; public $taskworker = false; public $worker_pid = 0; -public $stats_timer; +private $onHandshake; public function push($fd, $data, $opcode = null, $flags = null) {} public function disconnect($fd, $code = null, $reason = null) {} @@ -57,11 +57,6 @@ public function getLastError() {} public function heartbeat($reactor_id) {} public function getClientInfo($fd, $reactor_id = null) {} public function getClientList($start_fd, $find_count = null) {} -public function getWorkerId() {} -public function getWorkerPid() {} -public function getWorkerStatus($worker_id = null) {} -public function getManagerPid() {} -public function getMasterPid() {} public function connection_info($fd, $reactor_id = null) {} public function connection_list($start_fd, $find_count = null) {} public function sendMessage($message, $dst_worker_id) {} diff --git a/php_docs_code/swoole/swoole-async-http-client.php b/php_docs_code/swoole/swoole-async-http-client.php new file mode 100644 index 0000000..a28f5e4 --- /dev/null +++ b/php_docs_code/swoole/swoole-async-http-client.php @@ -0,0 +1,48 @@ + + */ +namespace swoole\async\http; +class client { + +public $type = 0; +public $errCode = 0; +public $errMsg = ''; +public $statusCode = 0; +public $host; +public $port = 0; +public $ssl = false; +public $requestMethod; +public $requestHeaders; +public $requestBody; +public $uploadFiles; +public $set_cookie_headers; +public $downloadFile; +public $headers; +public $cookies; +public $body; +public $onConnect; +public $onError; +public $onMessage; +public $onClose; + +public function __construct($host, $port = null, $ssl = null) {} +public function __destruct() {} +public function set($settings) {} +public function setMethod($method) {} +public function setHeaders($headers) {} +public function setCookies($cookies) {} +public function setData($data) {} +public function addFile($path, $name, $type = null, $filename = null, $offset = null, $length = null) {} +public function execute($path, $callback) {} +public function push($data, $opcode = null, $flags = null) {} +public function get($path, $callback) {} +public function post($path, $data, $callback) {} +public function upgrade($path, $callback) {} +public function download($path, $file, $callback, $offset = null) {} +public function isConnected() {} +public function close() {} +public function on($event_name, $callback) {} +} diff --git a/php_docs_code/swoole/swoole-async-mysql.php b/php_docs_code/swoole/swoole-async-mysql.php new file mode 100644 index 0000000..00bb26f --- /dev/null +++ b/php_docs_code/swoole/swoole-async-mysql.php @@ -0,0 +1,38 @@ + + */ +namespace swoole\async; +class mysql { + +const STATE_QUERY = 0; +const STATE_READ_START = 1; +const STATE_READ_FIELD = 2; +const STATE_READ_ROW = 3; +const STATE_READ_END = 5; +const STATE_CLOSED = 6; +public $serverInfo; +public $sock = -1; +public $connected = false; +public $errno = 0; +public $connect_errno = 0; +public $error; +public $connect_error; +public $insert_id; +public $affected_rows; +public $onConnect; +public $onClose; + +public function __construct() {} +public function __destruct() {} +public function connect($server_config, $callback) {} +public function begin($callback) {} +public function commit($callback) {} +public function rollback($callback) {} +public function query($sql, $callback) {} +public function close() {} +public function getState() {} +public function on($event_name, $callback) {} +} diff --git a/php_docs_code/swoole/swoole-async-redis.php b/php_docs_code/swoole/swoole-async-redis.php new file mode 100644 index 0000000..301caaa --- /dev/null +++ b/php_docs_code/swoole/swoole-async-redis.php @@ -0,0 +1,32 @@ + + */ +namespace swoole\async; +class redis { + +const STATE_CONNECT = 0; +const STATE_READY = 1; +const STATE_WAIT_RESULT = 2; +const STATE_SUBSCRIBE = 3; +const STATE_CLOSED = 4; +public $onConnect; +public $onClose; +public $onMessage; +public $setting; +public $host; +public $port; +public $sock; +public $errCode; +public $errMsg; + +public function __construct($setting = null) {} +public function __destruct() {} +public function on($event_name, $callback) {} +public function connect($host, $port, $callback) {} +public function close() {} +public function getState() {} +public function __call($command, $params) {} +} diff --git a/php_docs_code/swoole/swoole_async.php b/php_docs_code/swoole/swoole_async.php new file mode 100644 index 0000000..5450d03 --- /dev/null +++ b/php_docs_code/swoole/swoole_async.php @@ -0,0 +1,17 @@ + + */ +class swoole_async { + + +static public function read($filename, $callback, $chunk_size = null, $offset = null) {} +static public function write($filename, $content, $offset = null, $callback = null) {} +static public function readFile($filename, $callback) {} +static public function writeFile($filename, $content, $callback = null, $flags = null) {} +static public function dnsLookup($hostname, $callback) {} +static public function set($settings) {} +static public function exec($command, $callback) {} +} diff --git a/php_docs_code/swoole/swoole_async_client.php b/php_docs_code/swoole/swoole_async_client.php new file mode 100644 index 0000000..4631153 --- /dev/null +++ b/php_docs_code/swoole/swoole_async_client.php @@ -0,0 +1,49 @@ + + */ +class swoole_async_client { + +const MSG_OOB = 1; +const MSG_PEEK = 2; +const MSG_DONTWAIT = 64; +const MSG_WAITALL = 256; +const SHUT_RDWR = 2; +const SHUT_RD = 0; +const SHUT_WR = 1; +public $errCode = 0; +public $sock = -1; +public $type = 0; +public $setting; +private $onConnect; +private $onError; +private $onReceive; +private $onClose; +private $onBufferFull; +private $onBufferEmpty; +private $onSSLReady; + +public function __construct($type) {} +public function __destruct() {} +public function set($settings) {} +public function connect($host, $port = null, $timeout = null, $sock_flag = null) {} +public function send($data, $flag = null) {} +public function sendfile($filename, $offset = null, $length = null) {} +public function sendto($ip, $port, $data) {} +public function sleep() {} +public function wakeup() {} +public function pause() {} +public function resume() {} +public function shutdown($how) {} +public function enableSSL($callback) {} +public function getPeerCert() {} +public function verifyPeerCert() {} +public function isConnected() {} +public function getsockname() {} +public function getpeername() {} +public function close($force = null) {} +public function on($event_name, $callback) {} +public function getSocket() {} +} diff --git a/php_docs_code/swoole/swoole_buffer.php b/php_docs_code/swoole/swoole_buffer.php new file mode 100644 index 0000000..3dfbc96 --- /dev/null +++ b/php_docs_code/swoole/swoole_buffer.php @@ -0,0 +1,22 @@ + + */ +class swoole_buffer { + +public $capacity = 128; +public $length = 0; + +public function __construct($size = null) {} +public function __destruct() {} +public function __toString() {} +public function substr($offset, $length = null, $remove = null) {} +public function write($offset, $data) {} +public function read($offset, $length) {} +public function append($data) {} +public function expand($size) {} +public function recycle() {} +public function clear() {} +} diff --git a/php_docs_code/swoole/swoole_channel.php b/php_docs_code/swoole/swoole_channel.php new file mode 100644 index 0000000..5b68e11 --- /dev/null +++ b/php_docs_code/swoole/swoole_channel.php @@ -0,0 +1,16 @@ + + */ +class swoole_channel { + + +public function __construct($size) {} +public function __destruct() {} +public function push($data) {} +public function pop() {} +public function peek() {} +public function stats() {} +} diff --git a/php_docs_code/swoole/swoole_error.php b/php_docs_code/swoole/swoole_error.php index fe7d1b5..a1c19d4 100644 --- a/php_docs_code/swoole/swoole_error.php +++ b/php_docs_code/swoole/swoole_error.php @@ -4,13 +4,14 @@ * * @author Leelmes */ -class swoole_error extends \Error implements \Stringable,\Throwable { +class swoole_error extends \Error implements \Throwable { protected $message = ''; protected $code = 0; protected $file; protected $line; +private function __clone() {} public function __construct($message = null, $code = null, $previous = null) {} public function __wakeup() {} public function getMessage() {} diff --git a/php_docs_code/swoole/swoole_exception.php b/php_docs_code/swoole/swoole_exception.php index f6c323e..70986fd 100644 --- a/php_docs_code/swoole/swoole_exception.php +++ b/php_docs_code/swoole/swoole_exception.php @@ -4,13 +4,14 @@ * * @author Leelmes */ -class swoole_exception extends \Exception implements \Stringable,\Throwable { +class swoole_exception extends \Exception implements \Throwable { protected $message = ''; protected $code = 0; protected $file; protected $line; +private function __clone() {} public function __construct($message = null, $code = null, $previous = null) {} public function __wakeup() {} public function getMessage() {} diff --git a/php_docs_code/swoole/swoole_http_client.php b/php_docs_code/swoole/swoole_http_client.php new file mode 100644 index 0000000..51f8cfe --- /dev/null +++ b/php_docs_code/swoole/swoole_http_client.php @@ -0,0 +1,47 @@ + + */ +class swoole_http_client { + +public $type = 0; +public $errCode = 0; +public $errMsg = ''; +public $statusCode = 0; +public $host; +public $port = 0; +public $ssl = false; +public $requestMethod; +public $requestHeaders; +public $requestBody; +public $uploadFiles; +public $set_cookie_headers; +public $downloadFile; +public $headers; +public $cookies; +public $body; +public $onConnect; +public $onError; +public $onMessage; +public $onClose; + +public function __construct($host, $port = null, $ssl = null) {} +public function __destruct() {} +public function set($settings) {} +public function setMethod($method) {} +public function setHeaders($headers) {} +public function setCookies($cookies) {} +public function setData($data) {} +public function addFile($path, $name, $type = null, $filename = null, $offset = null, $length = null) {} +public function execute($path, $callback) {} +public function push($data, $opcode = null, $flags = null) {} +public function get($path, $callback) {} +public function post($path, $data, $callback) {} +public function upgrade($path, $callback) {} +public function download($path, $file, $callback, $offset = null) {} +public function isConnected() {} +public function close() {} +public function on($event_name, $callback) {} +} diff --git a/php_docs_code/swoole/swoole_http_request.php b/php_docs_code/swoole/swoole_http_request.php index b0c16fc..2a688a7 100644 --- a/php_docs_code/swoole/swoole_http_request.php +++ b/php_docs_code/swoole/swoole_http_request.php @@ -7,7 +7,6 @@ class swoole_http_request { public $fd = 0; -public $streamId = 0; public $header; public $server; public $cookie; @@ -17,11 +16,6 @@ class swoole_http_request { public $tmpfiles; public function rawContent() {} -public function getContent() {} public function getData() {} -static public function create($options = null) {} -public function parse($data) {} -public function isCompleted() {} -public function getMethod() {} public function __destruct() {} } diff --git a/php_docs_code/swoole/swoole_http_response.php b/php_docs_code/swoole/swoole_http_response.php index fae326f..9426851 100644 --- a/php_docs_code/swoole/swoole_http_response.php +++ b/php_docs_code/swoole/swoole_http_response.php @@ -10,26 +10,21 @@ class swoole_http_response { public $socket; public $header; public $cookie; -public $trailer; public function initHeader() {} -public function isWritable() {} -public function cookie($name, $value = null, $expires = null, $path = null, $domain = null, $secure = null, $httponly = null, $samesite = null, $priority = null) {} -public function setCookie($name, $value = null, $expires = null, $path = null, $domain = null, $secure = null, $httponly = null, $samesite = null, $priority = null) {} -public function rawcookie($name, $value = null, $expires = null, $path = null, $domain = null, $secure = null, $httponly = null, $samesite = null, $priority = null) {} +public function cookie($name, $value = null, $expires = null, $path = null, $domain = null, $secure = null, $httponly = null, $samesite = null) {} +public function setCookie($name, $value = null, $expires = null, $path = null, $domain = null, $secure = null, $httponly = null, $samesite = null) {} +public function rawcookie($name, $value = null, $expires = null, $path = null, $domain = null, $secure = null, $httponly = null, $samesite = null) {} public function status($http_code, $reason = null) {} public function setStatusCode($http_code, $reason = null) {} -public function header($key, $value, $format = null) {} -public function setHeader($key, $value, $format = null) {} -public function trailer($key, $value) {} -public function ping() {} -public function goaway() {} +public function header($key, $value, $ucwords = null) {} +public function setHeader($key, $value, $ucwords = null) {} public function write($content) {} public function end($content = null) {} public function sendfile($filename, $offset = null, $length = null) {} public function redirect($location, $http_code = null) {} public function detach() {} -static public function create($server, $fd = null) {} +static public function create($fd) {} public function upgrade() {} public function push($data, $opcode = null, $flags = null) {} public function recv() {} diff --git a/php_docs_code/swoole/swoole_http_server.php b/php_docs_code/swoole/swoole_http_server.php index bb69f0a..cc5ebea 100644 --- a/php_docs_code/swoole/swoole_http_server.php +++ b/php_docs_code/swoole/swoole_http_server.php @@ -18,7 +18,7 @@ class swoole_http_server extends \Swoole\Server { public $worker_id = -1; public $taskworker = false; public $worker_pid = 0; -public $stats_timer; +private $onRequest; public function __construct($host, $port = null, $mode = null, $sock_type = null) {} public function __destruct() {} @@ -51,11 +51,6 @@ public function getLastError() {} public function heartbeat($reactor_id) {} public function getClientInfo($fd, $reactor_id = null) {} public function getClientList($start_fd, $find_count = null) {} -public function getWorkerId() {} -public function getWorkerPid() {} -public function getWorkerStatus($worker_id = null) {} -public function getManagerPid() {} -public function getMasterPid() {} public function connection_info($fd, $reactor_id = null) {} public function connection_list($start_fd, $find_count = null) {} public function sendMessage($message, $dst_worker_id) {} diff --git a/php_docs_code/swoole/swoole_memory_pool.php b/php_docs_code/swoole/swoole_memory_pool.php new file mode 100644 index 0000000..4ecfe73 --- /dev/null +++ b/php_docs_code/swoole/swoole_memory_pool.php @@ -0,0 +1,18 @@ + + */ +class swoole_memory_pool { + +const TYPE_RING = 1; +const TYPE_GLOBAL = 2; +const TYPE_FIXED = 0; +const TYPE_MALLOC = 3; +const TYPE_EMALLOC = 4; + +public function __construct($size, $type, $slice_size = null, $shared = null) {} +public function __destruct() {} +public function alloc($size = null) {} +} diff --git a/php_docs_code/swoole/swoole_memory_pool_slice.php b/php_docs_code/swoole/swoole_memory_pool_slice.php new file mode 100644 index 0000000..305704c --- /dev/null +++ b/php_docs_code/swoole/swoole_memory_pool_slice.php @@ -0,0 +1,13 @@ + + */ +class swoole_memory_pool_slice { + + +public function read($size = null, $offset = null) {} +public function write($data, $offset = null) {} +public function __destruct() {} +} diff --git a/php_docs_code/swoole/swoole_mmap.php b/php_docs_code/swoole/swoole_mmap.php new file mode 100644 index 0000000..d5aa8f3 --- /dev/null +++ b/php_docs_code/swoole/swoole_mmap.php @@ -0,0 +1,11 @@ + + */ +class swoole_mmap { + + +static public function open($filename, $size = null, $offset = null) {} +} diff --git a/php_docs_code/swoole/swoole_msgqueue.php b/php_docs_code/swoole/swoole_msgqueue.php new file mode 100644 index 0000000..aa46b40 --- /dev/null +++ b/php_docs_code/swoole/swoole_msgqueue.php @@ -0,0 +1,17 @@ + + */ +class swoole_msgqueue { + + +public function __construct($len) {} +public function __destruct() {} +public function push($data, $type = null) {} +public function pop($type = null) {} +public function setBlocking($blocking) {} +public function stats() {} +public function destroy() {} +} diff --git a/php_docs_code/swoole/swoole_mysql.php b/php_docs_code/swoole/swoole_mysql.php new file mode 100644 index 0000000..7b88399 --- /dev/null +++ b/php_docs_code/swoole/swoole_mysql.php @@ -0,0 +1,37 @@ + + */ +class swoole_mysql { + +const STATE_QUERY = 0; +const STATE_READ_START = 1; +const STATE_READ_FIELD = 2; +const STATE_READ_ROW = 3; +const STATE_READ_END = 5; +const STATE_CLOSED = 6; +public $serverInfo; +public $sock = -1; +public $connected = false; +public $errno = 0; +public $connect_errno = 0; +public $error; +public $connect_error; +public $insert_id; +public $affected_rows; +public $onConnect; +public $onClose; + +public function __construct() {} +public function __destruct() {} +public function connect($server_config, $callback) {} +public function begin($callback) {} +public function commit($callback) {} +public function rollback($callback) {} +public function query($sql, $callback) {} +public function close() {} +public function getState() {} +public function on($event_name, $callback) {} +} diff --git a/php_docs_code/swoole/swoole_mysql_exception.php b/php_docs_code/swoole/swoole_mysql_exception.php new file mode 100644 index 0000000..00aeb8e --- /dev/null +++ b/php_docs_code/swoole/swoole_mysql_exception.php @@ -0,0 +1,25 @@ + + */ +class swoole_mysql_exception extends \Swoole\Exception implements \Throwable { + +protected $message = ''; +protected $code = 0; +protected $file; +protected $line; + +private function __clone() {} +public function __construct($message = null, $code = null, $previous = null) {} +public function __wakeup() {} +public function getMessage() {} +public function getCode() {} +public function getFile() {} +public function getLine() {} +public function getTrace() {} +public function getPrevious() {} +public function getTraceAsString() {} +public function __toString() {} +} diff --git a/php_docs_code/swoole/swoole_process.php b/php_docs_code/swoole/swoole_process.php index 2025331..c901dcd 100644 --- a/php_docs_code/swoole/swoole_process.php +++ b/php_docs_code/swoole/swoole_process.php @@ -25,9 +25,7 @@ static public function signal($signal_no, $callback) {} static public function alarm($usec, $type = null) {} static public function kill($pid, $signal_no = null) {} static public function daemon($nochdir = null, $noclose = null, $pipes = null) {} -static public function setAffinity($cpu_settings) {} -public function setPriority($which, $priority) {} -public function getPriority($which) {} +static public function setaffinity($cpu_settings) {} public function set($settings) {} public function setTimeout($seconds) {} public function setBlocking($blocking) {} diff --git a/php_docs_code/swoole/swoole_redis.php b/php_docs_code/swoole/swoole_redis.php new file mode 100644 index 0000000..c5d322e --- /dev/null +++ b/php_docs_code/swoole/swoole_redis.php @@ -0,0 +1,31 @@ + + */ +class swoole_redis { + +const STATE_CONNECT = 0; +const STATE_READY = 1; +const STATE_WAIT_RESULT = 2; +const STATE_SUBSCRIBE = 3; +const STATE_CLOSED = 4; +public $onConnect; +public $onClose; +public $onMessage; +public $setting; +public $host; +public $port; +public $sock; +public $errCode; +public $errMsg; + +public function __construct($setting = null) {} +public function __destruct() {} +public function on($event_name, $callback) {} +public function connect($host, $port, $callback) {} +public function close() {} +public function getState() {} +public function __call($command, $params) {} +} diff --git a/php_docs_code/swoole/swoole_redis_server.php b/php_docs_code/swoole/swoole_redis_server.php index d19f405..f4f4a33 100644 --- a/php_docs_code/swoole/swoole_redis_server.php +++ b/php_docs_code/swoole/swoole_redis_server.php @@ -25,7 +25,6 @@ class swoole_redis_server extends \Swoole\Server { public $worker_id = -1; public $taskworker = false; public $worker_pid = 0; -public $stats_timer; public function start() {} public function setHandler($command, $callback) {} @@ -61,11 +60,6 @@ public function getLastError() {} public function heartbeat($reactor_id) {} public function getClientInfo($fd, $reactor_id = null) {} public function getClientList($start_fd, $find_count = null) {} -public function getWorkerId() {} -public function getWorkerPid() {} -public function getWorkerStatus($worker_id = null) {} -public function getManagerPid() {} -public function getMasterPid() {} public function connection_info($fd, $reactor_id = null) {} public function connection_list($start_fd, $find_count = null) {} public function sendMessage($message, $dst_worker_id) {} diff --git a/php_docs_code/swoole/swoole_ringqueue.php b/php_docs_code/swoole/swoole_ringqueue.php new file mode 100644 index 0000000..39b61a8 --- /dev/null +++ b/php_docs_code/swoole/swoole_ringqueue.php @@ -0,0 +1,17 @@ + + */ +class swoole_ringqueue { + + +public function __construct($len) {} +public function __destruct() {} +public function push($data) {} +public function pop() {} +public function count() {} +public function isFull() {} +public function isEmpty() {} +} diff --git a/php_docs_code/swoole/swoole_runtime.php b/php_docs_code/swoole/swoole_runtime.php index 5fe2eb7..078db9b 100644 --- a/php_docs_code/swoole/swoole_runtime.php +++ b/php_docs_code/swoole/swoole_runtime.php @@ -7,7 +7,7 @@ class swoole_runtime { +static public function enableStrictMode() {} static public function enableCoroutine($enable = null, $flags = null) {} static public function getHookFlags() {} -static public function setHookFlags($flags) {} } diff --git a/php_docs_code/swoole/swoole_server.php b/php_docs_code/swoole/swoole_server.php index da68e83..6c5a9a8 100644 --- a/php_docs_code/swoole/swoole_server.php +++ b/php_docs_code/swoole/swoole_server.php @@ -10,8 +10,6 @@ class swoole_server { private $onShutdown; private $onWorkerStart; private $onWorkerStop; -private $onBeforeReload; -private $onAfterReload; private $onWorkerExit; private $onWorkerError; private $onTask; @@ -31,7 +29,6 @@ class swoole_server { public $worker_id = -1; public $taskworker = false; public $worker_pid = 0; -public $stats_timer; public function __construct($host, $port = null, $mode = null, $sock_type = null) {} public function __destruct() {} @@ -64,11 +61,6 @@ public function getLastError() {} public function heartbeat($reactor_id) {} public function getClientInfo($fd, $reactor_id = null) {} public function getClientList($start_fd, $find_count = null) {} -public function getWorkerId() {} -public function getWorkerPid() {} -public function getWorkerStatus($worker_id = null) {} -public function getManagerPid() {} -public function getMasterPid() {} public function connection_info($fd, $reactor_id = null) {} public function connection_list($start_fd, $find_count = null) {} public function sendMessage($message, $dst_worker_id) {} diff --git a/php_docs_code/swoole/swoole_server_task.php b/php_docs_code/swoole/swoole_server_task.php index f6f6011..21b5516 100644 --- a/php_docs_code/swoole/swoole_server_task.php +++ b/php_docs_code/swoole/swoole_server_task.php @@ -7,7 +7,6 @@ final class swoole_server_task { public $data; -public $dispatch_time = 0.0; public $id = -1; public $worker_id = -1; public $flags = 0; diff --git a/php_docs_code/swoole/swoole_table.php b/php_docs_code/swoole/swoole_table.php index b9b5a9c..4a5341e 100644 --- a/php_docs_code/swoole/swoole_table.php +++ b/php_docs_code/swoole/swoole_table.php @@ -7,10 +7,8 @@ class swoole_table implements \Iterator,\Traversable,\ArrayAccess,\Countable { const TYPE_INT = 1; -const TYPE_STRING = 3; -const TYPE_FLOAT = 2; -public $size; -public $memorySize; +const TYPE_STRING = 7; +const TYPE_FLOAT = 6; public function __construct($table_size, $conflict_proportion = null) {} public function column($name, $type, $size = null) {} @@ -20,12 +18,10 @@ public function set($key, $value) {} public function get($key, $field = null) {} public function count() {} public function del($key) {} -public function delete($key) {} public function exists($key) {} public function exist($key) {} public function incr($key, $column, $incrby = null) {} public function decr($key, $column, $decrby = null) {} -public function getSize() {} public function getMemorySize() {} public function offsetExists($offset) {} public function offsetGet($offset) {} diff --git a/php_docs_code/swoole/swoole_timer_iterator.php b/php_docs_code/swoole/swoole_timer_iterator.php index 64cb2bf..fdc95f5 100644 --- a/php_docs_code/swoole/swoole_timer_iterator.php +++ b/php_docs_code/swoole/swoole_timer_iterator.php @@ -10,30 +10,30 @@ class swoole_timer_iterator extends \ArrayIterator implements \Countable,\Serial const ARRAY_AS_PROPS = 2; public function __construct($array = null, $flags = null) {} -public function offsetExists($key) {} -public function offsetGet($key) {} -public function offsetSet($key, $value) {} -public function offsetUnset($key) {} +public function offsetExists($index) {} +public function offsetGet($index) {} +public function offsetSet($index, $newval) {} +public function offsetUnset($index) {} public function append($value) {} public function getArrayCopy() {} public function count() {} public function getFlags() {} public function setFlags($flags) {} -public function asort($flags = null) {} -public function ksort($flags = null) {} -public function uasort($callback) {} -public function uksort($callback) {} +public function asort() {} +public function ksort() {} +public function uasort($cmp_function) {} +public function uksort($cmp_function) {} public function natsort() {} public function natcasesort() {} -public function unserialize($data) {} +public function unserialize($serialized) {} public function serialize() {} +public function __unserialize($serialized) {} public function __serialize() {} -public function __unserialize($data) {} +public function __debugInfo() {} public function rewind() {} public function current() {} public function key() {} public function next() {} public function valid() {} -public function seek($offset) {} -public function __debugInfo() {} +public function seek($position) {} } diff --git a/php_docs_code/swoole/swoole_websocket_server.php b/php_docs_code/swoole/swoole_websocket_server.php index 87dd2f4..a46c890 100644 --- a/php_docs_code/swoole/swoole_websocket_server.php +++ b/php_docs_code/swoole/swoole_websocket_server.php @@ -18,7 +18,7 @@ class swoole_websocket_server extends \Swoole\Http\Server { public $worker_id = -1; public $taskworker = false; public $worker_pid = 0; -public $stats_timer; +private $onHandshake; public function push($fd, $data, $opcode = null, $flags = null) {} public function disconnect($fd, $code = null, $reason = null) {} @@ -56,11 +56,6 @@ public function getLastError() {} public function heartbeat($reactor_id) {} public function getClientInfo($fd, $reactor_id = null) {} public function getClientList($start_fd, $find_count = null) {} -public function getWorkerId() {} -public function getWorkerPid() {} -public function getWorkerStatus($worker_id = null) {} -public function getManagerPid() {} -public function getMasterPid() {} public function connection_info($fd, $reactor_id = null) {} public function connection_list($start_fd, $find_count = null) {} public function sendMessage($message, $dst_worker_id) {} diff --git a/php_docs_code/yaf/yaf-action-abstract.php b/php_docs_code/yaf/yaf-action-abstract.php index 21b136d..6076e71 100644 --- a/php_docs_code/yaf/yaf-action-abstract.php +++ b/php_docs_code/yaf/yaf-action-abstract.php @@ -13,6 +13,20 @@ */ abstract class Yaf_Action_Abstract extends Yaf_Controller_Abstract { + public $actions; + + protected $_module; + + protected $_name; + + protected $_request; + + protected $_response; + + protected $_invoke_args; + + protected $_view; + protected $_controller; @@ -33,10 +47,6 @@ abstract public function execute(); */ public function getController() {} - public function getControllerName() {} - - public function __construct($request, $response, $view, $args = null) {} - protected function render($tpl, $parameters = null) {} protected function display($tpl, $parameters = null) {} @@ -45,12 +55,10 @@ public function getRequest() {} public function getResponse() {} - public function getView() {} - - public function getName() {} - public function getModuleName() {} + public function getView() {} + public function initView($options = null) {} public function setViewpath($view_directory) {} @@ -65,4 +73,8 @@ public function getInvokeArgs() {} public function getInvokeArg($name) {} + public function __construct() {} + + private function __clone() {} + } diff --git a/php_docs_code/yaf/yaf-application.php b/php_docs_code/yaf/yaf-application.php index 4cd0492..cc6adce 100644 --- a/php_docs_code/yaf/yaf-application.php +++ b/php_docs_code/yaf/yaf-application.php @@ -15,6 +15,40 @@ */ final class Yaf_Application { + /** + * Yaf_Application为应用提供了一个辅助设施。 + * 它提供了可重用的资源,常见的和模块化的引导类,还有依赖的检查。 + * Yaf_Application实现了单例模式。 + * Yaf_Application不能够被序列化和反序列化, + * 因为当你尝试使用PHPUnit来为Yaf写一些测试用例的时候会造成一些不必要的麻烦。 + * 你可以使用PHPUnit的@backupGlobals注释来控制全局变量的备份和恢复操作, + * 从而可以解决这个问题。 + */ + protected $config; + + /** + * Yaf_Application为应用提供了一个辅助设施。 + * 它提供了可重用的资源,常见的和模块化的引导类,还有依赖的检查。 + * Yaf_Application实现了单例模式。 + * Yaf_Application不能够被序列化和反序列化, + * 因为当你尝试使用PHPUnit来为Yaf写一些测试用例的时候会造成一些不必要的麻烦。 + * 你可以使用PHPUnit的@backupGlobals注释来控制全局变量的备份和恢复操作, + * 从而可以解决这个问题。 + */ + protected $dispatcher; + + protected static $_app; + + protected $_modules; + + protected $_running = false; + + protected $_environ = 'product'; + + protected $_err_no = 0; + + protected $_err_msg = ''; + /** * Yaf_Application的构造函数 @@ -122,6 +156,17 @@ public function getLastErrorMsg() {} */ public function clearLastError() {} - public function getInstance() {} + /** + * 析构函数 + * + * @return void + */ + public function __destruct() {} + + private function __clone() {} + + private function __sleep() {} + + private function __wakeup() {} } diff --git a/php_docs_code/yaf/yaf-config-abstract.php b/php_docs_code/yaf/yaf-config-abstract.php index a1ad82d..a03634e 100644 --- a/php_docs_code/yaf/yaf-config-abstract.php +++ b/php_docs_code/yaf/yaf-config-abstract.php @@ -5,8 +5,12 @@ * @package Yaf * @author Leelmes */ -abstract class Yaf_Config_Abstract implements Iterator,Traversable,ArrayAccess,Countable { +abstract class Yaf_Config_Abstract { + protected $_config; + + protected $_readonly = true; + /** * Getter @@ -16,45 +20,14 @@ abstract class Yaf_Config_Abstract implements Iterator,Traversable,ArrayAccess,C * * @return mixed */ - public function get($name = null) {} - - public function count() {} - - /** - * 转换为数组 - * - * @return array - */ - public function toArray() {} - - public function offsetUnset($name) {} - - public function rewind() {} - - public function current() {} - - public function key() {} - - public function next() {} - - public function valid() {} - - public function __isset($name) {} - - public function __get($name = null) {} - - public function offsetGet($name = null) {} - - public function offsetExists($name) {} - - abstract public function offsetSet($name, $value); + abstract public function get(); /** * Setter * * @return Yaf_Config_Abstract */ - abstract public function set($name, $value); + abstract public function set(); /** * 寻找只读配置 @@ -63,4 +36,11 @@ abstract public function set($name, $value); */ abstract public function readonly(); + /** + * 转换为数组 + * + * @return array + */ + abstract public function toArray(); + } diff --git a/php_docs_code/yaf/yaf-config-ini.php b/php_docs_code/yaf/yaf-config-ini.php index c26f4bb..42cf403 100644 --- a/php_docs_code/yaf/yaf-config-ini.php +++ b/php_docs_code/yaf/yaf-config-ini.php @@ -13,8 +13,12 @@ * @package Yaf * @author Leelmes */ -final class Yaf_Config_Ini extends Yaf_Config_Abstract implements Countable,ArrayAccess,Traversable,Iterator { +final class Yaf_Config_Ini extends Yaf_Config_Abstract implements Iterator,Traversable,ArrayAccess,Countable { + protected $_config; + + protected $_readonly = true; + /** * 构造函数 @@ -24,112 +28,111 @@ final class Yaf_Config_Ini extends Yaf_Config_Abstract implements Countable,Arra */ public function __construct($config_file, $section = null) {} - public function get($name = null) {} - - public function set($name, $value) {} - /** - * 检查配置是否只读 + * 检查节点是否存在 + * + * @param string $name * * @return void */ - public function readonly() {} + public function __isset($name) {} + + public function get($name = null) {} + + public function set($name, $value) {} /** - * 获取一个偏移位置的值 - * - * @param string $name + * 返回配置的节数量 * * @return void */ - public function offsetGet($name = null) {} + public function count() {} /** - * 设置一个偏移位置的值 - * - * @param string $name - * @param string $value + * 检查当前位置是否有效 * * @return void */ - public function offsetSet($name, $value) {} + public function rewind() {} /** - * The __set purpose - * - * @param string $name - * @param mixed $value + * 返回当前节点 * * @return void */ - public function __set($name, $value) {} + public function current() {} /** - * 返回配置的节数量 + * 向前移动到下一个元素 * * @return void */ - public function count() {} + public function next() {} /** - * 转换为数组的格式 + * 检查迭代器是否有效 * * @return void */ - public function toArray() {} + public function valid() {} /** - * 复位一个偏移位置的值 - * - * @param string $name + * 返回当前元素的键 * * @return void */ - public function offsetUnset($name) {} + public function key() {} /** - * 检查当前位置是否有效 + * 转换为数组的格式 * * @return void */ - public function rewind() {} + public function toArray() {} /** - * 返回当前节点 + * 检查配置是否只读 * * @return void */ - public function current() {} + public function readonly() {} /** - * 返回当前元素的键 + * 复位一个偏移位置的值 + * + * @param string $name * * @return void */ - public function key() {} + public function offsetUnset($name) {} /** - * 向前移动到下一个元素 + * 获取一个偏移位置的值 + * + * @param string $name * * @return void */ - public function next() {} + public function offsetGet($name) {} /** - * 检查迭代器是否有效 + * 检查一个偏移位置是否存在 + * + * @param string $name * * @return void */ - public function valid() {} + public function offsetExists($name) {} /** - * 检查节点是否存在 + * 设置一个偏移位置的值 * * @param string $name + * @param string $value * * @return void */ - public function __isset($name) {} + public function offsetSet($name, $value) {} /** * 读取节点配置 @@ -141,12 +144,13 @@ public function __isset($name) {} public function __get($name = null) {} /** - * 检查一个偏移位置是否存在 + * The __set purpose * * @param string $name + * @param mixed $value * * @return void */ - public function offsetExists($name) {} + public function __set($name, $value) {} } diff --git a/php_docs_code/yaf/yaf-config-simple.php b/php_docs_code/yaf/yaf-config-simple.php index 55b709e..4002e1b 100644 --- a/php_docs_code/yaf/yaf-config-simple.php +++ b/php_docs_code/yaf/yaf-config-simple.php @@ -7,8 +7,12 @@ * @package Yaf * @author Leelmes */ -final class Yaf_Config_Simple extends Yaf_Config_Abstract implements Countable,ArrayAccess,Traversable,Iterator { +final class Yaf_Config_Simple extends Yaf_Config_Abstract implements Iterator,Traversable,ArrayAccess,Countable { + protected $_config; + + protected $_readonly = false; + /** * 构造函数 @@ -16,75 +20,64 @@ final class Yaf_Config_Simple extends Yaf_Config_Abstract implements Countable,A * @param string $config_file * @param string $section */ - public function __construct($config, $readonly = null) {} - - public function set($name, $value) {} - - /** - * 检查配置是否只读 - * - * @return void - */ - public function readonly() {} + public function __construct($config_file, $section = null) {} /** - * 复位一个偏移位置的值 + * 检查节点是否存在 * * @param string $name * * @return void */ - public function offsetUnset($name) {} + public function __isset($name) {} + + public function get($name = null) {} + + public function set($name, $value) {} /** - * 设置节点配置 - * - * @param string $name - * @param string $value + * 返回配置的节数量 * * @return void */ - public function __set($name, $value) {} + public function count() {} /** - * 设置一个偏移位置的值 + * 复位一个偏移位置的值 * * @param string $name - * @param string $value * * @return void */ - public function offsetSet($name, $value) {} - - public function get($name = null) {} + public function offsetUnset($name) {} /** - * 返回配置的节数量 + * 检查当前位置是否有效 * * @return void */ - public function count() {} + public function rewind() {} /** - * 转换为数组的格式 + * 返回当前节点 * * @return void */ - public function toArray() {} + public function current() {} /** - * 检查当前位置是否有效 + * 向前移动到下一个元素 * * @return void */ - public function rewind() {} + public function next() {} /** - * 返回当前节点 + * 检查迭代器是否有效 * * @return void */ - public function current() {} + public function valid() {} /** * 返回当前元素的键 @@ -94,27 +87,28 @@ public function current() {} public function key() {} /** - * 向前移动到下一个元素 + * 检查配置是否只读 * * @return void */ - public function next() {} + public function readonly() {} /** - * 检查迭代器是否有效 + * 转换为数组的格式 * * @return void */ - public function valid() {} + public function toArray() {} /** - * 检查节点是否存在 + * 设置节点配置 * * @param string $name + * @param string $value * * @return void */ - public function __isset($name) {} + public function __set($name, $value) {} /** * 读取节点配置 @@ -132,7 +126,7 @@ public function __get($name = null) {} * * @return void */ - public function offsetGet($name = null) {} + public function offsetGet($name) {} /** * 检查一个偏移位置是否存在 @@ -143,4 +137,14 @@ public function offsetGet($name = null) {} */ public function offsetExists($name) {} + /** + * 设置一个偏移位置的值 + * + * @param string $name + * @param string $value + * + * @return void + */ + public function offsetSet($name, $value) {} + } diff --git a/php_docs_code/yaf/yaf-controller-abstract.php b/php_docs_code/yaf/yaf-controller-abstract.php index c52ab15..938ed4c 100644 --- a/php_docs_code/yaf/yaf-controller-abstract.php +++ b/php_docs_code/yaf/yaf-controller-abstract.php @@ -16,12 +16,31 @@ */ abstract class Yaf_Controller_Abstract { - /** - * Yaf_Controller_Abstract constructor + * Yaf_Controller_Abstract 是Yaf的MVC体系的核心部分。 + * MVC是指Model-View-Controller, 是一个用于分离应用逻辑和表现逻辑的设计模式。 + * 每个用户自定义controller都应当继承Yaf_Controller_Abstract。 + * 你会发现在你自己的controller中无法定义__construct方法。因此,Yaf_Controller_Abstract + * 提供了一个魔术方法Yaf_Controller_Abstract::init()。 + * 如果在你自己的controller里面已经定义了一个init()方法,当你的controller被实例化的时候,它将被调用。 + * Action可能需要参数,当一个请求来到的时候,在路由中如果请求的参数有相同名称的变量(例如:Yaf_Request_Abstract::getParam), + * Yaf将把他们传递给action方法(see Yaf_Action_Abstract::execute)。 */ - public function __construct($request, $response, $view, $args = null) {} + public $actions; + + protected $_module; + + protected $_name; + + protected $_request; + + protected $_response; + + protected $_invoke_args; + protected $_view; + + /** * 渲染视图模板 * @@ -57,20 +76,18 @@ public function getRequest() {} public function getResponse() {} /** - * 获取当前的视图引擎 + * 获取当前控制器所属的模块名 * - * @return Yaf_View_Interface + * @return string */ - public function getView() {} - - public function getName() {} + public function getModuleName() {} /** - * 获取当前控制器所属的模块名 + * 获取当前的视图引擎 * - * @return string + * @return Yaf_View_Interface */ - public function getModuleName() {} + public function getView() {} /** * The initView purpose @@ -134,4 +151,11 @@ public function getInvokeArgs() {} */ public function getInvokeArg($name) {} + /** + * Yaf_Controller_Abstract constructor + */ + public function __construct() {} + + private function __clone() {} + } diff --git a/php_docs_code/yaf/yaf-dispatcher.php b/php_docs_code/yaf/yaf-dispatcher.php index f82b319..addb633 100644 --- a/php_docs_code/yaf/yaf-dispatcher.php +++ b/php_docs_code/yaf/yaf-dispatcher.php @@ -14,12 +14,40 @@ */ final class Yaf_Dispatcher { + protected $_router; + + protected $_view; + + protected $_request; + + protected $_plugins; + + protected static $_instance; + + protected $_auto_render = true; + + protected $_return_response = false; + + protected $_instantly_flush = false; + + protected $_default_module; + + protected $_default_controller; + + protected $_default_action; + /** * Yaf_Dispatcher 构造函数 */ private function __construct() {} + private function __clone() {} + + private function __sleep() {} + + private function __wakeup() {} + /** * 开启自动渲染 * @@ -62,8 +90,6 @@ public function setView($view) {} */ public function setRequest($request) {} - public function setResponse($response) {} - /** * 获取当前的Yaf_Application实例 * @@ -78,8 +104,6 @@ public function getApplication() {} */ public function getRouter() {} - public function getResponse() {} - /** * 获取当前的请求实例 * @@ -87,12 +111,6 @@ public function getResponse() {} */ public function getRequest() {} - public function getDefaultModule() {} - - public function getDefaultController() {} - - public function getDefaultAction() {} - /** * 设置错误处理函数 * @@ -101,7 +119,7 @@ public function getDefaultAction() {} * * @return Yaf_Dispatcher */ - public function setErrorHandler($callback, $error_types = null) {} + public function setErrorHandler($callback, $error_types) {} /** * 设置路由的默认模块 @@ -146,7 +164,7 @@ public function returnResponse($flag) {} * * @return Yaf_Dispatcher */ - public function autoRender($flag = null) {} + public function autoRender($flag) {} /** * 打开关闭自动响应 @@ -155,7 +173,7 @@ public function autoRender($flag = null) {} * * @return Yaf_Dispatcher */ - public function flushInstantly($flag = null) {} + public function flushInstantly($flag) {} /** * 获取当前的Yaf_Dispatcher实例 diff --git a/php_docs_code/yaf/yaf-exception-dispatchfailed.php b/php_docs_code/yaf/yaf-exception-dispatchfailed.php index ced3e2d..92fec10 100644 --- a/php_docs_code/yaf/yaf-exception-dispatchfailed.php +++ b/php_docs_code/yaf/yaf-exception-dispatchfailed.php @@ -5,7 +5,7 @@ * @package Yaf * @author Leelmes */ -class Yaf_Exception_DispatchFailed extends Yaf_Exception implements Throwable,Stringable { +class Yaf_Exception_DispatchFailed extends Yaf_Exception implements Throwable { protected $file; @@ -18,6 +18,8 @@ class Yaf_Exception_DispatchFailed extends Yaf_Exception implements Throwable,St protected $previous; + private function __clone() {} + public function __construct($message = null, $code = null, $previous = null) {} public function __wakeup() {} diff --git a/php_docs_code/yaf/yaf-exception-loadfailed-action.php b/php_docs_code/yaf/yaf-exception-loadfailed-action.php index e4cdc43..b7d83ac 100644 --- a/php_docs_code/yaf/yaf-exception-loadfailed-action.php +++ b/php_docs_code/yaf/yaf-exception-loadfailed-action.php @@ -5,7 +5,7 @@ * @package Yaf * @author Leelmes */ -class Yaf_Exception_LoadFailed_Action extends Yaf_Exception_LoadFailed implements Stringable,Throwable { +class Yaf_Exception_LoadFailed_Action extends Yaf_Exception_LoadFailed implements Throwable { protected $file; @@ -18,6 +18,8 @@ class Yaf_Exception_LoadFailed_Action extends Yaf_Exception_LoadFailed implement protected $previous; + private function __clone() {} + public function __construct($message = null, $code = null, $previous = null) {} public function __wakeup() {} diff --git a/php_docs_code/yaf/yaf-exception-loadfailed-controller.php b/php_docs_code/yaf/yaf-exception-loadfailed-controller.php index 23f40e1..3d2c3ea 100644 --- a/php_docs_code/yaf/yaf-exception-loadfailed-controller.php +++ b/php_docs_code/yaf/yaf-exception-loadfailed-controller.php @@ -5,7 +5,7 @@ * @package Yaf * @author Leelmes */ -class Yaf_Exception_LoadFailed_Controller extends Yaf_Exception_LoadFailed implements Stringable,Throwable { +class Yaf_Exception_LoadFailed_Controller extends Yaf_Exception_LoadFailed implements Throwable { protected $file; @@ -18,6 +18,8 @@ class Yaf_Exception_LoadFailed_Controller extends Yaf_Exception_LoadFailed imple protected $previous; + private function __clone() {} + public function __construct($message = null, $code = null, $previous = null) {} public function __wakeup() {} diff --git a/php_docs_code/yaf/yaf-exception-loadfailed-module.php b/php_docs_code/yaf/yaf-exception-loadfailed-module.php index d138d59..fdd221f 100644 --- a/php_docs_code/yaf/yaf-exception-loadfailed-module.php +++ b/php_docs_code/yaf/yaf-exception-loadfailed-module.php @@ -5,7 +5,7 @@ * @package Yaf * @author Leelmes */ -class Yaf_Exception_LoadFailed_Module extends Yaf_Exception_LoadFailed implements Stringable,Throwable { +class Yaf_Exception_LoadFailed_Module extends Yaf_Exception_LoadFailed implements Throwable { protected $file; @@ -18,6 +18,8 @@ class Yaf_Exception_LoadFailed_Module extends Yaf_Exception_LoadFailed implement protected $previous; + private function __clone() {} + public function __construct($message = null, $code = null, $previous = null) {} public function __wakeup() {} diff --git a/php_docs_code/yaf/yaf-exception-loadfailed-view.php b/php_docs_code/yaf/yaf-exception-loadfailed-view.php index 9156b5c..f404c73 100644 --- a/php_docs_code/yaf/yaf-exception-loadfailed-view.php +++ b/php_docs_code/yaf/yaf-exception-loadfailed-view.php @@ -5,7 +5,7 @@ * @package Yaf * @author Leelmes */ -class Yaf_Exception_LoadFailed_View extends Yaf_Exception_LoadFailed implements Stringable,Throwable { +class Yaf_Exception_LoadFailed_View extends Yaf_Exception_LoadFailed implements Throwable { protected $file; @@ -18,6 +18,8 @@ class Yaf_Exception_LoadFailed_View extends Yaf_Exception_LoadFailed implements protected $previous; + private function __clone() {} + public function __construct($message = null, $code = null, $previous = null) {} public function __wakeup() {} diff --git a/php_docs_code/yaf/yaf-exception-loadfailed.php b/php_docs_code/yaf/yaf-exception-loadfailed.php index bdeacee..3c19c4e 100644 --- a/php_docs_code/yaf/yaf-exception-loadfailed.php +++ b/php_docs_code/yaf/yaf-exception-loadfailed.php @@ -5,7 +5,7 @@ * @package Yaf * @author Leelmes */ -class Yaf_Exception_LoadFailed extends Yaf_Exception implements Throwable,Stringable { +class Yaf_Exception_LoadFailed extends Yaf_Exception implements Throwable { protected $file; @@ -18,6 +18,8 @@ class Yaf_Exception_LoadFailed extends Yaf_Exception implements Throwable,String protected $previous; + private function __clone() {} + public function __construct($message = null, $code = null, $previous = null) {} public function __wakeup() {} diff --git a/php_docs_code/yaf/yaf-exception-routerfailed.php b/php_docs_code/yaf/yaf-exception-routerfailed.php index 06d5849..a67d4c9 100644 --- a/php_docs_code/yaf/yaf-exception-routerfailed.php +++ b/php_docs_code/yaf/yaf-exception-routerfailed.php @@ -5,7 +5,7 @@ * @package Yaf * @author Leelmes */ -class Yaf_Exception_RouterFailed extends Yaf_Exception implements Throwable,Stringable { +class Yaf_Exception_RouterFailed extends Yaf_Exception implements Throwable { protected $file; @@ -18,6 +18,8 @@ class Yaf_Exception_RouterFailed extends Yaf_Exception implements Throwable,Stri protected $previous; + private function __clone() {} + public function __construct($message = null, $code = null, $previous = null) {} public function __wakeup() {} diff --git a/php_docs_code/yaf/yaf-exception-startuperror.php b/php_docs_code/yaf/yaf-exception-startuperror.php index e5f850f..34ae2f7 100644 --- a/php_docs_code/yaf/yaf-exception-startuperror.php +++ b/php_docs_code/yaf/yaf-exception-startuperror.php @@ -5,7 +5,7 @@ * @package Yaf * @author Leelmes */ -class Yaf_Exception_StartupError extends Yaf_Exception implements Throwable,Stringable { +class Yaf_Exception_StartupError extends Yaf_Exception implements Throwable { protected $file; @@ -18,6 +18,8 @@ class Yaf_Exception_StartupError extends Yaf_Exception implements Throwable,Stri protected $previous; + private function __clone() {} + public function __construct($message = null, $code = null, $previous = null) {} public function __wakeup() {} diff --git a/php_docs_code/yaf/yaf-exception-typeerror.php b/php_docs_code/yaf/yaf-exception-typeerror.php index 5767516..55c8e53 100644 --- a/php_docs_code/yaf/yaf-exception-typeerror.php +++ b/php_docs_code/yaf/yaf-exception-typeerror.php @@ -5,7 +5,7 @@ * @package Yaf * @author Leelmes */ -class Yaf_Exception_TypeError extends Yaf_Exception implements Throwable,Stringable { +class Yaf_Exception_TypeError extends Yaf_Exception implements Throwable { protected $file; @@ -18,6 +18,8 @@ class Yaf_Exception_TypeError extends Yaf_Exception implements Throwable,Stringa protected $previous; + private function __clone() {} + public function __construct($message = null, $code = null, $previous = null) {} public function __wakeup() {} diff --git a/php_docs_code/yaf/yaf-exception.php b/php_docs_code/yaf/yaf-exception.php index 071a90f..3a8619c 100644 --- a/php_docs_code/yaf/yaf-exception.php +++ b/php_docs_code/yaf/yaf-exception.php @@ -5,7 +5,7 @@ * @package Yaf * @author Leelmes */ -class Yaf_Exception extends Exception implements Stringable,Throwable { +class Yaf_Exception extends Exception implements Throwable { protected $file; @@ -18,6 +18,8 @@ class Yaf_Exception extends Exception implements Stringable,Throwable { protected $previous; + private function __clone() {} + /** * The __construct purpose */ diff --git a/php_docs_code/yaf/yaf-loader.php b/php_docs_code/yaf/yaf-loader.php index 693e4fc..f6685f4 100644 --- a/php_docs_code/yaf/yaf-loader.php +++ b/php_docs_code/yaf/yaf-loader.php @@ -66,12 +66,24 @@ */ final class Yaf_Loader { + protected $_library; + + protected $_global_library; + + protected static $_instance; + /** * The __construct purpose */ private function __construct() {} + private function __clone() {} + + private function __sleep() {} + + private function __wakeup() {} + /** * The autoload purpose * @@ -93,7 +105,7 @@ static public function getInstance($local_library_path = null, $global_library_p * * @return void */ - public function registerLocalNamespace($namespace, $path = null) {} + public function registerLocalNamespace($name_prefix) {} /** * The getLocalNamespace purpose @@ -116,8 +128,6 @@ public function clearLocalNamespace() {} */ public function isLocalName($class_name) {} - public function getNamespacePath($class_name) {} - /** * The import purpose * @@ -144,8 +154,4 @@ public function setLibraryPath($library_path, $is_global = false) {} */ public function getLibraryPath($is_global = false) {} - public function registerNamespace($namespace, $path = null) {} - - public function getNamespaces() {} - } diff --git a/php_docs_code/yaf/yaf-registry.php b/php_docs_code/yaf/yaf-registry.php index cafdaab..b3d3cce 100644 --- a/php_docs_code/yaf/yaf-registry.php +++ b/php_docs_code/yaf/yaf-registry.php @@ -9,12 +9,18 @@ */ final class Yaf_Registry { + protected static $_instance; + + protected $_entries; + /** * Yaf_Registry implements singleton */ private function __construct() {} + private function __clone() {} + /** * Retrieve an item from registry * diff --git a/php_docs_code/yaf/yaf-request-abstract.php b/php_docs_code/yaf/yaf-request-abstract.php index dcfd736..bee752a 100644 --- a/php_docs_code/yaf/yaf-request-abstract.php +++ b/php_docs_code/yaf/yaf-request-abstract.php @@ -9,6 +9,28 @@ abstract class Yaf_Request_Abstract { const SCHEME_HTTP = 'http'; const SCHEME_HTTPS = 'https'; + public $module; + + public $controller; + + public $action; + + public $method; + + protected $params; + + protected $language; + + protected $_exception; + + protected $_base_uri = ''; + + protected $uri = ''; + + protected $dispatched = false; + + protected $routed = false; + /** * The isGet purpose @@ -63,20 +85,6 @@ public function isCli() {} */ public function isXmlHttpRequest() {} - public function getQuery($name = null, $default = null) {} - - public function getRequest($name = null, $default = null) {} - - public function getPost($name = null, $default = null) {} - - public function getCookie($name = null, $default = null) {} - - public function getRaw() {} - - public function getFiles($name = null, $default = null) {} - - public function get($name = null, $default = null) {} - /** * 返回SERVER变量的值 * @@ -85,7 +93,7 @@ public function get($name = null, $default = null) {} * * @return void */ - public function getServer($name = null, $default = null) {} + public function getServer($name, $default = null) {} /** * 取得ENV变量的值 @@ -95,7 +103,7 @@ public function getServer($name = null, $default = null) {} * * @return void */ - public function getEnv($name = null, $default = null) {} + public function getEnv($name, $default = null) {} /** * The setParam purpose @@ -115,7 +123,7 @@ public function setParam($name, $value = null) {} * * @return void */ - public function getParam($name = null, $default = null) {} + public function getParam($name, $default = null) {} /** * The getParams purpose @@ -124,8 +132,6 @@ public function getParam($name = null, $default = null) {} */ public function getParams() {} - public function clearParams() {} - /** * The getException purpose * @@ -161,7 +167,7 @@ public function getActionName() {} * * @return void */ - public function setModuleName($module, $format_name = null) {} + public function setModuleName($module) {} /** * The setControllerName purpose @@ -170,7 +176,7 @@ public function setModuleName($module, $format_name = null) {} * * @return void */ - public function setControllerName($controller, $format_name = null) {} + public function setControllerName($controller) {} /** * The setActionName purpose @@ -179,7 +185,7 @@ public function setControllerName($controller, $format_name = null) {} * * @return void */ - public function setActionName($action, $format_name = null) {} + public function setActionName($action) {} /** * The getMethod purpose diff --git a/php_docs_code/yaf/yaf-request-http.php b/php_docs_code/yaf/yaf-request-http.php index fe93a12..b003d99 100644 --- a/php_docs_code/yaf/yaf-request-http.php +++ b/php_docs_code/yaf/yaf-request-http.php @@ -7,35 +7,29 @@ */ class Yaf_Request_Http extends Yaf_Request_Abstract { - - /** - * The __construct purpose - */ - public function __construct($request_uri = null, $base_uri = null) {} + public $module; - public function isGet() {} + public $controller; - public function isPost() {} + public $action; - public function isDelete() {} + public $method; - public function isPatch() {} + protected $params; - public function isPut() {} + protected $language; - public function isHead() {} + protected $_exception; - public function isOptions() {} + protected $_base_uri = ''; - public function isCli() {} + protected $uri = ''; - /** - * 是否为Ajax请求 - * - * @return bool - */ - public function isXmlHttpRequest() {} + protected $dispatched = false; + + protected $routed = false; + /** * fetch a query parameter * @@ -44,14 +38,14 @@ public function isXmlHttpRequest() {} * * @return mixed */ - public function getQuery($name = null, $default = null) {} + public function getQuery() {} /** * The getRequest purpose * * @return void */ - public function getRequest($name = null, $default = null) {} + public function getRequest() {} /** * 返回POST变量 @@ -61,7 +55,7 @@ public function getRequest($name = null, $default = null) {} * * @return mixed */ - public function getPost($name = null, $default = null) {} + public function getPost() {} /** * 返回Cookie变量 @@ -71,7 +65,7 @@ public function getPost($name = null, $default = null) {} * * @return mixed */ - public function getCookie($name = null, $default = null) {} + public function getCookie() {} public function getRaw() {} @@ -80,7 +74,7 @@ public function getRaw() {} * * @return void */ - public function getFiles($name = null, $default = null) {} + public function getFiles() {} /** * 从客户端返回变量 @@ -90,20 +84,48 @@ public function getFiles($name = null, $default = null) {} * * @return mixed */ - public function get($name = null, $default = null) {} + public function get() {} - public function getServer($name = null, $default = null) {} + /** + * 是否为Ajax请求 + * + * @return bool + */ + public function isXmlHttpRequest() {} + + /** + * The __construct purpose + */ + public function __construct() {} + + private function __clone() {} + + public function isGet() {} + + public function isPost() {} + + public function isDelete() {} - public function getEnv($name = null, $default = null) {} + public function isPatch() {} + + public function isPut() {} + + public function isHead() {} + + public function isOptions() {} + + public function isCli() {} + + public function getServer($name, $default = null) {} + + public function getEnv($name, $default = null) {} public function setParam($name, $value = null) {} - public function getParam($name = null, $default = null) {} + public function getParam($name, $default = null) {} public function getParams() {} - public function clearParams() {} - public function getException() {} public function getModuleName() {} @@ -112,11 +134,11 @@ public function getControllerName() {} public function getActionName() {} - public function setModuleName($module, $format_name = null) {} + public function setModuleName($module) {} - public function setControllerName($controller, $format_name = null) {} + public function setControllerName($controller) {} - public function setActionName($action, $format_name = null) {} + public function setActionName($action) {} public function getMethod() {} diff --git a/php_docs_code/yaf/yaf-request-simple.php b/php_docs_code/yaf/yaf-request-simple.php index 2e6ab77..2cc7e22 100644 --- a/php_docs_code/yaf/yaf-request-simple.php +++ b/php_docs_code/yaf/yaf-request-simple.php @@ -7,95 +7,115 @@ * @package Yaf * @author Leelmes */ -class Yaf_Request_Simple extends Yaf_Request_Abstract { +final class Yaf_Request_Simple extends Yaf_Request_Abstract { const SCHEME_HTTP = 'http'; const SCHEME_HTTPS = 'https'; - - /** - * The __construct purpose - */ - public function __construct($method = null, $module = null, $controller = null, $action = null, $params = null) {} + public $module; - /** - * The isXmlHttpRequest purpose - * - * @return void - */ - public function isXmlHttpRequest() {} + public $controller; - public function isGet() {} + public $action; - public function isPost() {} + public $method; - public function isDelete() {} + protected $params; - public function isPatch() {} + protected $language; - public function isPut() {} + protected $_exception; - public function isHead() {} + protected $_base_uri = ''; - public function isOptions() {} + protected $uri = ''; - public function isCli() {} + protected $dispatched = false; + + protected $routed = false; + + + /** + * The __construct purpose + */ + public function __construct() {} + + private function __clone() {} /** * The getQuery purpose * * @return void */ - public function getQuery($name = null, $default = null) {} + public function getQuery() {} /** * The getRequest purpose * * @return void */ - public function getRequest($name = null, $default = null) {} + public function getRequest() {} /** * The getPost purpose * * @return void */ - public function getPost($name = null, $default = null) {} + public function getPost() {} /** * The getCookie purpose * * @return void */ - public function getCookie($name = null, $default = null) {} - - public function getRaw() {} + public function getCookie() {} /** * The getFiles purpose * * @return void */ - public function getFiles($name = null, $default = null) {} + public function getFiles() {} /** * The get purpose * * @return void */ - public function get($name = null, $default = null) {} + public function get() {} - public function getServer($name = null, $default = null) {} + /** + * The isXmlHttpRequest purpose + * + * @return void + */ + public function isXmlHttpRequest() {} - public function getEnv($name = null, $default = null) {} + public function isGet() {} + + public function isPost() {} + + public function isDelete() {} + + public function isPatch() {} + + public function isPut() {} + + public function isHead() {} + + public function isOptions() {} + + public function isCli() {} + + public function getServer($name, $default = null) {} + + public function getEnv($name, $default = null) {} public function setParam($name, $value = null) {} - public function getParam($name = null, $default = null) {} + public function getParam($name, $default = null) {} public function getParams() {} - public function clearParams() {} - public function getException() {} public function getModuleName() {} @@ -104,11 +124,11 @@ public function getControllerName() {} public function getActionName() {} - public function setModuleName($module, $format_name = null) {} + public function setModuleName($module) {} - public function setControllerName($controller, $format_name = null) {} + public function setControllerName($controller) {} - public function setActionName($action, $format_name = null) {} + public function setActionName($action) {} public function getMethod() {} diff --git a/php_docs_code/yaf/yaf-response-abstract.php b/php_docs_code/yaf/yaf-response-abstract.php index 85729c5..63f1b85 100644 --- a/php_docs_code/yaf/yaf-response-abstract.php +++ b/php_docs_code/yaf/yaf-response-abstract.php @@ -8,12 +8,27 @@ abstract class Yaf_Response_Abstract { const DEFAULT_BODY = 'content'; + protected $_header; + + protected $_body; + + protected $_sendheader = false; + /** * The __construct purpose */ public function __construct() {} + /** + * The __destruct purpose + * + * @return void + */ + public function __destruct() {} + + private function __clone() {} + /** * The __toString purpose * diff --git a/php_docs_code/yaf/yaf-response-cli.php b/php_docs_code/yaf/yaf-response-cli.php index c5722df..db33cb6 100644 --- a/php_docs_code/yaf/yaf-response-cli.php +++ b/php_docs_code/yaf/yaf-response-cli.php @@ -8,9 +8,19 @@ class Yaf_Response_Cli extends Yaf_Response_Abstract { const DEFAULT_BODY = 'content'; + protected $_header; + + protected $_body; + + protected $_sendheader = false; + public function __construct() {} + public function __destruct() {} + + private function __clone() {} + public function __toString() {} public function setBody($body, $name = null) {} diff --git a/php_docs_code/yaf/yaf-response-http.php b/php_docs_code/yaf/yaf-response-http.php index 387013a..60abd62 100644 --- a/php_docs_code/yaf/yaf-response-http.php +++ b/php_docs_code/yaf/yaf-response-http.php @@ -8,6 +8,14 @@ class Yaf_Response_Http extends Yaf_Response_Abstract { const DEFAULT_BODY = 'content'; + protected $_header; + + protected $_body; + + protected $_sendheader = true; + + protected $_response_code = 0; + public function setHeader($name, $value, $rep = null, $response_code = null) {} @@ -23,6 +31,10 @@ public function response() {} public function __construct() {} + public function __destruct() {} + + private function __clone() {} + public function __toString() {} public function setBody($body, $name = null) {} diff --git a/php_docs_code/yaf/yaf-route-map.php b/php_docs_code/yaf/yaf-route-map.php index 8e91653..f3ddbdd 100644 --- a/php_docs_code/yaf/yaf-route-map.php +++ b/php_docs_code/yaf/yaf-route-map.php @@ -7,6 +7,10 @@ */ final class Yaf_Route_Map implements Yaf_Route_Interface { + protected $_ctl_router = false; + + protected $_delimiter; + /** * The __construct purpose diff --git a/php_docs_code/yaf/yaf-route-regex.php b/php_docs_code/yaf/yaf-route-regex.php index 9ab50f2..e83787e 100644 --- a/php_docs_code/yaf/yaf-route-regex.php +++ b/php_docs_code/yaf/yaf-route-regex.php @@ -9,6 +9,16 @@ */ final class Yaf_Route_Regex implements Yaf_Route_Interface { + protected $_route; + + protected $_default; + + protected $_maps; + + protected $_verify; + + protected $_reverse; + /** * The __construct purpose @@ -20,8 +30,6 @@ final class Yaf_Route_Regex implements Yaf_Route_Interface { */ public function __construct($match, $route, $map = null, $verify = null, $reverse = null) {} - public function match($uri) {} - /** * The route purpose * diff --git a/php_docs_code/yaf/yaf-route-rewrite.php b/php_docs_code/yaf/yaf-route-rewrite.php index 271b9b1..958c6f7 100644 --- a/php_docs_code/yaf/yaf-route-rewrite.php +++ b/php_docs_code/yaf/yaf-route-rewrite.php @@ -7,6 +7,12 @@ */ final class Yaf_Route_Rewrite implements Yaf_Route_Interface { + protected $_route; + + protected $_default; + + protected $_verify; + /** * The __construct purpose @@ -17,8 +23,6 @@ final class Yaf_Route_Rewrite implements Yaf_Route_Interface { */ public function __construct($match, $route, $verify = null) {} - public function match($uri) {} - /** * The route purpose * diff --git a/php_docs_code/yaf/yaf-route-simple.php b/php_docs_code/yaf/yaf-route-simple.php index ca6ad69..673adf8 100644 --- a/php_docs_code/yaf/yaf-route-simple.php +++ b/php_docs_code/yaf/yaf-route-simple.php @@ -11,6 +11,27 @@ */ final class Yaf_Route_Simple implements Yaf_Route_Interface { + /** + * Yaf_Route_Simple 会匹配请求中的query string,然后找到路由信息。 + * 你需要做的只是告诉 Yaf_Route_Simple,在$_GET中哪个是Module,哪个是Controller,哪个是Action。 + * Yaf_Route_Simple::route 总是会返回TRUE,所以把Yaf_Route_Simple放在路由堆栈前面是很重要的,否则其他所有的路由都可能不会被调用到。 + */ + protected $controller; + + /** + * Yaf_Route_Simple 会匹配请求中的query string,然后找到路由信息。 + * 你需要做的只是告诉 Yaf_Route_Simple,在$_GET中哪个是Module,哪个是Controller,哪个是Action。 + * Yaf_Route_Simple::route 总是会返回TRUE,所以把Yaf_Route_Simple放在路由堆栈前面是很重要的,否则其他所有的路由都可能不会被调用到。 + */ + protected $module; + + /** + * Yaf_Route_Simple 会匹配请求中的query string,然后找到路由信息。 + * 你需要做的只是告诉 Yaf_Route_Simple,在$_GET中哪个是Module,哪个是Controller,哪个是Action。 + * Yaf_Route_Simple::route 总是会返回TRUE,所以把Yaf_Route_Simple放在路由堆栈前面是很重要的,否则其他所有的路由都可能不会被调用到。 + */ + protected $action; + /** * Yaf_Route_Simple constructor diff --git a/php_docs_code/yaf/yaf-route-static.php b/php_docs_code/yaf/yaf-route-static.php index 9f69567..4f393f2 100644 --- a/php_docs_code/yaf/yaf-route-static.php +++ b/php_docs_code/yaf/yaf-route-static.php @@ -9,7 +9,7 @@ * @package Yaf * @author Leelmes */ -final class Yaf_Route_Static implements Yaf_Route_Interface { +class Yaf_Route_Static implements Yaf_Route_Interface { /** diff --git a/php_docs_code/yaf/yaf-route-supervar.php b/php_docs_code/yaf/yaf-route-supervar.php index 196fb19..b7aba32 100644 --- a/php_docs_code/yaf/yaf-route-supervar.php +++ b/php_docs_code/yaf/yaf-route-supervar.php @@ -7,6 +7,8 @@ */ final class Yaf_Route_Supervar implements Yaf_Route_Interface { + protected $_var_name; + /** * The __construct purpose diff --git a/php_docs_code/yaf/yaf-router.php b/php_docs_code/yaf/yaf-router.php index d96a18f..c613279 100644 --- a/php_docs_code/yaf/yaf-router.php +++ b/php_docs_code/yaf/yaf-router.php @@ -23,6 +23,10 @@ */ final class Yaf_Router { + protected $_routes; + + protected $_current; + /** * Yaf_Router constructor @@ -37,7 +41,7 @@ public function __construct() {} * * @return Yaf_Router */ - public function addRoute($name, $route) {} + public function addRoute() {} /** * 向Router中添加配置文件中定义的路由 @@ -46,7 +50,7 @@ public function addRoute($name, $route) {} * * @return void */ - public function addConfig($config) {} + public function addConfig() {} /** * The route purpose @@ -55,7 +59,7 @@ public function addConfig($config) {} * * @return bool */ - public function route($request) {} + public function route() {} /** * The getRoute purpose @@ -64,7 +68,7 @@ public function route($request) {} * * @return void */ - public function getRoute($name) {} + public function getRoute() {} /** * The getRoutes purpose diff --git a/php_docs_code/yaf/yaf-session.php b/php_docs_code/yaf/yaf-session.php index d2c3639..65c6110 100644 --- a/php_docs_code/yaf/yaf-session.php +++ b/php_docs_code/yaf/yaf-session.php @@ -5,14 +5,26 @@ * @package Yaf * @author Leelmes */ -abstract final class Yaf_Session implements Iterator,Traversable,ArrayAccess,Countable { +final class Yaf_Session implements Iterator,Traversable,ArrayAccess,Countable { + protected static $_instance; + + protected $_session; + + protected $_started = false; + /** * The __construct purpose */ private function __construct() {} + private function __clone() {} + + private function __sleep() {} + + private function __wakeup() {} + /** * The getInstance purpose * @@ -56,6 +68,41 @@ public function del($name) {} */ public function count() {} + /** + * The rewind purpose + * + * @return void + */ + public function rewind() {} + + /** + * The next purpose + * + * @return void + */ + public function next() {} + + /** + * The current purpose + * + * @return void + */ + public function current() {} + + /** + * The key purpose + * + * @return void + */ + public function key() {} + + /** + * The valid purpose + * + * @return void + */ + public function valid() {} + public function clear() {} /** @@ -132,39 +179,4 @@ public function __set($name, $value) {} */ public function __unset($name) {} - /** - * The current purpose - * - * @return void - */ - abstract public function current(); - - /** - * The next purpose - * - * @return void - */ - abstract public function next(); - - /** - * The key purpose - * - * @return void - */ - abstract public function key(); - - /** - * The valid purpose - * - * @return void - */ - abstract public function valid(); - - /** - * The rewind purpose - * - * @return void - */ - abstract public function rewind(); - } diff --git a/php_docs_code/yaf/yaf-view-interface.php b/php_docs_code/yaf/yaf-view-interface.php index 237b6d2..eb40c8a 100644 --- a/php_docs_code/yaf/yaf-view-interface.php +++ b/php_docs_code/yaf/yaf-view-interface.php @@ -54,6 +54,6 @@ abstract public function setScriptPath($template_dir); * * @return void */ - abstract public function getScriptPath($request = null); + abstract public function getScriptPath(); } diff --git a/php_docs_code/yaf/yaf-view-simple.php b/php_docs_code/yaf/yaf-view-simple.php index 9b76c98..f31f8dc 100644 --- a/php_docs_code/yaf/yaf-view-simple.php +++ b/php_docs_code/yaf/yaf-view-simple.php @@ -9,6 +9,12 @@ */ class Yaf_View_Simple implements Yaf_View_Interface { + protected $_tpl_vars; + + protected $_tpl_dir; + + protected $_options; + /** * Constructor of Yaf_View_Simple @@ -18,6 +24,15 @@ class Yaf_View_Simple implements Yaf_View_Interface { */ public function __construct($template_dir, $options = null) {} + /** + * The __isset purpose + * + * @param string $name + * + * @return void + */ + public function __isset($name) {} + public function get($name = null) {} /** @@ -93,7 +108,7 @@ public function setScriptPath($template_dir) {} * * @return string */ - public function getScriptPath($request = null) {} + public function getScriptPath() {} /** * 获取视图引擎的一个模板变量值 diff --git a/php_docs_code/yar/yar-client-exception.php b/php_docs_code/yar/yar-client-exception.php index 41bcb2d..4272c3a 100644 --- a/php_docs_code/yar/yar-client-exception.php +++ b/php_docs_code/yar/yar-client-exception.php @@ -5,7 +5,7 @@ * @package Yar * @author Leelmes */ -class Yar_Client_Exception extends Exception implements Stringable,Throwable { +class Yar_Client_Exception extends Exception implements Throwable { protected $message = ''; @@ -23,6 +23,8 @@ class Yar_Client_Exception extends Exception implements Stringable,Throwable { */ public function getType() {} + private function __clone() {} + public function __construct($message = null, $code = null, $previous = null) {} public function __wakeup() {} diff --git a/php_docs_code/yar/yar-client-packager-exception.php b/php_docs_code/yar/yar-client-packager-exception.php index e0a5747..112e10d 100644 --- a/php_docs_code/yar/yar-client-packager-exception.php +++ b/php_docs_code/yar/yar-client-packager-exception.php @@ -5,7 +5,7 @@ * @package Yar * @author Leelmes */ -class Yar_Client_Packager_Exception extends Yar_Client_Exception implements Throwable,Stringable { +class Yar_Client_Packager_Exception extends Yar_Client_Exception implements Throwable { protected $message = ''; @@ -18,6 +18,8 @@ class Yar_Client_Packager_Exception extends Yar_Client_Exception implements Thro public function getType() {} + private function __clone() {} + public function __construct($message = null, $code = null, $previous = null) {} public function __wakeup() {} diff --git a/php_docs_code/yar/yar-client-protocol-exception.php b/php_docs_code/yar/yar-client-protocol-exception.php index 68701c2..0e220bd 100644 --- a/php_docs_code/yar/yar-client-protocol-exception.php +++ b/php_docs_code/yar/yar-client-protocol-exception.php @@ -5,7 +5,7 @@ * @package Yar * @author Leelmes */ -class Yar_Client_Protocol_Exception extends Yar_Client_Exception implements Throwable,Stringable { +class Yar_Client_Protocol_Exception extends Yar_Client_Exception implements Throwable { protected $message = ''; @@ -18,6 +18,8 @@ class Yar_Client_Protocol_Exception extends Yar_Client_Exception implements Thro public function getType() {} + private function __clone() {} + public function __construct($message = null, $code = null, $previous = null) {} public function __wakeup() {} diff --git a/php_docs_code/yar/yar-client-transport-exception.php b/php_docs_code/yar/yar-client-transport-exception.php index f1da846..870fcfd 100644 --- a/php_docs_code/yar/yar-client-transport-exception.php +++ b/php_docs_code/yar/yar-client-transport-exception.php @@ -5,7 +5,7 @@ * @package Yar * @author Leelmes */ -class Yar_Client_Transport_Exception extends Yar_Client_Exception implements Throwable,Stringable { +class Yar_Client_Transport_Exception extends Yar_Client_Exception implements Throwable { protected $message = ''; @@ -18,6 +18,8 @@ class Yar_Client_Transport_Exception extends Yar_Client_Exception implements Thr public function getType() {} + private function __clone() {} + public function __construct($message = null, $code = null, $previous = null) {} public function __wakeup() {} diff --git a/php_docs_code/yar/yar-server-exception.php b/php_docs_code/yar/yar-server-exception.php index 8b63dee..37ada2f 100644 --- a/php_docs_code/yar/yar-server-exception.php +++ b/php_docs_code/yar/yar-server-exception.php @@ -8,7 +8,7 @@ * @package Yar * @author Leelmes */ -class Yar_Server_Exception extends Exception implements Stringable,Throwable { +class Yar_Server_Exception extends Exception implements Throwable { protected $message = ''; @@ -28,6 +28,8 @@ class Yar_Server_Exception extends Exception implements Stringable,Throwable { */ public function getType() {} + private function __clone() {} + public function __construct($message = null, $code = null, $previous = null) {} public function __wakeup() {} diff --git a/php_docs_code/yar/yar-server-output-exception.php b/php_docs_code/yar/yar-server-output-exception.php index c610136..37bdea4 100644 --- a/php_docs_code/yar/yar-server-output-exception.php +++ b/php_docs_code/yar/yar-server-output-exception.php @@ -5,7 +5,7 @@ * @package Yar * @author Leelmes */ -class Yar_Server_Output_Exception extends Yar_Server_Exception implements Throwable,Stringable { +class Yar_Server_Output_Exception extends Yar_Server_Exception implements Throwable { protected $message = ''; @@ -18,6 +18,8 @@ class Yar_Server_Output_Exception extends Yar_Server_Exception implements Throwa public function getType() {} + private function __clone() {} + public function __construct($message = null, $code = null, $previous = null) {} public function __wakeup() {} diff --git a/php_docs_code/yar/yar-server-packager-exception.php b/php_docs_code/yar/yar-server-packager-exception.php index 487b6da..7e3cbaa 100644 --- a/php_docs_code/yar/yar-server-packager-exception.php +++ b/php_docs_code/yar/yar-server-packager-exception.php @@ -5,7 +5,7 @@ * @package Yar * @author Leelmes */ -class Yar_Server_Packager_Exception extends Yar_Server_Exception implements Throwable,Stringable { +class Yar_Server_Packager_Exception extends Yar_Server_Exception implements Throwable { protected $message = ''; @@ -18,6 +18,8 @@ class Yar_Server_Packager_Exception extends Yar_Server_Exception implements Thro public function getType() {} + private function __clone() {} + public function __construct($message = null, $code = null, $previous = null) {} public function __wakeup() {} diff --git a/php_docs_code/yar/yar-server-protocol-exception.php b/php_docs_code/yar/yar-server-protocol-exception.php index bb569dc..b81b564 100644 --- a/php_docs_code/yar/yar-server-protocol-exception.php +++ b/php_docs_code/yar/yar-server-protocol-exception.php @@ -5,7 +5,7 @@ * @package Yar * @author Leelmes */ -class Yar_Server_Protocol_Exception extends Yar_Server_Exception implements Throwable,Stringable { +class Yar_Server_Protocol_Exception extends Yar_Server_Exception implements Throwable { protected $message = ''; @@ -18,6 +18,8 @@ class Yar_Server_Protocol_Exception extends Yar_Server_Exception implements Thro public function getType() {} + private function __clone() {} + public function __construct($message = null, $code = null, $previous = null) {} public function __wakeup() {} diff --git a/php_docs_code/yar/yar-server-request-exception.php b/php_docs_code/yar/yar-server-request-exception.php index fc6426c..f4c8a35 100644 --- a/php_docs_code/yar/yar-server-request-exception.php +++ b/php_docs_code/yar/yar-server-request-exception.php @@ -5,7 +5,7 @@ * @package Yar * @author Leelmes */ -class Yar_Server_Request_Exception extends Yar_Server_Exception implements Throwable,Stringable { +class Yar_Server_Request_Exception extends Yar_Server_Exception implements Throwable { protected $message = ''; @@ -18,6 +18,8 @@ class Yar_Server_Request_Exception extends Yar_Server_Exception implements Throw public function getType() {} + private function __clone() {} + public function __construct($message = null, $code = null, $previous = null) {} public function __wakeup() {}