├── .gitignore ├── php_docs_code ├── co- │ ├── co-curl-handle.php │ ├── co-scheduler.php │ ├── co-server-connection.php │ ├── co-waitgroup.php │ ├── co-channel.php │ ├── co-fastcgi-client.php │ ├── co-mysql-statement.php │ ├── co-server.php │ ├── co-http-server.php │ ├── co-http2-client-exception.php │ ├── co-mysql-exception.php │ ├── co-coroutine-curl-exception.php │ ├── co-fastcgi-client-exception.php │ ├── co-socket-exception.php │ ├── co-http-client-exception.php │ ├── co-system.php │ ├── co-http2-client.php │ ├── co-mysql.php │ ├── co-fastcgi-proxy.php │ ├── co-client.php │ ├── co-socket.php │ ├── co-context.php │ ├── co-iterator.php │ └── co-http-client.php ├── swoole │ ├── Swoole-Coroutine-Curl-Handle.php │ ├── swoole_mmap.php │ ├── Swoole-Mmap.php │ ├── Swoole-Server-Event.php │ ├── Swoole-Server-PipeMessage.php │ ├── Swoole-Server-TaskResult.php │ ├── swoole_http2_request.php │ ├── Swoole-Server-Packet.php │ ├── swoole_runtime.php │ ├── Swoole-Server-StatusInfo.php │ ├── swoole_memory_pool_slice.php │ ├── Swoole-Http2-Request.php │ ├── Swoole-Runtime.php │ ├── Swoole-Memory-Pool-Slice.php │ ├── swoole_server_task.php │ ├── Swoole-Server-Task.php │ ├── swoole_channel.php │ ├── Swoole-Channel.php │ ├── swoole_http2_response.php │ ├── Swoole-Http2-Response.php │ ├── Swoole-Coroutine-Scheduler.php │ ├── swoole_ringqueue.php │ ├── Swoole-RingQueue.php │ ├── swoole_atomic_long.php │ ├── Swoole-Coroutine-Barrier.php │ ├── swoole_http_request.php │ ├── swoole_msgqueue.php │ ├── swoole_table_row.php │ ├── Swoole-Atomic-Long.php │ ├── Swoole-Coroutine-Server-Connection.php │ ├── Swoole-Coroutine-WaitGroup.php │ ├── swoole_websocket_frame.php │ ├── Swoole-Http-Request.php │ ├── Swoole-MsgQueue.php │ ├── Swoole-Table-Row.php │ ├── Swoole-WebSocket-Frame.php │ ├── swoole_memory_pool.php │ ├── Swoole-Memory-Pool.php │ ├── swoole_atomic.php │ ├── Swoole-Atomic.php │ ├── swoole_websocket_closeframe.php │ ├── Swoole-ObjectProxy.php │ ├── Swoole-Coroutine-Channel.php │ ├── Swoole-WebSocket-CloseFrame.php │ ├── Swoole-ConnectionPool.php │ ├── swoole_timer.php │ ├── Swoole-Timer.php │ ├── Swoole-Database-MysqliPool.php │ ├── Swoole-Database-PDOPool.php │ ├── Swoole-Database-RedisPool.php │ ├── Swoole-Coroutine-FastCGI-Client.php │ ├── swoole_buffer.php │ ├── Swoole-Database-ObjectProxy.php │ ├── Swoole-Coroutine-MySQL-Statement.php │ ├── swoole_lock.php │ ├── Swoole-Buffer.php │ ├── swoole_async.php │ ├── Swoole-Coroutine-Server.php │ ├── Swoole-Lock.php │ ├── Swoole-Async.php │ ├── swoole_connection_iterator.php │ ├── swoole_process_pool.php │ ├── Swoole-Connection-Iterator.php │ ├── Swoole-Coroutine-Http-Server.php │ ├── Swoole-FastCGI-Message.php │ ├── Swoole-Process-Pool.php │ ├── swoole_error.php │ ├── Swoole-Process-Manager.php │ ├── Swoole-Error.php │ ├── swoole_exception.php │ ├── Swoole-Exception.php │ ├── swoole-process-processmanager.php │ ├── Swoole-Client-Exception.php │ ├── swoole_event.php │ ├── swoole_mysql_exception.php │ ├── Swoole-Event.php │ ├── Swoole-Curl-Exception.php │ ├── Swoole-MySQL-Exception.php │ ├── Swoole-Coroutine-Curl-Exception.php │ ├── Swoole-Exception-ArrayKeyNotExists.php │ ├── Swoole-Database-MysqliException.php │ ├── swoole_redis.php │ ├── swoole_server_port.php │ ├── Swoole-Coroutine-Http2-Client-Exception.php │ ├── Swoole-Coroutine-MySQL-Exception.php │ ├── Swoole-Coroutine-FastCGI-Client-Exception.php │ ├── Swoole-Coroutine-Socket-Exception.php │ ├── Swoole-Redis.php │ ├── Swoole-Server-Port.php │ ├── Swoole-Coroutine-Http-Client-Exception.php │ ├── Swoole-FastCGI-Response.php │ ├── swoole-async-redis.php │ ├── Swoole-ExitException.php │ ├── Swoole-FastCGI.php │ ├── Swoole-FastCGI-FrameParser.php │ ├── Swoole-FastCGI-Request.php │ ├── Swoole-FastCGI-Record-Data.php │ ├── Swoole-FastCGI-Record-Stdin.php │ ├── Swoole-Database-PDOProxy.php │ ├── Swoole-FastCGI-Record-Stderr.php │ ├── Swoole-FastCGI-Record-Stdout.php │ ├── Swoole-Coroutine-System.php │ ├── Swoole-FastCGI-Record-AbortRequest.php │ ├── Swoole-FastCGI-Record.php │ ├── Swoole-Database-MysqliStatementProxy.php │ ├── Swoole-FastCGI-Record-Params.php │ ├── Swoole-FastCGI-Record-GetValues.php │ ├── swoole_mysql.php │ ├── Swoole-Coroutine-Http2-Client.php │ ├── Swoole-MySQL.php │ ├── Swoole-FastCGI-Record-GetValuesResult.php │ ├── Swoole-FastCGI-Record-UnknownType.php │ ├── swoole-async-mysql.php │ ├── Swoole-Coroutine-MySQL.php │ ├── Swoole-Database-MysqliProxy.php │ ├── Swoole-Database-RedisConfig.php │ ├── Swoole-Database-MysqliConfig.php │ ├── Swoole-FastCGI-Record-BeginRequest.php │ ├── Swoole-FastCGI-Record-EndRequest.php │ ├── Swoole-Coroutine-FastCGI-Proxy.php │ ├── swoole_table.php │ ├── Swoole-Table.php │ ├── Swoole-Database-PDOStatementProxy.php │ ├── Swoole-Coroutine-Client.php │ ├── swoole_client.php │ ├── Swoole-Client.php │ ├── Swoole-StringObject.php │ ├── Swoole-Coroutine-Socket.php │ ├── Swoole-Database-PDOConfig.php │ ├── swoole_timer_iterator.php │ ├── Swoole-Timer-Iterator.php │ ├── Swoole-Coroutine-Context.php │ ├── Swoole-Coroutine-Iterator.php │ ├── swoole_http_response.php │ ├── Swoole-FastCGI-HttpResponse.php │ ├── Swoole-Http-Response.php │ ├── Swoole-MultibyteStringObject.php │ ├── swoole_async_client.php │ ├── swoole_http_client.php │ ├── Swoole-Async-Client.php │ ├── Swoole-Http-Client.php │ ├── swoole-async-http-client.php │ ├── swoole_process.php │ ├── Swoole-Process.php │ ├── Swoole-Coroutine.php │ ├── Swoole-Coroutine-Http-Client.php │ ├── swoole_http_server.php │ └── Swoole-Http-Server.php ├── yaf │ ├── yaf-bootstrap-abstract.php │ ├── yaf-route-interface.php │ ├── yaf-config-abstract.php │ ├── yaf-response-cli.php │ ├── yaf-route-supervar.php │ ├── yaf-exception-typeerror.php │ ├── yaf-exception-loadfailed.php │ ├── yaf-exception-routerfailed.php │ ├── yaf-exception-startuperror.php │ ├── yaf-exception-dispatchfailed.php │ ├── yaf-exception-loadfailed-view.php │ ├── yaf-exception-loadfailed-action.php │ ├── yaf-exception-loadfailed-module.php │ ├── yaf-exception-loadfailed-controller.php │ ├── yaf-route-static.php │ ├── yaf-exception.php │ ├── yaf-route-map.php │ ├── yaf-route-rewrite.php │ ├── yaf-response-http.php │ ├── yaf-registry.php │ ├── yaf-route-regex.php │ ├── yaf-view-interface.php │ ├── yaf-action-abstract.php │ ├── yaf-router.php │ ├── yaf-route-simple.php │ └── yaf-plugin-abstract.php ├── yar │ ├── yar-server.php │ ├── yar-server-output-exception.php │ ├── yar-server-request-exception.php │ ├── yar-client-packager-exception.php │ ├── yar-client-protocol-exception.php │ ├── yar-server-packager-exception.php │ ├── yar-server-protocol-exception.php │ ├── yar-client-transport-exception.php │ ├── yar-client-exception.php │ ├── yar-client.php │ ├── yar-server-exception.php │ └── yar-concurrent-client.php ├── yaconf │ └── yaconf.php ├── co.php └── swoole.php ├── library └── view │ └── help.php ├── reflection-code.php ├── conf └── fetch.php ├── README.md ├── LICENSE └── fetch.php /.gitignore: -------------------------------------------------------------------------------- 1 | .* 2 | nbproject 3 | ftpsync.settings 4 | tags 5 | vendor 6 | system 7 | docs_xml_dir -------------------------------------------------------------------------------- /php_docs_code/co-/co-curl-handle.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace co\curl; 8 | final class handle { 9 | 10 | 11 | } 12 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Coroutine-Curl-Handle.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\Coroutine\Curl; 8 | final class Handle { 9 | 10 | 11 | } 12 | -------------------------------------------------------------------------------- /php_docs_code/swoole/swoole_mmap.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | class swoole_mmap { 8 | 9 | 10 | static public function open($filename, $size = null, $offset = null) {} 11 | } 12 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Mmap.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole; 8 | class Mmap { 9 | 10 | 11 | static public function open($filename, $size = null, $offset = null) {} 12 | } 13 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Server-Event.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\Server; 8 | class Event { 9 | 10 | public $reactor_id = 0; 11 | public $fd = 0; 12 | public $dispatch_time = 0.0; 13 | public $data; 14 | 15 | } 16 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Server-PipeMessage.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\Server; 8 | class PipeMessage { 9 | 10 | public $source_worker_id = 0; 11 | public $dispatch_time = 0.0; 12 | public $data; 13 | 14 | } 15 | -------------------------------------------------------------------------------- /library/view/help.php: -------------------------------------------------------------------------------- 1 | 8 | */ 9 | ?> 10 | 11 | Plaese run in command line: 12 | php reflection-code.php $class_name 13 | 14 | Example: 15 | php reflection-code.php Memcached 16 | or 17 | php reflection-code.php Memcached > memcached.php 18 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Server-TaskResult.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\Server; 8 | class TaskResult { 9 | 10 | public $task_id = 0; 11 | public $task_worker_id = 0; 12 | public $dispatch_time = 0.0; 13 | public $data; 14 | 15 | } 16 | -------------------------------------------------------------------------------- /php_docs_code/swoole/swoole_http2_request.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | class swoole_http2_request { 8 | 9 | public $path = '/'; 10 | public $method = 'GET'; 11 | public $headers; 12 | public $cookies; 13 | public $data = ''; 14 | public $pipeline = false; 15 | 16 | } 17 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Server-Packet.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\Server; 8 | class Packet { 9 | 10 | public $server_socket = 0; 11 | public $server_port = 0; 12 | public $dispatch_time = 0.0; 13 | public $address; 14 | public $port = 0; 15 | 16 | } 17 | -------------------------------------------------------------------------------- /php_docs_code/swoole/swoole_runtime.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | class swoole_runtime { 8 | 9 | 10 | static public function enableStrictMode() {} 11 | static public function enableCoroutine($enable = null, $flags = null) {} 12 | static public function getHookFlags() {} 13 | } 14 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Server-StatusInfo.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\Server; 8 | class StatusInfo { 9 | 10 | public $worker_id = 0; 11 | public $worker_pid = 0; 12 | public $status = 0; 13 | public $exit_code = 0; 14 | public $signal = 0; 15 | 16 | } 17 | -------------------------------------------------------------------------------- /php_docs_code/swoole/swoole_memory_pool_slice.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | class swoole_memory_pool_slice { 8 | 9 | 10 | public function read($size = null, $offset = null) {} 11 | public function write($data, $offset = null) {} 12 | public function __destruct() {} 13 | } 14 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Http2-Request.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\Http2; 8 | class Request { 9 | 10 | public $path = '/'; 11 | public $method = 'GET'; 12 | public $headers; 13 | public $cookies; 14 | public $data = ''; 15 | public $pipeline = false; 16 | 17 | } 18 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Runtime.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole; 8 | class Runtime { 9 | 10 | 11 | static public function enableStrictMode() {} 12 | static public function enableCoroutine($enable = null, $flags = null) {} 13 | static public function getHookFlags() {} 14 | } 15 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Memory-Pool-Slice.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\Memory\Pool; 8 | class Slice { 9 | 10 | 11 | public function read($size = null, $offset = null) {} 12 | public function write($data, $offset = null) {} 13 | public function __destruct() {} 14 | } 15 | -------------------------------------------------------------------------------- /php_docs_code/swoole/swoole_server_task.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | final class swoole_server_task { 8 | 9 | public $data; 10 | public $id = -1; 11 | public $worker_id = -1; 12 | public $flags = 0; 13 | 14 | public function finish($data) {} 15 | static public function pack($data) {} 16 | } 17 | -------------------------------------------------------------------------------- /php_docs_code/co-/co-scheduler.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace co; 8 | final class scheduler { 9 | 10 | 11 | public function add($func, $params = null) {} 12 | public function parallel($n, $func = null, $params = null) {} 13 | public function set($settings) {} 14 | public function start() {} 15 | } 16 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Server-Task.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\Server; 8 | final class Task { 9 | 10 | public $data; 11 | public $id = -1; 12 | public $worker_id = -1; 13 | public $flags = 0; 14 | 15 | public function finish($data) {} 16 | static public function pack($data) {} 17 | } 18 | -------------------------------------------------------------------------------- /php_docs_code/swoole/swoole_channel.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | class swoole_channel { 8 | 9 | 10 | public function __construct($size) {} 11 | public function __destruct() {} 12 | public function push($data) {} 13 | public function pop() {} 14 | public function peek() {} 15 | public function stats() {} 16 | } 17 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Channel.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole; 8 | class Channel { 9 | 10 | 11 | public function __construct($size) {} 12 | public function __destruct() {} 13 | public function push($data) {} 14 | public function pop() {} 15 | public function peek() {} 16 | public function stats() {} 17 | } 18 | -------------------------------------------------------------------------------- /php_docs_code/swoole/swoole_http2_response.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | class swoole_http2_response { 8 | 9 | public $streamId = 0; 10 | public $errCode = 0; 11 | public $statusCode = 0; 12 | public $pipeline = false; 13 | public $headers; 14 | public $set_cookie_headers; 15 | public $cookies; 16 | public $data; 17 | 18 | } 19 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Http2-Response.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\Http2; 8 | class Response { 9 | 10 | public $streamId = 0; 11 | public $errCode = 0; 12 | public $statusCode = 0; 13 | public $pipeline = false; 14 | public $headers; 15 | public $set_cookie_headers; 16 | public $cookies; 17 | public $data; 18 | 19 | } 20 | -------------------------------------------------------------------------------- /php_docs_code/co-/co-server-connection.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace co\server; 8 | class connection { 9 | 10 | protected $socket; 11 | 12 | public function __construct($conn) {} 13 | public function recv($timeout = null) {} 14 | public function send($data) {} 15 | public function close() {} 16 | public function exportSocket() {} 17 | } 18 | -------------------------------------------------------------------------------- /php_docs_code/co-/co-waitgroup.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace co; 8 | class waitgroup { 9 | 10 | protected $chan; 11 | protected $count = 0; 12 | protected $waiting = false; 13 | 14 | public function __construct() {} 15 | public function add($delta = null) {} 16 | public function done() {} 17 | public function wait($timeout = null) {} 18 | } 19 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Coroutine-Scheduler.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\Coroutine; 8 | final class Scheduler { 9 | 10 | 11 | public function add($func, $params = null) {} 12 | public function parallel($n, $func = null, $params = null) {} 13 | public function set($settings) {} 14 | public function start() {} 15 | } 16 | -------------------------------------------------------------------------------- /php_docs_code/swoole/swoole_ringqueue.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | class swoole_ringqueue { 8 | 9 | 10 | public function __construct($len) {} 11 | public function __destruct() {} 12 | public function push($data) {} 13 | public function pop() {} 14 | public function count() {} 15 | public function isFull() {} 16 | public function isEmpty() {} 17 | } 18 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-RingQueue.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole; 8 | class RingQueue { 9 | 10 | 11 | public function __construct($len) {} 12 | public function __destruct() {} 13 | public function push($data) {} 14 | public function pop() {} 15 | public function count() {} 16 | public function isFull() {} 17 | public function isEmpty() {} 18 | } 19 | -------------------------------------------------------------------------------- /php_docs_code/swoole/swoole_atomic_long.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | class swoole_atomic_long { 8 | 9 | 10 | public function __construct($value = null) {} 11 | public function add($add_value = null) {} 12 | public function sub($sub_value = null) {} 13 | public function get() {} 14 | public function set($value) {} 15 | public function cmpset($cmp_value, $new_value) {} 16 | } 17 | -------------------------------------------------------------------------------- /php_docs_code/yaf/yaf-bootstrap-abstract.php: -------------------------------------------------------------------------------- 1 | 14 | */ 15 | abstract class Yaf_Bootstrap_Abstract { 16 | 17 | 18 | } 19 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Coroutine-Barrier.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\Coroutine; 8 | class Barrier { 9 | 10 | private $cid = -1; 11 | private $timer = -1; 12 | private static $cancel_list = array ( 13 | ); 14 | 15 | public function __destruct() {} 16 | static public function make() {} 17 | static public function wait(& $barrier, $timeout = null) {} 18 | } 19 | -------------------------------------------------------------------------------- /php_docs_code/swoole/swoole_http_request.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | class swoole_http_request { 8 | 9 | public $fd = 0; 10 | public $header; 11 | public $server; 12 | public $cookie; 13 | public $get; 14 | public $files; 15 | public $post; 16 | public $tmpfiles; 17 | 18 | public function rawContent() {} 19 | public function getData() {} 20 | public function __destruct() {} 21 | } 22 | -------------------------------------------------------------------------------- /php_docs_code/swoole/swoole_msgqueue.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | class swoole_msgqueue { 8 | 9 | 10 | public function __construct($len) {} 11 | public function __destruct() {} 12 | public function push($data, $type = null) {} 13 | public function pop($type = null) {} 14 | public function setBlocking($blocking) {} 15 | public function stats() {} 16 | public function destroy() {} 17 | } 18 | -------------------------------------------------------------------------------- /php_docs_code/swoole/swoole_table_row.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | class swoole_table_row implements \ArrayAccess { 8 | 9 | public $key; 10 | public $value; 11 | 12 | public function offsetExists($offset) {} 13 | public function offsetGet($offset) {} 14 | public function offsetSet($offset, $value) {} 15 | public function offsetUnset($offset) {} 16 | public function __destruct() {} 17 | } 18 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Atomic-Long.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\Atomic; 8 | class Long { 9 | 10 | 11 | public function __construct($value = null) {} 12 | public function add($add_value = null) {} 13 | public function sub($sub_value = null) {} 14 | public function get() {} 15 | public function set($value) {} 16 | public function cmpset($cmp_value, $new_value) {} 17 | } 18 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Coroutine-Server-Connection.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\Coroutine\Server; 8 | class Connection { 9 | 10 | protected $socket; 11 | 12 | public function __construct($conn) {} 13 | public function recv($timeout = null) {} 14 | public function send($data) {} 15 | public function close() {} 16 | public function exportSocket() {} 17 | } 18 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Coroutine-WaitGroup.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\Coroutine; 8 | class WaitGroup { 9 | 10 | protected $chan; 11 | protected $count = 0; 12 | protected $waiting = false; 13 | 14 | public function __construct() {} 15 | public function add($delta = null) {} 16 | public function done() {} 17 | public function wait($timeout = null) {} 18 | } 19 | -------------------------------------------------------------------------------- /php_docs_code/swoole/swoole_websocket_frame.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | class swoole_websocket_frame { 8 | 9 | public $fd = 0; 10 | public $data = ''; 11 | public $opcode = 1; 12 | public $flags = 1; 13 | public $finish; 14 | 15 | public function __toString() {} 16 | static public function pack($data, $opcode = null, $flags = null) {} 17 | static public function unpack($data) {} 18 | } 19 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Http-Request.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\Http; 8 | class Request { 9 | 10 | public $fd = 0; 11 | public $header; 12 | public $server; 13 | public $cookie; 14 | public $get; 15 | public $files; 16 | public $post; 17 | public $tmpfiles; 18 | 19 | public function rawContent() {} 20 | public function getData() {} 21 | public function __destruct() {} 22 | } 23 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-MsgQueue.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole; 8 | class MsgQueue { 9 | 10 | 11 | public function __construct($len) {} 12 | public function __destruct() {} 13 | public function push($data, $type = null) {} 14 | public function pop($type = null) {} 15 | public function setBlocking($blocking) {} 16 | public function stats() {} 17 | public function destroy() {} 18 | } 19 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Table-Row.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\Table; 8 | class Row implements \ArrayAccess { 9 | 10 | public $key; 11 | public $value; 12 | 13 | public function offsetExists($offset) {} 14 | public function offsetGet($offset) {} 15 | public function offsetSet($offset, $value) {} 16 | public function offsetUnset($offset) {} 17 | public function __destruct() {} 18 | } 19 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-WebSocket-Frame.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\WebSocket; 8 | class Frame { 9 | 10 | public $fd = 0; 11 | public $data = ''; 12 | public $opcode = 1; 13 | public $flags = 1; 14 | public $finish; 15 | 16 | public function __toString() {} 17 | static public function pack($data, $opcode = null, $flags = null) {} 18 | static public function unpack($data) {} 19 | } 20 | -------------------------------------------------------------------------------- /php_docs_code/swoole/swoole_memory_pool.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | class swoole_memory_pool { 8 | 9 | const TYPE_RING = 1; 10 | const TYPE_GLOBAL = 2; 11 | const TYPE_FIXED = 0; 12 | const TYPE_MALLOC = 3; 13 | const TYPE_EMALLOC = 4; 14 | 15 | public function __construct($size, $type, $slice_size = null, $shared = null) {} 16 | public function __destruct() {} 17 | public function alloc($size = null) {} 18 | } 19 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Memory-Pool.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\Memory; 8 | class Pool { 9 | 10 | const TYPE_RING = 1; 11 | const TYPE_GLOBAL = 2; 12 | const TYPE_FIXED = 0; 13 | const TYPE_MALLOC = 3; 14 | const TYPE_EMALLOC = 4; 15 | 16 | public function __construct($size, $type, $slice_size = null, $shared = null) {} 17 | public function __destruct() {} 18 | public function alloc($size = null) {} 19 | } 20 | -------------------------------------------------------------------------------- /php_docs_code/swoole/swoole_atomic.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | class swoole_atomic { 8 | 9 | 10 | public function __construct($value = null) {} 11 | public function add($add_value = null) {} 12 | public function sub($sub_value = null) {} 13 | public function get() {} 14 | public function set($value) {} 15 | public function wait($timeout = null) {} 16 | public function wakeup($count = null) {} 17 | public function cmpset($cmp_value, $new_value) {} 18 | } 19 | -------------------------------------------------------------------------------- /reflection-code.php: -------------------------------------------------------------------------------- 1 | 7 | */ 8 | 9 | define('APP_PATH', __DIR__ . '/'); 10 | define('LIBRARY_PATH', APP_PATH . 'library/'); 11 | define('VIEW_PATH', LIBRARY_PATH . 'view/'); 12 | 13 | //获取文档 14 | $class_name = isset($argv[1]) ? $argv[1] : ''; 15 | if(!$class_name) { 16 | include VIEW_PATH . 'help.php'; 17 | } else { 18 | include LIBRARY_PATH . 'model/parse.php'; 19 | echo Model_Parse::showDoc($class_name); 20 | } 21 | 22 | -------------------------------------------------------------------------------- /php_docs_code/co-/co-channel.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace co; 8 | class channel { 9 | 10 | public $capacity = 0; 11 | public $errCode = 0; 12 | 13 | public function __construct($size = null) {} 14 | public function push($data, $timeout = null) {} 15 | public function pop($timeout = null) {} 16 | public function isEmpty() {} 17 | public function isFull() {} 18 | public function close() {} 19 | public function stats() {} 20 | public function length() {} 21 | } 22 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Atomic.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole; 8 | class Atomic { 9 | 10 | 11 | public function __construct($value = null) {} 12 | public function add($add_value = null) {} 13 | public function sub($sub_value = null) {} 14 | public function get() {} 15 | public function set($value) {} 16 | public function wait($timeout = null) {} 17 | public function wakeup($count = null) {} 18 | public function cmpset($cmp_value, $new_value) {} 19 | } 20 | -------------------------------------------------------------------------------- /php_docs_code/swoole/swoole_websocket_closeframe.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | class swoole_websocket_closeframe extends \Swoole\WebSocket\Frame { 8 | 9 | public $fd = 0; 10 | public $data = ''; 11 | public $flags = 1; 12 | public $finish; 13 | public $opcode = 8; 14 | public $code = 1000; 15 | public $reason = ''; 16 | 17 | public function __toString() {} 18 | static public function pack($data, $opcode = null, $flags = null) {} 19 | static public function unpack($data) {} 20 | } 21 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-ObjectProxy.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole; 8 | class ObjectProxy { 9 | 10 | protected $__object; 11 | 12 | public function __construct($object) {} 13 | public function __getObject() {} 14 | public function __get($name) {} 15 | public function __set($name, $value) {} 16 | public function __isset($name) {} 17 | public function __unset($name) {} 18 | public function __call($name, $arguments) {} 19 | public function __invoke($arguments = null) {} 20 | } 21 | -------------------------------------------------------------------------------- /php_docs_code/yar/yar-server.php: -------------------------------------------------------------------------------- 1 | 7 | */ 8 | class Yar_Server { 9 | 10 | protected $_executor; 11 | 12 | 13 | /** 14 | * 创建一个HTTP RPC Server 15 | * 16 | * @param Object $obj 一个对象实例, 这个对象的所有公开方法都会被注册为服务函数. 17 | */ 18 | public function __construct($obj, $protocol = null) {} 19 | 20 | /** 21 | * 启动HTTP RPC Server 22 | * 23 | * @return boolean 24 | */ 25 | public function handle() {} 26 | 27 | } 28 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Coroutine-Channel.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\Coroutine; 8 | class Channel { 9 | 10 | public $capacity = 0; 11 | public $errCode = 0; 12 | 13 | public function __construct($size = null) {} 14 | public function push($data, $timeout = null) {} 15 | public function pop($timeout = null) {} 16 | public function isEmpty() {} 17 | public function isFull() {} 18 | public function close() {} 19 | public function stats() {} 20 | public function length() {} 21 | } 22 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-WebSocket-CloseFrame.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\WebSocket; 8 | class CloseFrame extends \Swoole\WebSocket\Frame { 9 | 10 | public $fd = 0; 11 | public $data = ''; 12 | public $flags = 1; 13 | public $finish; 14 | public $opcode = 8; 15 | public $code = 1000; 16 | public $reason = ''; 17 | 18 | public function __toString() {} 19 | static public function pack($data, $opcode = null, $flags = null) {} 20 | static public function unpack($data) {} 21 | } 22 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-ConnectionPool.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole; 8 | class ConnectionPool { 9 | 10 | const DEFAULT_SIZE = 64; 11 | protected $pool; 12 | protected $constructor; 13 | protected $size; 14 | protected $num; 15 | protected $proxy; 16 | 17 | public function __construct($constructor, $size = null, $proxy = null) {} 18 | public function fill() {} 19 | public function get() {} 20 | public function put($connection) {} 21 | public function close() {} 22 | protected function make() {} 23 | } 24 | -------------------------------------------------------------------------------- /php_docs_code/co-/co-fastcgi-client.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace co\fastcgi; 8 | class client { 9 | 10 | protected $af; 11 | protected $host; 12 | protected $port; 13 | protected $ssl; 14 | protected $socket; 15 | 16 | public function __construct($host, $port = null, $ssl = null) {} 17 | public function execute($request, $timeout = null) {} 18 | static public function parseUrl($url) {} 19 | static public function call($url, $path, $data = null, $timeout = null) {} 20 | protected function ioException($errno = null) {} 21 | } 22 | -------------------------------------------------------------------------------- /php_docs_code/swoole/swoole_timer.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | class swoole_timer { 8 | 9 | 10 | static public function set($settings) {} 11 | static public function tick($ms, $callback, $params = null) {} 12 | static public function after($ms, $callback, $params = null) {} 13 | static public function exists($timer_id) {} 14 | static public function info($timer_id) {} 15 | static public function stats() {} 16 | static public function list() {} 17 | static public function clear($timer_id) {} 18 | static public function clearAll() {} 19 | } 20 | -------------------------------------------------------------------------------- /php_docs_code/co-/co-mysql-statement.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace co\mysql; 8 | class statement { 9 | 10 | public $id = 0; 11 | public $affected_rows = 0; 12 | public $insert_id = 0; 13 | public $error = ''; 14 | public $errno = 0; 15 | 16 | public function execute($params = null, $timeout = null) {} 17 | public function fetch($timeout = null) {} 18 | public function fetchAll($timeout = null) {} 19 | public function nextResult($timeout = null) {} 20 | public function recv($timeout = null) {} 21 | public function close() {} 22 | } 23 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Timer.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole; 8 | class Timer { 9 | 10 | 11 | static public function set($settings) {} 12 | static public function tick($ms, $callback, $params = null) {} 13 | static public function after($ms, $callback, $params = null) {} 14 | static public function exists($timer_id) {} 15 | static public function info($timer_id) {} 16 | static public function stats() {} 17 | static public function list() {} 18 | static public function clear($timer_id) {} 19 | static public function clearAll() {} 20 | } 21 | -------------------------------------------------------------------------------- /php_docs_code/co-/co-server.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace co; 8 | class server { 9 | 10 | public $host = ''; 11 | public $port = 0; 12 | public $type = 2; 13 | public $fd = -1; 14 | public $errCode = 0; 15 | public $setting = array ( 16 | ); 17 | protected $running = false; 18 | protected $fn; 19 | protected $socket; 20 | 21 | public function __construct($host, $port = null, $ssl = null, $reuse_port = null) {} 22 | public function set($setting) {} 23 | public function handle($fn) {} 24 | public function shutdown() {} 25 | public function start() {} 26 | } 27 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Database-MysqliPool.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\Database; 8 | class MysqliPool extends \Swoole\ConnectionPool { 9 | 10 | const DEFAULT_SIZE = 64; 11 | protected $config; 12 | protected $pool; 13 | protected $constructor; 14 | protected $size; 15 | protected $num; 16 | protected $proxy; 17 | 18 | public function __construct($config, $size = null) {} 19 | public function fill() {} 20 | public function get() {} 21 | public function put($connection) {} 22 | public function close() {} 23 | protected function make() {} 24 | } 25 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Database-PDOPool.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\Database; 8 | class PDOPool extends \Swoole\ConnectionPool { 9 | 10 | const DEFAULT_SIZE = 64; 11 | protected $size = 64; 12 | protected $config; 13 | protected $pool; 14 | protected $constructor; 15 | protected $num; 16 | protected $proxy; 17 | 18 | public function __construct($config, $size = null) {} 19 | public function fill() {} 20 | public function get() {} 21 | public function put($connection) {} 22 | public function close() {} 23 | protected function make() {} 24 | } 25 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Database-RedisPool.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\Database; 8 | class RedisPool extends \Swoole\ConnectionPool { 9 | 10 | const DEFAULT_SIZE = 64; 11 | protected $config; 12 | protected $pool; 13 | protected $constructor; 14 | protected $size; 15 | protected $num; 16 | protected $proxy; 17 | 18 | public function __construct($config, $size = null) {} 19 | public function fill() {} 20 | public function get() {} 21 | public function put($connection) {} 22 | public function close() {} 23 | protected function make() {} 24 | } 25 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Coroutine-FastCGI-Client.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\Coroutine\FastCGI; 8 | class Client { 9 | 10 | protected $af; 11 | protected $host; 12 | protected $port; 13 | protected $ssl; 14 | protected $socket; 15 | 16 | public function __construct($host, $port = null, $ssl = null) {} 17 | public function execute($request, $timeout = null) {} 18 | static public function parseUrl($url) {} 19 | static public function call($url, $path, $data = null, $timeout = null) {} 20 | protected function ioException($errno = null) {} 21 | } 22 | -------------------------------------------------------------------------------- /php_docs_code/swoole/swoole_buffer.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | class swoole_buffer { 8 | 9 | public $capacity = 128; 10 | public $length = 0; 11 | 12 | public function __construct($size = null) {} 13 | public function __destruct() {} 14 | public function __toString() {} 15 | public function substr($offset, $length = null, $remove = null) {} 16 | public function write($offset, $data) {} 17 | public function read($offset, $length) {} 18 | public function append($data) {} 19 | public function expand($size) {} 20 | public function recycle() {} 21 | public function clear() {} 22 | } 23 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Database-ObjectProxy.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\Database; 8 | class ObjectProxy extends \Swoole\ObjectProxy { 9 | 10 | protected $__object; 11 | 12 | public function __clone() {} 13 | public function __construct($object) {} 14 | public function __getObject() {} 15 | public function __get($name) {} 16 | public function __set($name, $value) {} 17 | public function __isset($name) {} 18 | public function __unset($name) {} 19 | public function __call($name, $arguments) {} 20 | public function __invoke($arguments = null) {} 21 | } 22 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Coroutine-MySQL-Statement.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\Coroutine\MySQL; 8 | class Statement { 9 | 10 | public $id = 0; 11 | public $affected_rows = 0; 12 | public $insert_id = 0; 13 | public $error = ''; 14 | public $errno = 0; 15 | 16 | public function execute($params = null, $timeout = null) {} 17 | public function fetch($timeout = null) {} 18 | public function fetchAll($timeout = null) {} 19 | public function nextResult($timeout = null) {} 20 | public function recv($timeout = null) {} 21 | public function close() {} 22 | } 23 | -------------------------------------------------------------------------------- /php_docs_code/swoole/swoole_lock.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | class swoole_lock { 8 | 9 | const FILELOCK = 2; 10 | const MUTEX = 3; 11 | const SEM = 4; 12 | const RWLOCK = 1; 13 | const SPINLOCK = 5; 14 | public $errCode = 0; 15 | 16 | public function __construct($type = null, $filename = null) {} 17 | public function __destruct() {} 18 | public function lock() {} 19 | public function lockwait($timeout = null) {} 20 | public function trylock() {} 21 | public function lock_read() {} 22 | public function trylock_read() {} 23 | public function unlock() {} 24 | public function destroy() {} 25 | } 26 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Buffer.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole; 8 | class Buffer { 9 | 10 | public $capacity = 128; 11 | public $length = 0; 12 | 13 | public function __construct($size = null) {} 14 | public function __destruct() {} 15 | public function __toString() {} 16 | public function substr($offset, $length = null, $remove = null) {} 17 | public function write($offset, $data) {} 18 | public function read($offset, $length) {} 19 | public function append($data) {} 20 | public function expand($size) {} 21 | public function recycle() {} 22 | public function clear() {} 23 | } 24 | -------------------------------------------------------------------------------- /php_docs_code/co-/co-http-server.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace co\http; 8 | final class server { 9 | 10 | public $fd = -1; 11 | public $host; 12 | public $port = -1; 13 | public $ssl = false; 14 | public $settings; 15 | public $errCode = 0; 16 | public $errMsg = ''; 17 | 18 | public function __construct($host, $port = null, $ssl = null, $reuse_port = null) {} 19 | public function __destruct() {} 20 | public function set($settings) {} 21 | public function handle($pattern, $callback) {} 22 | public function onAccept() {} 23 | public function start() {} 24 | public function shutdown() {} 25 | } 26 | -------------------------------------------------------------------------------- /php_docs_code/swoole/swoole_async.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | class swoole_async { 8 | 9 | 10 | static public function read($filename, $callback, $chunk_size = null, $offset = null) {} 11 | static public function write($filename, $content, $offset = null, $callback = null) {} 12 | static public function readFile($filename, $callback) {} 13 | static public function writeFile($filename, $content, $callback = null, $flags = null) {} 14 | static public function dnsLookup($hostname, $callback) {} 15 | static public function set($settings) {} 16 | static public function exec($command, $callback) {} 17 | } 18 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Coroutine-Server.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\Coroutine; 8 | class Server { 9 | 10 | public $host = ''; 11 | public $port = 0; 12 | public $type = 2; 13 | public $fd = -1; 14 | public $errCode = 0; 15 | public $setting = array ( 16 | ); 17 | protected $running = false; 18 | protected $fn; 19 | protected $socket; 20 | 21 | public function __construct($host, $port = null, $ssl = null, $reuse_port = null) {} 22 | public function set($setting) {} 23 | public function handle($fn) {} 24 | public function shutdown() {} 25 | public function start() {} 26 | } 27 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Lock.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole; 8 | class Lock { 9 | 10 | const FILELOCK = 2; 11 | const MUTEX = 3; 12 | const SEM = 4; 13 | const RWLOCK = 1; 14 | const SPINLOCK = 5; 15 | public $errCode = 0; 16 | 17 | public function __construct($type = null, $filename = null) {} 18 | public function __destruct() {} 19 | public function lock() {} 20 | public function lockwait($timeout = null) {} 21 | public function trylock() {} 22 | public function lock_read() {} 23 | public function trylock_read() {} 24 | public function unlock() {} 25 | public function destroy() {} 26 | } 27 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Async.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole; 8 | class Async { 9 | 10 | 11 | static public function read($filename, $callback, $chunk_size = null, $offset = null) {} 12 | static public function write($filename, $content, $offset = null, $callback = null) {} 13 | static public function readFile($filename, $callback) {} 14 | static public function writeFile($filename, $content, $callback = null, $flags = null) {} 15 | static public function dnsLookup($hostname, $callback) {} 16 | static public function set($settings) {} 17 | static public function exec($command, $callback) {} 18 | } 19 | -------------------------------------------------------------------------------- /php_docs_code/swoole/swoole_connection_iterator.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | class swoole_connection_iterator implements \Iterator,\Traversable,\ArrayAccess,\Countable { 8 | 9 | 10 | public function __construct() {} 11 | public function __destruct() {} 12 | public function rewind() {} 13 | public function next() {} 14 | public function current() {} 15 | public function key() {} 16 | public function valid() {} 17 | public function count() {} 18 | public function offsetExists($fd) {} 19 | public function offsetGet($fd) {} 20 | public function offsetSet($fd, $value) {} 21 | public function offsetUnset($fd) {} 22 | } 23 | -------------------------------------------------------------------------------- /php_docs_code/swoole/swoole_process_pool.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | class swoole_process_pool { 8 | 9 | public $master_pid = -1; 10 | public $workers; 11 | 12 | public function __construct($worker_num, $ipc_type = null, $msgqueue_key = null, $enable_coroutine = null) {} 13 | public function __destruct() {} 14 | public function set($settings) {} 15 | public function on($event_name, $callback) {} 16 | public function getProcess($worker_id = null) {} 17 | public function listen($host, $port = null, $backlog = null) {} 18 | public function write($data) {} 19 | public function start() {} 20 | public function shutdown() {} 21 | } 22 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Connection-Iterator.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\Connection; 8 | class Iterator implements \Iterator,\Traversable,\ArrayAccess,\Countable { 9 | 10 | 11 | public function __construct() {} 12 | public function __destruct() {} 13 | public function rewind() {} 14 | public function next() {} 15 | public function current() {} 16 | public function key() {} 17 | public function valid() {} 18 | public function count() {} 19 | public function offsetExists($fd) {} 20 | public function offsetGet($fd) {} 21 | public function offsetSet($fd, $value) {} 22 | public function offsetUnset($fd) {} 23 | } 24 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Coroutine-Http-Server.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\Coroutine\Http; 8 | final class Server { 9 | 10 | public $fd = -1; 11 | public $host; 12 | public $port = -1; 13 | public $ssl = false; 14 | public $settings; 15 | public $errCode = 0; 16 | public $errMsg = ''; 17 | 18 | public function __construct($host, $port = null, $ssl = null, $reuse_port = null) {} 19 | public function __destruct() {} 20 | public function set($settings) {} 21 | public function handle($pattern, $callback) {} 22 | public function onAccept() {} 23 | public function start() {} 24 | public function shutdown() {} 25 | } 26 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-FastCGI-Message.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\FastCGI; 8 | class Message { 9 | 10 | protected $params = array ( 11 | ); 12 | protected $body = ''; 13 | protected $error = ''; 14 | 15 | public function getParam($name) {} 16 | public function withParam($name, $value) {} 17 | public function withoutParam($name) {} 18 | public function getParams() {} 19 | public function withParams($params) {} 20 | public function withAddedParams($params) {} 21 | public function getBody() {} 22 | public function withBody($body) {} 23 | public function getError() {} 24 | public function withError($error) {} 25 | } 26 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Process-Pool.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\Process; 8 | class Pool { 9 | 10 | public $master_pid = -1; 11 | public $workers; 12 | 13 | public function __construct($worker_num, $ipc_type = null, $msgqueue_key = null, $enable_coroutine = null) {} 14 | public function __destruct() {} 15 | public function set($settings) {} 16 | public function on($event_name, $callback) {} 17 | public function getProcess($worker_id = null) {} 18 | public function listen($host, $port = null, $backlog = null) {} 19 | public function write($data) {} 20 | public function start() {} 21 | public function shutdown() {} 22 | } 23 | -------------------------------------------------------------------------------- /php_docs_code/swoole/swoole_error.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | class swoole_error extends \Error implements \Throwable { 8 | 9 | protected $message = ''; 10 | protected $code = 0; 11 | protected $file; 12 | protected $line; 13 | 14 | private function __clone() {} 15 | public function __construct($message = null, $code = null, $previous = null) {} 16 | public function __wakeup() {} 17 | public function getMessage() {} 18 | public function getCode() {} 19 | public function getFile() {} 20 | public function getLine() {} 21 | public function getTrace() {} 22 | public function getPrevious() {} 23 | public function getTraceAsString() {} 24 | public function __toString() {} 25 | } 26 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Process-Manager.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\Process; 8 | class Manager { 9 | 10 | protected $pool; 11 | protected $ipcType = 0; 12 | protected $msgQueueKey = 0; 13 | protected $startFuncMap = array ( 14 | ); 15 | 16 | public function __construct($ipcType = null, $msgQueueKey = null) {} 17 | public function add($func, $enableCoroutine = null) {} 18 | public function addBatch($workerNum, $func, $enableCoroutine = null) {} 19 | public function start() {} 20 | public function setIPCType($ipcType) {} 21 | public function getIPCType() {} 22 | public function setMsgQueueKey($msgQueueKey) {} 23 | public function getMsgQueueKey() {} 24 | } 25 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Error.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole; 8 | class Error extends \Error implements \Throwable { 9 | 10 | protected $message = ''; 11 | protected $code = 0; 12 | protected $file; 13 | protected $line; 14 | 15 | private function __clone() {} 16 | public function __construct($message = null, $code = null, $previous = null) {} 17 | public function __wakeup() {} 18 | public function getMessage() {} 19 | public function getCode() {} 20 | public function getFile() {} 21 | public function getLine() {} 22 | public function getTrace() {} 23 | public function getPrevious() {} 24 | public function getTraceAsString() {} 25 | public function __toString() {} 26 | } 27 | -------------------------------------------------------------------------------- /php_docs_code/swoole/swoole_exception.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | class swoole_exception extends \Exception implements \Throwable { 8 | 9 | protected $message = ''; 10 | protected $code = 0; 11 | protected $file; 12 | protected $line; 13 | 14 | private function __clone() {} 15 | public function __construct($message = null, $code = null, $previous = null) {} 16 | public function __wakeup() {} 17 | public function getMessage() {} 18 | public function getCode() {} 19 | public function getFile() {} 20 | public function getLine() {} 21 | public function getTrace() {} 22 | public function getPrevious() {} 23 | public function getTraceAsString() {} 24 | public function __toString() {} 25 | } 26 | -------------------------------------------------------------------------------- /php_docs_code/yaf/yaf-route-interface.php: -------------------------------------------------------------------------------- 1 | 9 | */ 10 | abstract class Yaf_Route_Interface { 11 | 12 | 13 | /** 14 | * route a request 15 | * 16 | * @param Yaf_Request_Abstract $request A Yaf_Request_Abstract instance. 17 | * 18 | * @return bool 19 | */ 20 | abstract public function route($request); 21 | 22 | /** 23 | * 将指定路由规则组合成一个url 24 | * 25 | * @param array $info 26 | * @param array $query 27 | * 28 | * @return string 29 | */ 30 | abstract public function assemble($info, $query = null); 31 | 32 | } 33 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Exception.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole; 8 | class Exception extends \Exception implements \Throwable { 9 | 10 | protected $message = ''; 11 | protected $code = 0; 12 | protected $file; 13 | protected $line; 14 | 15 | private function __clone() {} 16 | public function __construct($message = null, $code = null, $previous = null) {} 17 | public function __wakeup() {} 18 | public function getMessage() {} 19 | public function getCode() {} 20 | public function getFile() {} 21 | public function getLine() {} 22 | public function getTrace() {} 23 | public function getPrevious() {} 24 | public function getTraceAsString() {} 25 | public function __toString() {} 26 | } 27 | -------------------------------------------------------------------------------- /php_docs_code/swoole/swoole-process-processmanager.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace swoole\process; 8 | class processmanager { 9 | 10 | protected $pool; 11 | protected $ipcType = 0; 12 | protected $msgQueueKey = 0; 13 | protected $startFuncMap = array ( 14 | ); 15 | 16 | public function __construct($ipcType = null, $msgQueueKey = null) {} 17 | public function add($func, $enableCoroutine = null) {} 18 | public function addBatch($workerNum, $func, $enableCoroutine = null) {} 19 | public function start() {} 20 | public function setIPCType($ipcType) {} 21 | public function getIPCType() {} 22 | public function setMsgQueueKey($msgQueueKey) {} 23 | public function getMsgQueueKey() {} 24 | } 25 | -------------------------------------------------------------------------------- /conf/fetch.php: -------------------------------------------------------------------------------- 1 | 6 | * @since 2017年2月21日 7 | */ 8 | 9 | return array( 10 | 11 | // 函数包含 12 | 'funcs' => array( 13 | 'swoole', 14 | ), 15 | 16 | // 单类 17 | 'eq' => array( 18 | // redis在PHPStorm中存在,暂不处理 19 | // 'redis', 20 | 'yac', 21 | 'co', 22 | ), 23 | 24 | // 类前缀 25 | 'prefix' => array( 26 | 'swoole', 27 | 'co\\', 28 | ), 29 | 30 | 31 | // 从PHP手册获取,确保 http://svn.php.net/repository/phpdoc/zh/trunk/reference/ 存在 32 | 'manual' => array( 33 | 'swoole', 34 | 'yar', 35 | 'yaf', 36 | 'yaconf', 37 | 38 | // memcached在PHPStorm中存在,暂不处理 39 | // 'memcached', 40 | ) 41 | ); 42 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Client-Exception.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\Client; 8 | class Exception extends \Swoole\Exception implements \Throwable,\Stringable { 9 | 10 | protected $message = ''; 11 | protected $code = 0; 12 | protected $file; 13 | protected $line; 14 | 15 | public function __construct($message = null, $code = null, $previous = null) {} 16 | public function __wakeup() {} 17 | public function getMessage() {} 18 | public function getCode() {} 19 | public function getFile() {} 20 | public function getLine() {} 21 | public function getTrace() {} 22 | public function getPrevious() {} 23 | public function getTraceAsString() {} 24 | public function __toString() {} 25 | } 26 | -------------------------------------------------------------------------------- /php_docs_code/swoole/swoole_event.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | class swoole_event { 8 | 9 | 10 | static public function add($fd, $read_callback, $write_callback = null, $events = null) {} 11 | static public function del($fd) {} 12 | static public function set($fd, $read_callback = null, $write_callback = null, $events = null) {} 13 | static public function isset($fd, $events = null) {} 14 | static public function dispatch() {} 15 | static public function defer($callback) {} 16 | static public function cycle($callback, $before = null) {} 17 | static public function write($fd, $data) {} 18 | static public function wait() {} 19 | static public function rshutdown() {} 20 | static public function exit() {} 21 | } 22 | -------------------------------------------------------------------------------- /php_docs_code/co-/co-http2-client-exception.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace co\http2\client; 8 | class exception extends \Swoole\Exception implements \Throwable,\Stringable { 9 | 10 | protected $message = ''; 11 | protected $code = 0; 12 | protected $file; 13 | protected $line; 14 | 15 | public function __construct($message = null, $code = null, $previous = null) {} 16 | public function __wakeup() {} 17 | public function getMessage() {} 18 | public function getCode() {} 19 | public function getFile() {} 20 | public function getLine() {} 21 | public function getTrace() {} 22 | public function getPrevious() {} 23 | public function getTraceAsString() {} 24 | public function __toString() {} 25 | } 26 | -------------------------------------------------------------------------------- /php_docs_code/co-/co-mysql-exception.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace co\mysql; 8 | class exception extends \Swoole\Exception implements \Throwable { 9 | 10 | protected $message = ''; 11 | protected $code = 0; 12 | protected $file; 13 | protected $line; 14 | 15 | private function __clone() {} 16 | public function __construct($message = null, $code = null, $previous = null) {} 17 | public function __wakeup() {} 18 | public function getMessage() {} 19 | public function getCode() {} 20 | public function getFile() {} 21 | public function getLine() {} 22 | public function getTrace() {} 23 | public function getPrevious() {} 24 | public function getTraceAsString() {} 25 | public function __toString() {} 26 | } 27 | -------------------------------------------------------------------------------- /php_docs_code/swoole/swoole_mysql_exception.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | class swoole_mysql_exception extends \Swoole\Exception implements \Throwable { 8 | 9 | protected $message = ''; 10 | protected $code = 0; 11 | protected $file; 12 | protected $line; 13 | 14 | private function __clone() {} 15 | public function __construct($message = null, $code = null, $previous = null) {} 16 | public function __wakeup() {} 17 | public function getMessage() {} 18 | public function getCode() {} 19 | public function getFile() {} 20 | public function getLine() {} 21 | public function getTrace() {} 22 | public function getPrevious() {} 23 | public function getTraceAsString() {} 24 | public function __toString() {} 25 | } 26 | -------------------------------------------------------------------------------- /php_docs_code/co-/co-coroutine-curl-exception.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace co\coroutine\curl; 8 | class exception extends \Swoole\Exception implements \Throwable,\Stringable { 9 | 10 | protected $message = ''; 11 | protected $code = 0; 12 | protected $file; 13 | protected $line; 14 | 15 | public function __construct($message = null, $code = null, $previous = null) {} 16 | public function __wakeup() {} 17 | public function getMessage() {} 18 | public function getCode() {} 19 | public function getFile() {} 20 | public function getLine() {} 21 | public function getTrace() {} 22 | public function getPrevious() {} 23 | public function getTraceAsString() {} 24 | public function __toString() {} 25 | } 26 | -------------------------------------------------------------------------------- /php_docs_code/co-/co-fastcgi-client-exception.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace co\fastcgi\client; 8 | class exception extends \Swoole\Exception implements \Throwable,\Stringable { 9 | 10 | protected $message = ''; 11 | protected $code = 0; 12 | protected $file; 13 | protected $line; 14 | 15 | public function __construct($message = null, $code = null, $previous = null) {} 16 | public function __wakeup() {} 17 | public function getMessage() {} 18 | public function getCode() {} 19 | public function getFile() {} 20 | public function getLine() {} 21 | public function getTrace() {} 22 | public function getPrevious() {} 23 | public function getTraceAsString() {} 24 | public function __toString() {} 25 | } 26 | -------------------------------------------------------------------------------- /php_docs_code/co-/co-socket-exception.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace co\socket; 8 | class exception extends \Swoole\Exception implements \Throwable { 9 | 10 | protected $message = ''; 11 | protected $code = 0; 12 | protected $file; 13 | protected $line; 14 | 15 | private function __clone() {} 16 | public function __construct($message = null, $code = null, $previous = null) {} 17 | public function __wakeup() {} 18 | public function getMessage() {} 19 | public function getCode() {} 20 | public function getFile() {} 21 | public function getLine() {} 22 | public function getTrace() {} 23 | public function getPrevious() {} 24 | public function getTraceAsString() {} 25 | public function __toString() {} 26 | } 27 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Event.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole; 8 | class Event { 9 | 10 | 11 | static public function add($fd, $read_callback, $write_callback = null, $events = null) {} 12 | static public function del($fd) {} 13 | static public function set($fd, $read_callback = null, $write_callback = null, $events = null) {} 14 | static public function isset($fd, $events = null) {} 15 | static public function dispatch() {} 16 | static public function defer($callback) {} 17 | static public function cycle($callback, $before = null) {} 18 | static public function write($fd, $data) {} 19 | static public function wait() {} 20 | static public function rshutdown() {} 21 | static public function exit() {} 22 | } 23 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Curl-Exception.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\Curl; 8 | class Exception extends \Swoole\Exception implements \Throwable { 9 | 10 | protected $message = ''; 11 | protected $code = 0; 12 | protected $file; 13 | protected $line; 14 | 15 | private function __clone() {} 16 | public function __construct($message = null, $code = null, $previous = null) {} 17 | public function __wakeup() {} 18 | public function getMessage() {} 19 | public function getCode() {} 20 | public function getFile() {} 21 | public function getLine() {} 22 | public function getTrace() {} 23 | public function getPrevious() {} 24 | public function getTraceAsString() {} 25 | public function __toString() {} 26 | } 27 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-MySQL-Exception.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\MySQL; 8 | class Exception extends \Swoole\Exception implements \Throwable { 9 | 10 | protected $message = ''; 11 | protected $code = 0; 12 | protected $file; 13 | protected $line; 14 | 15 | private function __clone() {} 16 | public function __construct($message = null, $code = null, $previous = null) {} 17 | public function __wakeup() {} 18 | public function getMessage() {} 19 | public function getCode() {} 20 | public function getFile() {} 21 | public function getLine() {} 22 | public function getTrace() {} 23 | public function getPrevious() {} 24 | public function getTraceAsString() {} 25 | public function __toString() {} 26 | } 27 | -------------------------------------------------------------------------------- /php_docs_code/co-/co-http-client-exception.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace co\http\client; 8 | class exception extends \Swoole\Exception implements \Throwable { 9 | 10 | protected $message = ''; 11 | protected $code = 0; 12 | protected $file; 13 | protected $line; 14 | 15 | private function __clone() {} 16 | public function __construct($message = null, $code = null, $previous = null) {} 17 | public function __wakeup() {} 18 | public function getMessage() {} 19 | public function getCode() {} 20 | public function getFile() {} 21 | public function getLine() {} 22 | public function getTrace() {} 23 | public function getPrevious() {} 24 | public function getTraceAsString() {} 25 | public function __toString() {} 26 | } 27 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Coroutine-Curl-Exception.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\Coroutine\Curl; 8 | class Exception extends \Swoole\Exception implements \Throwable,\Stringable { 9 | 10 | protected $message = ''; 11 | protected $code = 0; 12 | protected $file; 13 | protected $line; 14 | 15 | public function __construct($message = null, $code = null, $previous = null) {} 16 | public function __wakeup() {} 17 | public function getMessage() {} 18 | public function getCode() {} 19 | public function getFile() {} 20 | public function getLine() {} 21 | public function getTrace() {} 22 | public function getPrevious() {} 23 | public function getTraceAsString() {} 24 | public function __toString() {} 25 | } 26 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Exception-ArrayKeyNotExists.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\Exception; 8 | class ArrayKeyNotExists extends \RuntimeException implements \Throwable,\Stringable { 9 | 10 | protected $message = ''; 11 | protected $code = 0; 12 | protected $file; 13 | protected $line; 14 | 15 | public function __construct($message = null, $code = null, $previous = null) {} 16 | public function __wakeup() {} 17 | public function getMessage() {} 18 | public function getCode() {} 19 | public function getFile() {} 20 | public function getLine() {} 21 | public function getTrace() {} 22 | public function getPrevious() {} 23 | public function getTraceAsString() {} 24 | public function __toString() {} 25 | } 26 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Database-MysqliException.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\Database; 8 | class MysqliException extends \Exception implements \Throwable { 9 | 10 | protected $message = ''; 11 | protected $code = 0; 12 | protected $file; 13 | protected $line; 14 | 15 | private function __clone() {} 16 | public function __construct($message = null, $code = null, $previous = null) {} 17 | public function __wakeup() {} 18 | public function getMessage() {} 19 | public function getCode() {} 20 | public function getFile() {} 21 | public function getLine() {} 22 | public function getTrace() {} 23 | public function getPrevious() {} 24 | public function getTraceAsString() {} 25 | public function __toString() {} 26 | } 27 | -------------------------------------------------------------------------------- /php_docs_code/swoole/swoole_redis.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | class swoole_redis { 8 | 9 | const STATE_CONNECT = 0; 10 | const STATE_READY = 1; 11 | const STATE_WAIT_RESULT = 2; 12 | const STATE_SUBSCRIBE = 3; 13 | const STATE_CLOSED = 4; 14 | public $onConnect; 15 | public $onClose; 16 | public $onMessage; 17 | public $setting; 18 | public $host; 19 | public $port; 20 | public $sock; 21 | public $errCode; 22 | public $errMsg; 23 | 24 | public function __construct($setting = null) {} 25 | public function __destruct() {} 26 | public function on($event_name, $callback) {} 27 | public function connect($host, $port, $callback) {} 28 | public function close() {} 29 | public function getState() {} 30 | public function __call($command, $params) {} 31 | } 32 | -------------------------------------------------------------------------------- /php_docs_code/swoole/swoole_server_port.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | class swoole_server_port { 8 | 9 | private $onConnect; 10 | private $onReceive; 11 | private $onClose; 12 | private $onPacket; 13 | private $onBufferFull; 14 | private $onBufferEmpty; 15 | private $onRequest; 16 | private $onHandShake; 17 | private $onOpen; 18 | private $onMessage; 19 | public $host; 20 | public $port = 0; 21 | public $type = 0; 22 | public $sock = -1; 23 | public $setting; 24 | public $connections; 25 | 26 | private function __construct() {} 27 | public function __destruct() {} 28 | public function set($settings) {} 29 | public function on($event_name, $callback) {} 30 | public function getCallback($event_name) {} 31 | public function getSocket() {} 32 | } 33 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Coroutine-Http2-Client-Exception.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\Coroutine\Http2\Client; 8 | class Exception extends \Swoole\Exception implements \Throwable,\Stringable { 9 | 10 | protected $message = ''; 11 | protected $code = 0; 12 | protected $file; 13 | protected $line; 14 | 15 | public function __construct($message = null, $code = null, $previous = null) {} 16 | public function __wakeup() {} 17 | public function getMessage() {} 18 | public function getCode() {} 19 | public function getFile() {} 20 | public function getLine() {} 21 | public function getTrace() {} 22 | public function getPrevious() {} 23 | public function getTraceAsString() {} 24 | public function __toString() {} 25 | } 26 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Coroutine-MySQL-Exception.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\Coroutine\MySQL; 8 | class Exception extends \Swoole\Exception implements \Throwable { 9 | 10 | protected $message = ''; 11 | protected $code = 0; 12 | protected $file; 13 | protected $line; 14 | 15 | private function __clone() {} 16 | public function __construct($message = null, $code = null, $previous = null) {} 17 | public function __wakeup() {} 18 | public function getMessage() {} 19 | public function getCode() {} 20 | public function getFile() {} 21 | public function getLine() {} 22 | public function getTrace() {} 23 | public function getPrevious() {} 24 | public function getTraceAsString() {} 25 | public function __toString() {} 26 | } 27 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Coroutine-FastCGI-Client-Exception.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\Coroutine\FastCGI\Client; 8 | class Exception extends \Swoole\Exception implements \Throwable,\Stringable { 9 | 10 | protected $message = ''; 11 | protected $code = 0; 12 | protected $file; 13 | protected $line; 14 | 15 | public function __construct($message = null, $code = null, $previous = null) {} 16 | public function __wakeup() {} 17 | public function getMessage() {} 18 | public function getCode() {} 19 | public function getFile() {} 20 | public function getLine() {} 21 | public function getTrace() {} 22 | public function getPrevious() {} 23 | public function getTraceAsString() {} 24 | public function __toString() {} 25 | } 26 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Coroutine-Socket-Exception.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\Coroutine\Socket; 8 | class Exception extends \Swoole\Exception implements \Throwable { 9 | 10 | protected $message = ''; 11 | protected $code = 0; 12 | protected $file; 13 | protected $line; 14 | 15 | private function __clone() {} 16 | public function __construct($message = null, $code = null, $previous = null) {} 17 | public function __wakeup() {} 18 | public function getMessage() {} 19 | public function getCode() {} 20 | public function getFile() {} 21 | public function getLine() {} 22 | public function getTrace() {} 23 | public function getPrevious() {} 24 | public function getTraceAsString() {} 25 | public function __toString() {} 26 | } 27 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Redis.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole; 8 | class Redis { 9 | 10 | const STATE_CONNECT = 0; 11 | const STATE_READY = 1; 12 | const STATE_WAIT_RESULT = 2; 13 | const STATE_SUBSCRIBE = 3; 14 | const STATE_CLOSED = 4; 15 | public $onConnect; 16 | public $onClose; 17 | public $onMessage; 18 | public $setting; 19 | public $host; 20 | public $port; 21 | public $sock; 22 | public $errCode; 23 | public $errMsg; 24 | 25 | public function __construct($setting = null) {} 26 | public function __destruct() {} 27 | public function on($event_name, $callback) {} 28 | public function connect($host, $port, $callback) {} 29 | public function close() {} 30 | public function getState() {} 31 | public function __call($command, $params) {} 32 | } 33 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Server-Port.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\Server; 8 | class Port { 9 | 10 | private $onConnect; 11 | private $onReceive; 12 | private $onClose; 13 | private $onPacket; 14 | private $onBufferFull; 15 | private $onBufferEmpty; 16 | private $onRequest; 17 | private $onHandShake; 18 | private $onOpen; 19 | private $onMessage; 20 | public $host; 21 | public $port = 0; 22 | public $type = 0; 23 | public $sock = -1; 24 | public $setting; 25 | public $connections; 26 | 27 | private function __construct() {} 28 | public function __destruct() {} 29 | public function set($settings) {} 30 | public function on($event_name, $callback) {} 31 | public function getCallback($event_name) {} 32 | public function getSocket() {} 33 | } 34 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # php-reflection-code 2 | PHP反射IDE自动提示生成器 3 | 4 | 5 | ## 描述 6 | 7 | 本程序在命令行(CLI)中执行,通过PHP反射将内置类生成一个空实现定义,放在IDE任何位置实现代码提示功能。可用于没有提供PHP代码实现的PECL扩展(如:Redis)在IDE中的编码提示,提升开发效率。 8 | 9 | 同时支持配置批量,生成在php_docs_code目录 10 | 11 | ## 使用方法 12 | 13 | 直接设置为你的GIT子项目更新,或把php_docs_code中的代码置于你的项目中,在IDE即可自动提示。 14 | 15 | 内置类库包括: 16 | 17 | * Memcached 18 | * Redis 19 | * Swoole 20 | * Yaf 21 | * Yar 22 | * Yac 23 | * Yaconf 24 | 25 | 26 | ## 自助生成方法 27 | 28 | 如果自带的类库仍不满足你的需求,可以自助生成。 29 | 30 | ### 通过反射获取输出PHP空方法定义 31 | ```bash 32 | php php-reflection-code.php $extension_class_name 33 | ``` 34 | 35 | 示例: 36 | ``` 37 | php php-reflection-code.php redis 38 | ``` 39 | 40 | ### 定义批量执行 41 | 42 | 1. 确保代码目录下执行用户可以有建立目录权限。 43 | 2. 配置 `conf/fetch.php` 写入你想生成的类或PHP扩展。 44 | 3. 在Shell中执行以下命令,会在php_docs_code目录中生成。 45 | ```bash 46 | php fetch.php 47 | ``` 48 | 49 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Coroutine-Http-Client-Exception.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\Coroutine\Http\Client; 8 | class Exception extends \Swoole\Exception implements \Throwable { 9 | 10 | protected $message = ''; 11 | protected $code = 0; 12 | protected $file; 13 | protected $line; 14 | 15 | private function __clone() {} 16 | public function __construct($message = null, $code = null, $previous = null) {} 17 | public function __wakeup() {} 18 | public function getMessage() {} 19 | public function getCode() {} 20 | public function getFile() {} 21 | public function getLine() {} 22 | public function getTrace() {} 23 | public function getPrevious() {} 24 | public function getTraceAsString() {} 25 | public function __toString() {} 26 | } 27 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-FastCGI-Response.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\FastCGI; 8 | class Response extends \Swoole\FastCGI\Message { 9 | 10 | protected $params = array ( 11 | ); 12 | protected $body = ''; 13 | protected $error = ''; 14 | 15 | public function __construct($records = null) {} 16 | static public function verify($records) {} 17 | public function getParam($name) {} 18 | public function withParam($name, $value) {} 19 | public function withoutParam($name) {} 20 | public function getParams() {} 21 | public function withParams($params) {} 22 | public function withAddedParams($params) {} 23 | public function getBody() {} 24 | public function withBody($body) {} 25 | public function getError() {} 26 | public function withError($error) {} 27 | } 28 | -------------------------------------------------------------------------------- /php_docs_code/swoole/swoole-async-redis.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace swoole\async; 8 | class redis { 9 | 10 | const STATE_CONNECT = 0; 11 | const STATE_READY = 1; 12 | const STATE_WAIT_RESULT = 2; 13 | const STATE_SUBSCRIBE = 3; 14 | const STATE_CLOSED = 4; 15 | public $onConnect; 16 | public $onClose; 17 | public $onMessage; 18 | public $setting; 19 | public $host; 20 | public $port; 21 | public $sock; 22 | public $errCode; 23 | public $errMsg; 24 | 25 | public function __construct($setting = null) {} 26 | public function __destruct() {} 27 | public function on($event_name, $callback) {} 28 | public function connect($host, $port, $callback) {} 29 | public function close() {} 30 | public function getState() {} 31 | public function __call($command, $params) {} 32 | } 33 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-ExitException.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole; 8 | class ExitException extends \Swoole\Exception implements \Throwable { 9 | 10 | protected $message = ''; 11 | protected $code = 0; 12 | protected $file; 13 | protected $line; 14 | private $flags = 0; 15 | private $status = 0; 16 | 17 | public function getFlags() {} 18 | public function getStatus() {} 19 | private function __clone() {} 20 | public function __construct($message = null, $code = null, $previous = null) {} 21 | public function __wakeup() {} 22 | public function getMessage() {} 23 | public function getCode() {} 24 | public function getFile() {} 25 | public function getLine() {} 26 | public function getTrace() {} 27 | public function getPrevious() {} 28 | public function getTraceAsString() {} 29 | public function __toString() {} 30 | } 31 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-FastCGI.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole; 8 | class FastCGI { 9 | 10 | const HEADER_LEN = 8; 11 | const HEADER_FORMAT = 'Cversion/Ctype/nrequestId/ncontentLength/CpaddingLength/Creserved'; 12 | const MAX_CONTENT_LENGTH = 65535; 13 | const VERSION_1 = 1; 14 | const BEGIN_REQUEST = 1; 15 | const ABORT_REQUEST = 2; 16 | const END_REQUEST = 3; 17 | const PARAMS = 4; 18 | const STDIN = 5; 19 | const STDOUT = 6; 20 | const STDERR = 7; 21 | const DATA = 8; 22 | const GET_VALUES = 9; 23 | const GET_VALUES_RESULT = 10; 24 | const UNKNOWN_TYPE = 11; 25 | const DEFAULT_REQUEST_ID = 1; 26 | const KEEP_CONN = 1; 27 | const RESPONDER = 1; 28 | const AUTHORIZER = 2; 29 | const FILTER = 3; 30 | const REQUEST_COMPLETE = 0; 31 | const CANT_MPX_CONN = 1; 32 | const OVERLOADED = 2; 33 | const UNKNOWN_ROLE = 3; 34 | 35 | } 36 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-FastCGI-FrameParser.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\FastCGI; 8 | class FrameParser { 9 | 10 | protected static $classMapping = array ( 11 | 1 => 'Swoole\\FastCGI\\Record\\BeginRequest', 12 | 2 => 'Swoole\\FastCGI\\Record\\AbortRequest', 13 | 3 => 'Swoole\\FastCGI\\Record\\EndRequest', 14 | 4 => 'Swoole\\FastCGI\\Record\\Params', 15 | 5 => 'Swoole\\FastCGI\\Record\\Stdin', 16 | 6 => 'Swoole\\FastCGI\\Record\\Stdout', 17 | 7 => 'Swoole\\FastCGI\\Record\\Stderr', 18 | 8 => 'Swoole\\FastCGI\\Record\\Data', 19 | 9 => 'Swoole\\FastCGI\\Record\\GetValues', 20 | 10 => 'Swoole\\FastCGI\\Record\\GetValuesResult', 21 | 11 => 'Swoole\\FastCGI\\Record\\UnknownType', 22 | ); 23 | 24 | static public function hasFrame($buffer) {} 25 | static public function parseFrame(& $buffer) {} 26 | } 27 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-FastCGI-Request.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\FastCGI; 8 | class Request extends \Swoole\FastCGI\Message implements \Stringable { 9 | 10 | protected $keepConn = false; 11 | protected $params = array ( 12 | ); 13 | protected $body = ''; 14 | protected $error = ''; 15 | 16 | public function __toString() {} 17 | public function getKeepConn() {} 18 | public function withKeepConn($keepConn) {} 19 | public function getParam($name) {} 20 | public function withParam($name, $value) {} 21 | public function withoutParam($name) {} 22 | public function getParams() {} 23 | public function withParams($params) {} 24 | public function withAddedParams($params) {} 25 | public function getBody() {} 26 | public function withBody($body) {} 27 | public function getError() {} 28 | public function withError($error) {} 29 | } 30 | -------------------------------------------------------------------------------- /php_docs_code/yaf/yaf-config-abstract.php: -------------------------------------------------------------------------------- 1 | 7 | */ 8 | abstract class Yaf_Config_Abstract { 9 | 10 | protected $_config; 11 | 12 | protected $_readonly = true; 13 | 14 | 15 | /** 16 | * Getter 17 | * 18 | * @param string $name 19 | * @param mixed $value 20 | * 21 | * @return mixed 22 | */ 23 | abstract public function get(); 24 | 25 | /** 26 | * Setter 27 | * 28 | * @return Yaf_Config_Abstract 29 | */ 30 | abstract public function set(); 31 | 32 | /** 33 | * 寻找只读配置 34 | * 35 | * @return bool 36 | */ 37 | abstract public function readonly(); 38 | 39 | /** 40 | * 转换为数组 41 | * 42 | * @return array 43 | */ 44 | abstract public function toArray(); 45 | 46 | } 47 | -------------------------------------------------------------------------------- /php_docs_code/co-/co-system.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace co; 8 | class system { 9 | 10 | 11 | static public function gethostbyname($domain_name, $family = null, $timeout = null) {} 12 | static public function dnsLookup($domain_name, $timeout = null) {} 13 | static public function exec($command, $get_error_stream = null) {} 14 | static public function sleep($seconds) {} 15 | static public function fread($handle, $length = null) {} 16 | static public function fwrite($handle, $string, $length = null) {} 17 | static public function fgets($handle) {} 18 | static public function getaddrinfo($hostname, $family = null, $socktype = null, $protocol = null, $service = null, $timeout = null) {} 19 | static public function readFile($filename) {} 20 | static public function writeFile($filename, $data, $flags = null) {} 21 | static public function statvfs($path) {} 22 | } 23 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-FastCGI-Record-Data.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\FastCGI\Record; 8 | class Data extends \Swoole\FastCGI\Record implements \Stringable { 9 | 10 | protected $version = 1; 11 | protected $type = 11; 12 | protected $requestId = 1; 13 | protected $reserved = 0; 14 | 15 | public function __construct($contentData = null) {} 16 | public function __toString() {} 17 | static public function unpack($data) {} 18 | public function setContentData($data) {} 19 | public function getContentData() {} 20 | public function getVersion() {} 21 | public function getType() {} 22 | public function getRequestId() {} 23 | public function setRequestId($requestId) {} 24 | public function getContentLength() {} 25 | public function getPaddingLength() {} 26 | static protected function unpackPayload($self, $data) {} 27 | protected function packPayload() {} 28 | } 29 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-FastCGI-Record-Stdin.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\FastCGI\Record; 8 | class Stdin extends \Swoole\FastCGI\Record implements \Stringable { 9 | 10 | protected $version = 1; 11 | protected $type = 11; 12 | protected $requestId = 1; 13 | protected $reserved = 0; 14 | 15 | public function __construct($contentData = null) {} 16 | public function __toString() {} 17 | static public function unpack($data) {} 18 | public function setContentData($data) {} 19 | public function getContentData() {} 20 | public function getVersion() {} 21 | public function getType() {} 22 | public function getRequestId() {} 23 | public function setRequestId($requestId) {} 24 | public function getContentLength() {} 25 | public function getPaddingLength() {} 26 | static protected function unpackPayload($self, $data) {} 27 | protected function packPayload() {} 28 | } 29 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Database-PDOProxy.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\Database; 8 | class PDOProxy extends \Swoole\ObjectProxy { 9 | 10 | const IO_ERRORS = array ( 11 | 0 => 2002, 12 | 1 => 2006, 13 | 2 => 2013, 14 | ); 15 | protected $__object; 16 | protected $setAttributeContext; 17 | protected $constructor; 18 | protected $round = 0; 19 | 20 | public function __construct($constructor) {} 21 | public function __call($name, $arguments) {} 22 | public function getRound() {} 23 | public function reconnect() {} 24 | public function setAttribute($attribute, $value) {} 25 | public function inTransaction() {} 26 | public function __getObject() {} 27 | public function __get($name) {} 28 | public function __set($name, $value) {} 29 | public function __isset($name) {} 30 | public function __unset($name) {} 31 | public function __invoke($arguments = null) {} 32 | } 33 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-FastCGI-Record-Stderr.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\FastCGI\Record; 8 | class Stderr extends \Swoole\FastCGI\Record implements \Stringable { 9 | 10 | protected $version = 1; 11 | protected $type = 11; 12 | protected $requestId = 1; 13 | protected $reserved = 0; 14 | 15 | public function __construct($contentData = null) {} 16 | public function __toString() {} 17 | static public function unpack($data) {} 18 | public function setContentData($data) {} 19 | public function getContentData() {} 20 | public function getVersion() {} 21 | public function getType() {} 22 | public function getRequestId() {} 23 | public function setRequestId($requestId) {} 24 | public function getContentLength() {} 25 | public function getPaddingLength() {} 26 | static protected function unpackPayload($self, $data) {} 27 | protected function packPayload() {} 28 | } 29 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-FastCGI-Record-Stdout.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\FastCGI\Record; 8 | class Stdout extends \Swoole\FastCGI\Record implements \Stringable { 9 | 10 | protected $version = 1; 11 | protected $type = 11; 12 | protected $requestId = 1; 13 | protected $reserved = 0; 14 | 15 | public function __construct($contentData = null) {} 16 | public function __toString() {} 17 | static public function unpack($data) {} 18 | public function setContentData($data) {} 19 | public function getContentData() {} 20 | public function getVersion() {} 21 | public function getType() {} 22 | public function getRequestId() {} 23 | public function setRequestId($requestId) {} 24 | public function getContentLength() {} 25 | public function getPaddingLength() {} 26 | static protected function unpackPayload($self, $data) {} 27 | protected function packPayload() {} 28 | } 29 | -------------------------------------------------------------------------------- /php_docs_code/yaf/yaf-response-cli.php: -------------------------------------------------------------------------------- 1 | 7 | */ 8 | class Yaf_Response_Cli extends Yaf_Response_Abstract { 9 | 10 | const DEFAULT_BODY = 'content'; 11 | protected $_header; 12 | 13 | protected $_body; 14 | 15 | protected $_sendheader = false; 16 | 17 | 18 | public function __construct() {} 19 | 20 | public function __destruct() {} 21 | 22 | private function __clone() {} 23 | 24 | public function __toString() {} 25 | 26 | public function setBody($body, $name = null) {} 27 | 28 | public function appendBody($body, $name = null) {} 29 | 30 | public function prependBody($body, $name = null) {} 31 | 32 | public function clearBody($name = null) {} 33 | 34 | public function getBody($name = null) {} 35 | 36 | public function response() {} 37 | 38 | } 39 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Coroutine-System.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\Coroutine; 8 | class System { 9 | 10 | 11 | static public function gethostbyname($domain_name, $family = null, $timeout = null) {} 12 | static public function dnsLookup($domain_name, $timeout = null) {} 13 | static public function exec($command, $get_error_stream = null) {} 14 | static public function sleep($seconds) {} 15 | static public function fread($handle, $length = null) {} 16 | static public function fwrite($handle, $string, $length = null) {} 17 | static public function fgets($handle) {} 18 | static public function getaddrinfo($hostname, $family = null, $socktype = null, $protocol = null, $service = null, $timeout = null) {} 19 | static public function readFile($filename) {} 20 | static public function writeFile($filename, $data, $flags = null) {} 21 | static public function statvfs($path) {} 22 | } 23 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-FastCGI-Record-AbortRequest.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\FastCGI\Record; 8 | class AbortRequest extends \Swoole\FastCGI\Record implements \Stringable { 9 | 10 | protected $version = 1; 11 | protected $type = 11; 12 | protected $requestId = 1; 13 | protected $reserved = 0; 14 | 15 | public function __construct($requestId = null) {} 16 | public function __toString() {} 17 | static public function unpack($data) {} 18 | public function setContentData($data) {} 19 | public function getContentData() {} 20 | public function getVersion() {} 21 | public function getType() {} 22 | public function getRequestId() {} 23 | public function setRequestId($requestId) {} 24 | public function getContentLength() {} 25 | public function getPaddingLength() {} 26 | static protected function unpackPayload($self, $data) {} 27 | protected function packPayload() {} 28 | } 29 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-FastCGI-Record.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\FastCGI; 8 | class Record implements \Stringable { 9 | 10 | protected $version = 1; 11 | protected $type = 11; 12 | protected $requestId = 1; 13 | protected $reserved = 0; 14 | private $contentLength = 0; 15 | private $paddingLength = 0; 16 | private $contentData = ''; 17 | private $paddingData = ''; 18 | 19 | public function __toString() {} 20 | static public function unpack($data) {} 21 | public function setContentData($data) {} 22 | public function getContentData() {} 23 | public function getVersion() {} 24 | public function getType() {} 25 | public function getRequestId() {} 26 | public function setRequestId($requestId) {} 27 | public function getContentLength() {} 28 | public function getPaddingLength() {} 29 | static protected function unpackPayload($self, $data) {} 30 | protected function packPayload() {} 31 | } 32 | -------------------------------------------------------------------------------- /php_docs_code/yaf/yaf-route-supervar.php: -------------------------------------------------------------------------------- 1 | 7 | */ 8 | final class Yaf_Route_Supervar implements Yaf_Route_Interface { 9 | 10 | protected $_var_name; 11 | 12 | 13 | /** 14 | * The __construct purpose 15 | * 16 | * @param string $supervar_name 键名 17 | */ 18 | public function __construct($supervar_name) {} 19 | 20 | /** 21 | * The route purpose 22 | * 23 | * @param Yaf_Request_Abstract $request 24 | * 25 | * @return bool 26 | */ 27 | public function route($request) {} 28 | 29 | /** 30 | * 组合url 31 | * 32 | * @param array $info 需要传入一个数组,数组中每个key可为:m、:c、:a,:m代表module,:c代表controller, :a代表action 33 | * @param array $query 用户自定义的query string,将根据此路由规则拼接在url中 34 | * 35 | * @return string 36 | */ 37 | public function assemble($info, $query = null) {} 38 | 39 | } 40 | -------------------------------------------------------------------------------- /php_docs_code/co-/co-http2-client.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace co\http2; 8 | class client { 9 | 10 | public $errCode = 0; 11 | public $errMsg = 0; 12 | public $sock = -1; 13 | public $type = 0; 14 | public $setting; 15 | public $connected = false; 16 | public $host; 17 | public $port = 0; 18 | public $ssl = false; 19 | 20 | public function __construct($host, $port = null, $open_ssl = null) {} 21 | public function __destruct() {} 22 | public function set($settings) {} 23 | public function connect() {} 24 | public function stats($key = null) {} 25 | public function isStreamExist($stream_id) {} 26 | public function send($request) {} 27 | public function write($stream_id, $data, $end_stream = null) {} 28 | public function recv($timeout = null) {} 29 | public function read($timeout = null) {} 30 | public function goaway($error_code = null, $debug_data = null) {} 31 | public function ping() {} 32 | public function close() {} 33 | } 34 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Database-MysqliStatementProxy.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\Database; 8 | class MysqliStatementProxy extends \Swoole\ObjectProxy { 9 | 10 | protected $__object; 11 | protected $queryString; 12 | protected $attrSetContext; 13 | protected $bindParamContext; 14 | protected $bindResultContext; 15 | protected $parent; 16 | protected $parentRound; 17 | 18 | public function __construct($object, $queryString, $parent) {} 19 | public function __call($name, $arguments) {} 20 | public function attr_set($attr, $mode) {} 21 | public function bind_param($types, & $arguments = null) {} 22 | public function bind_result(& $arguments = null) {} 23 | public function __getObject() {} 24 | public function __get($name) {} 25 | public function __set($name, $value) {} 26 | public function __isset($name) {} 27 | public function __unset($name) {} 28 | public function __invoke($arguments = null) {} 29 | } 30 | -------------------------------------------------------------------------------- /php_docs_code/yaconf/yaconf.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | class Yaconf { 14 | 15 | 16 | /** 17 | * Retrieve a item 18 | * 19 | * @param string $name Configuration key, the key looks like "filename.key", or "filename.sectionName,key". 20 | * @param mixed $default_value if the key doesn't exists, Yaconf::get will return this as result. 21 | * 22 | * @return mixed 23 | */ 24 | static public function get($name, $default = null) {} 25 | 26 | /** 27 | * Determine if a item exists 28 | * 29 | * @param string $name 30 | * 31 | * @return bool 32 | */ 33 | static public function has($name) {} 34 | 35 | static public function __debug_info($name) {} 36 | 37 | } 38 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-FastCGI-Record-Params.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\FastCGI\Record; 8 | class Params extends \Swoole\FastCGI\Record implements \Stringable { 9 | 10 | protected $values = array ( 11 | ); 12 | protected $version = 1; 13 | protected $type = 11; 14 | protected $requestId = 1; 15 | protected $reserved = 0; 16 | 17 | public function __construct($values = null) {} 18 | public function getValues() {} 19 | static protected function unpackPayload($self, $data) {} 20 | protected function packPayload() {} 21 | public function __toString() {} 22 | static public function unpack($data) {} 23 | public function setContentData($data) {} 24 | public function getContentData() {} 25 | public function getVersion() {} 26 | public function getType() {} 27 | public function getRequestId() {} 28 | public function setRequestId($requestId) {} 29 | public function getContentLength() {} 30 | public function getPaddingLength() {} 31 | } 32 | -------------------------------------------------------------------------------- /php_docs_code/yaf/yaf-exception-typeerror.php: -------------------------------------------------------------------------------- 1 | 7 | */ 8 | class Yaf_Exception_TypeError extends Yaf_Exception implements Throwable { 9 | 10 | protected $file; 11 | 12 | protected $line; 13 | 14 | protected $message; 15 | 16 | protected $code = 0; 17 | 18 | protected $previous; 19 | 20 | 21 | private function __clone() {} 22 | 23 | public function __construct($message = null, $code = null, $previous = null) {} 24 | 25 | public function __wakeup() {} 26 | 27 | public function getMessage() {} 28 | 29 | public function getCode() {} 30 | 31 | public function getFile() {} 32 | 33 | public function getLine() {} 34 | 35 | public function getTrace() {} 36 | 37 | public function getPrevious() {} 38 | 39 | public function getTraceAsString() {} 40 | 41 | public function __toString() {} 42 | 43 | } 44 | -------------------------------------------------------------------------------- /php_docs_code/co-/co-mysql.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace co; 8 | class mysql { 9 | 10 | public $serverInfo; 11 | public $sock = -1; 12 | public $connected = false; 13 | public $connect_errno = 0; 14 | public $connect_error = ''; 15 | public $affected_rows = 0; 16 | public $insert_id = 0; 17 | public $error = ''; 18 | public $errno = 0; 19 | 20 | public function __construct() {} 21 | public function __destruct() {} 22 | public function getDefer() {} 23 | public function setDefer($defer = null) {} 24 | public function connect($server_config = null) {} 25 | public function query($sql, $timeout = null) {} 26 | public function fetch() {} 27 | public function fetchAll() {} 28 | public function nextResult() {} 29 | public function prepare($query, $timeout = null) {} 30 | public function recv() {} 31 | public function begin($timeout = null) {} 32 | public function commit($timeout = null) {} 33 | public function rollback($timeout = null) {} 34 | public function close() {} 35 | } 36 | -------------------------------------------------------------------------------- /php_docs_code/yaf/yaf-exception-loadfailed.php: -------------------------------------------------------------------------------- 1 | 7 | */ 8 | class Yaf_Exception_LoadFailed extends Yaf_Exception implements Throwable { 9 | 10 | protected $file; 11 | 12 | protected $line; 13 | 14 | protected $message; 15 | 16 | protected $code = 0; 17 | 18 | protected $previous; 19 | 20 | 21 | private function __clone() {} 22 | 23 | public function __construct($message = null, $code = null, $previous = null) {} 24 | 25 | public function __wakeup() {} 26 | 27 | public function getMessage() {} 28 | 29 | public function getCode() {} 30 | 31 | public function getFile() {} 32 | 33 | public function getLine() {} 34 | 35 | public function getTrace() {} 36 | 37 | public function getPrevious() {} 38 | 39 | public function getTraceAsString() {} 40 | 41 | public function __toString() {} 42 | 43 | } 44 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-FastCGI-Record-GetValues.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\FastCGI\Record; 8 | class GetValues extends \Swoole\FastCGI\Record\Params implements \Stringable { 9 | 10 | protected $values = array ( 11 | ); 12 | protected $version = 1; 13 | protected $type = 11; 14 | protected $requestId = 1; 15 | protected $reserved = 0; 16 | 17 | public function __construct($keys = null) {} 18 | public function getValues() {} 19 | static protected function unpackPayload($self, $data) {} 20 | protected function packPayload() {} 21 | public function __toString() {} 22 | static public function unpack($data) {} 23 | public function setContentData($data) {} 24 | public function getContentData() {} 25 | public function getVersion() {} 26 | public function getType() {} 27 | public function getRequestId() {} 28 | public function setRequestId($requestId) {} 29 | public function getContentLength() {} 30 | public function getPaddingLength() {} 31 | } 32 | -------------------------------------------------------------------------------- /php_docs_code/swoole/swoole_mysql.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | class swoole_mysql { 8 | 9 | const STATE_QUERY = 0; 10 | const STATE_READ_START = 1; 11 | const STATE_READ_FIELD = 2; 12 | const STATE_READ_ROW = 3; 13 | const STATE_READ_END = 5; 14 | const STATE_CLOSED = 6; 15 | public $serverInfo; 16 | public $sock = -1; 17 | public $connected = false; 18 | public $errno = 0; 19 | public $connect_errno = 0; 20 | public $error; 21 | public $connect_error; 22 | public $insert_id; 23 | public $affected_rows; 24 | public $onConnect; 25 | public $onClose; 26 | 27 | public function __construct() {} 28 | public function __destruct() {} 29 | public function connect($server_config, $callback) {} 30 | public function begin($callback) {} 31 | public function commit($callback) {} 32 | public function rollback($callback) {} 33 | public function query($sql, $callback) {} 34 | public function close() {} 35 | public function getState() {} 36 | public function on($event_name, $callback) {} 37 | } 38 | -------------------------------------------------------------------------------- /php_docs_code/yaf/yaf-exception-routerfailed.php: -------------------------------------------------------------------------------- 1 | 7 | */ 8 | class Yaf_Exception_RouterFailed extends Yaf_Exception implements Throwable { 9 | 10 | protected $file; 11 | 12 | protected $line; 13 | 14 | protected $message; 15 | 16 | protected $code = 0; 17 | 18 | protected $previous; 19 | 20 | 21 | private function __clone() {} 22 | 23 | public function __construct($message = null, $code = null, $previous = null) {} 24 | 25 | public function __wakeup() {} 26 | 27 | public function getMessage() {} 28 | 29 | public function getCode() {} 30 | 31 | public function getFile() {} 32 | 33 | public function getLine() {} 34 | 35 | public function getTrace() {} 36 | 37 | public function getPrevious() {} 38 | 39 | public function getTraceAsString() {} 40 | 41 | public function __toString() {} 42 | 43 | } 44 | -------------------------------------------------------------------------------- /php_docs_code/yaf/yaf-exception-startuperror.php: -------------------------------------------------------------------------------- 1 | 7 | */ 8 | class Yaf_Exception_StartupError extends Yaf_Exception implements Throwable { 9 | 10 | protected $file; 11 | 12 | protected $line; 13 | 14 | protected $message; 15 | 16 | protected $code = 0; 17 | 18 | protected $previous; 19 | 20 | 21 | private function __clone() {} 22 | 23 | public function __construct($message = null, $code = null, $previous = null) {} 24 | 25 | public function __wakeup() {} 26 | 27 | public function getMessage() {} 28 | 29 | public function getCode() {} 30 | 31 | public function getFile() {} 32 | 33 | public function getLine() {} 34 | 35 | public function getTrace() {} 36 | 37 | public function getPrevious() {} 38 | 39 | public function getTraceAsString() {} 40 | 41 | public function __toString() {} 42 | 43 | } 44 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Coroutine-Http2-Client.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\Coroutine\Http2; 8 | class Client { 9 | 10 | public $errCode = 0; 11 | public $errMsg = 0; 12 | public $sock = -1; 13 | public $type = 0; 14 | public $setting; 15 | public $connected = false; 16 | public $host; 17 | public $port = 0; 18 | public $ssl = false; 19 | 20 | public function __construct($host, $port = null, $open_ssl = null) {} 21 | public function __destruct() {} 22 | public function set($settings) {} 23 | public function connect() {} 24 | public function stats($key = null) {} 25 | public function isStreamExist($stream_id) {} 26 | public function send($request) {} 27 | public function write($stream_id, $data, $end_stream = null) {} 28 | public function recv($timeout = null) {} 29 | public function read($timeout = null) {} 30 | public function goaway($error_code = null, $debug_data = null) {} 31 | public function ping() {} 32 | public function close() {} 33 | } 34 | -------------------------------------------------------------------------------- /php_docs_code/yaf/yaf-exception-dispatchfailed.php: -------------------------------------------------------------------------------- 1 | 7 | */ 8 | class Yaf_Exception_DispatchFailed extends Yaf_Exception implements Throwable { 9 | 10 | protected $file; 11 | 12 | protected $line; 13 | 14 | protected $message; 15 | 16 | protected $code = 0; 17 | 18 | protected $previous; 19 | 20 | 21 | private function __clone() {} 22 | 23 | public function __construct($message = null, $code = null, $previous = null) {} 24 | 25 | public function __wakeup() {} 26 | 27 | public function getMessage() {} 28 | 29 | public function getCode() {} 30 | 31 | public function getFile() {} 32 | 33 | public function getLine() {} 34 | 35 | public function getTrace() {} 36 | 37 | public function getPrevious() {} 38 | 39 | public function getTraceAsString() {} 40 | 41 | public function __toString() {} 42 | 43 | } 44 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-MySQL.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole; 8 | class MySQL { 9 | 10 | const STATE_QUERY = 0; 11 | const STATE_READ_START = 1; 12 | const STATE_READ_FIELD = 2; 13 | const STATE_READ_ROW = 3; 14 | const STATE_READ_END = 5; 15 | const STATE_CLOSED = 6; 16 | public $serverInfo; 17 | public $sock = -1; 18 | public $connected = false; 19 | public $errno = 0; 20 | public $connect_errno = 0; 21 | public $error; 22 | public $connect_error; 23 | public $insert_id; 24 | public $affected_rows; 25 | public $onConnect; 26 | public $onClose; 27 | 28 | public function __construct() {} 29 | public function __destruct() {} 30 | public function connect($server_config, $callback) {} 31 | public function begin($callback) {} 32 | public function commit($callback) {} 33 | public function rollback($callback) {} 34 | public function query($sql, $callback) {} 35 | public function close() {} 36 | public function getState() {} 37 | public function on($event_name, $callback) {} 38 | } 39 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-FastCGI-Record-GetValuesResult.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\FastCGI\Record; 8 | class GetValuesResult extends \Swoole\FastCGI\Record\Params implements \Stringable { 9 | 10 | protected $values = array ( 11 | ); 12 | protected $version = 1; 13 | protected $type = 11; 14 | protected $requestId = 1; 15 | protected $reserved = 0; 16 | 17 | public function __construct($values = null) {} 18 | public function getValues() {} 19 | static protected function unpackPayload($self, $data) {} 20 | protected function packPayload() {} 21 | public function __toString() {} 22 | static public function unpack($data) {} 23 | public function setContentData($data) {} 24 | public function getContentData() {} 25 | public function getVersion() {} 26 | public function getType() {} 27 | public function getRequestId() {} 28 | public function setRequestId($requestId) {} 29 | public function getContentLength() {} 30 | public function getPaddingLength() {} 31 | } 32 | -------------------------------------------------------------------------------- /php_docs_code/yaf/yaf-exception-loadfailed-view.php: -------------------------------------------------------------------------------- 1 | 7 | */ 8 | class Yaf_Exception_LoadFailed_View extends Yaf_Exception_LoadFailed implements Throwable { 9 | 10 | protected $file; 11 | 12 | protected $line; 13 | 14 | protected $message; 15 | 16 | protected $code = 0; 17 | 18 | protected $previous; 19 | 20 | 21 | private function __clone() {} 22 | 23 | public function __construct($message = null, $code = null, $previous = null) {} 24 | 25 | public function __wakeup() {} 26 | 27 | public function getMessage() {} 28 | 29 | public function getCode() {} 30 | 31 | public function getFile() {} 32 | 33 | public function getLine() {} 34 | 35 | public function getTrace() {} 36 | 37 | public function getPrevious() {} 38 | 39 | public function getTraceAsString() {} 40 | 41 | public function __toString() {} 42 | 43 | } 44 | -------------------------------------------------------------------------------- /php_docs_code/yaf/yaf-exception-loadfailed-action.php: -------------------------------------------------------------------------------- 1 | 7 | */ 8 | class Yaf_Exception_LoadFailed_Action extends Yaf_Exception_LoadFailed implements Throwable { 9 | 10 | protected $file; 11 | 12 | protected $line; 13 | 14 | protected $message; 15 | 16 | protected $code = 0; 17 | 18 | protected $previous; 19 | 20 | 21 | private function __clone() {} 22 | 23 | public function __construct($message = null, $code = null, $previous = null) {} 24 | 25 | public function __wakeup() {} 26 | 27 | public function getMessage() {} 28 | 29 | public function getCode() {} 30 | 31 | public function getFile() {} 32 | 33 | public function getLine() {} 34 | 35 | public function getTrace() {} 36 | 37 | public function getPrevious() {} 38 | 39 | public function getTraceAsString() {} 40 | 41 | public function __toString() {} 42 | 43 | } 44 | -------------------------------------------------------------------------------- /php_docs_code/yaf/yaf-exception-loadfailed-module.php: -------------------------------------------------------------------------------- 1 | 7 | */ 8 | class Yaf_Exception_LoadFailed_Module extends Yaf_Exception_LoadFailed implements Throwable { 9 | 10 | protected $file; 11 | 12 | protected $line; 13 | 14 | protected $message; 15 | 16 | protected $code = 0; 17 | 18 | protected $previous; 19 | 20 | 21 | private function __clone() {} 22 | 23 | public function __construct($message = null, $code = null, $previous = null) {} 24 | 25 | public function __wakeup() {} 26 | 27 | public function getMessage() {} 28 | 29 | public function getCode() {} 30 | 31 | public function getFile() {} 32 | 33 | public function getLine() {} 34 | 35 | public function getTrace() {} 36 | 37 | public function getPrevious() {} 38 | 39 | public function getTraceAsString() {} 40 | 41 | public function __toString() {} 42 | 43 | } 44 | -------------------------------------------------------------------------------- /php_docs_code/yar/yar-server-output-exception.php: -------------------------------------------------------------------------------- 1 | 7 | */ 8 | class Yar_Server_Output_Exception extends Yar_Server_Exception implements Throwable { 9 | 10 | protected $message = ''; 11 | 12 | protected $code = 0; 13 | 14 | protected $file; 15 | 16 | protected $line; 17 | 18 | 19 | public function getType() {} 20 | 21 | private function __clone() {} 22 | 23 | public function __construct($message = null, $code = null, $previous = null) {} 24 | 25 | public function __wakeup() {} 26 | 27 | public function getMessage() {} 28 | 29 | public function getCode() {} 30 | 31 | public function getFile() {} 32 | 33 | public function getLine() {} 34 | 35 | public function getTrace() {} 36 | 37 | public function getPrevious() {} 38 | 39 | public function getTraceAsString() {} 40 | 41 | public function __toString() {} 42 | 43 | } 44 | -------------------------------------------------------------------------------- /php_docs_code/yar/yar-server-request-exception.php: -------------------------------------------------------------------------------- 1 | 7 | */ 8 | class Yar_Server_Request_Exception extends Yar_Server_Exception implements Throwable { 9 | 10 | protected $message = ''; 11 | 12 | protected $code = 0; 13 | 14 | protected $file; 15 | 16 | protected $line; 17 | 18 | 19 | public function getType() {} 20 | 21 | private function __clone() {} 22 | 23 | public function __construct($message = null, $code = null, $previous = null) {} 24 | 25 | public function __wakeup() {} 26 | 27 | public function getMessage() {} 28 | 29 | public function getCode() {} 30 | 31 | public function getFile() {} 32 | 33 | public function getLine() {} 34 | 35 | public function getTrace() {} 36 | 37 | public function getPrevious() {} 38 | 39 | public function getTraceAsString() {} 40 | 41 | public function __toString() {} 42 | 43 | } 44 | -------------------------------------------------------------------------------- /php_docs_code/yar/yar-client-packager-exception.php: -------------------------------------------------------------------------------- 1 | 7 | */ 8 | class Yar_Client_Packager_Exception extends Yar_Client_Exception implements Throwable { 9 | 10 | protected $message = ''; 11 | 12 | protected $code = 0; 13 | 14 | protected $file; 15 | 16 | protected $line; 17 | 18 | 19 | public function getType() {} 20 | 21 | private function __clone() {} 22 | 23 | public function __construct($message = null, $code = null, $previous = null) {} 24 | 25 | public function __wakeup() {} 26 | 27 | public function getMessage() {} 28 | 29 | public function getCode() {} 30 | 31 | public function getFile() {} 32 | 33 | public function getLine() {} 34 | 35 | public function getTrace() {} 36 | 37 | public function getPrevious() {} 38 | 39 | public function getTraceAsString() {} 40 | 41 | public function __toString() {} 42 | 43 | } 44 | -------------------------------------------------------------------------------- /php_docs_code/yar/yar-client-protocol-exception.php: -------------------------------------------------------------------------------- 1 | 7 | */ 8 | class Yar_Client_Protocol_Exception extends Yar_Client_Exception implements Throwable { 9 | 10 | protected $message = ''; 11 | 12 | protected $code = 0; 13 | 14 | protected $file; 15 | 16 | protected $line; 17 | 18 | 19 | public function getType() {} 20 | 21 | private function __clone() {} 22 | 23 | public function __construct($message = null, $code = null, $previous = null) {} 24 | 25 | public function __wakeup() {} 26 | 27 | public function getMessage() {} 28 | 29 | public function getCode() {} 30 | 31 | public function getFile() {} 32 | 33 | public function getLine() {} 34 | 35 | public function getTrace() {} 36 | 37 | public function getPrevious() {} 38 | 39 | public function getTraceAsString() {} 40 | 41 | public function __toString() {} 42 | 43 | } 44 | -------------------------------------------------------------------------------- /php_docs_code/yar/yar-server-packager-exception.php: -------------------------------------------------------------------------------- 1 | 7 | */ 8 | class Yar_Server_Packager_Exception extends Yar_Server_Exception implements Throwable { 9 | 10 | protected $message = ''; 11 | 12 | protected $code = 0; 13 | 14 | protected $file; 15 | 16 | protected $line; 17 | 18 | 19 | public function getType() {} 20 | 21 | private function __clone() {} 22 | 23 | public function __construct($message = null, $code = null, $previous = null) {} 24 | 25 | public function __wakeup() {} 26 | 27 | public function getMessage() {} 28 | 29 | public function getCode() {} 30 | 31 | public function getFile() {} 32 | 33 | public function getLine() {} 34 | 35 | public function getTrace() {} 36 | 37 | public function getPrevious() {} 38 | 39 | public function getTraceAsString() {} 40 | 41 | public function __toString() {} 42 | 43 | } 44 | -------------------------------------------------------------------------------- /php_docs_code/yar/yar-server-protocol-exception.php: -------------------------------------------------------------------------------- 1 | 7 | */ 8 | class Yar_Server_Protocol_Exception extends Yar_Server_Exception implements Throwable { 9 | 10 | protected $message = ''; 11 | 12 | protected $code = 0; 13 | 14 | protected $file; 15 | 16 | protected $line; 17 | 18 | 19 | public function getType() {} 20 | 21 | private function __clone() {} 22 | 23 | public function __construct($message = null, $code = null, $previous = null) {} 24 | 25 | public function __wakeup() {} 26 | 27 | public function getMessage() {} 28 | 29 | public function getCode() {} 30 | 31 | public function getFile() {} 32 | 33 | public function getLine() {} 34 | 35 | public function getTrace() {} 36 | 37 | public function getPrevious() {} 38 | 39 | public function getTraceAsString() {} 40 | 41 | public function __toString() {} 42 | 43 | } 44 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-FastCGI-Record-UnknownType.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\FastCGI\Record; 8 | class UnknownType extends \Swoole\FastCGI\Record implements \Stringable { 9 | 10 | protected $type1; 11 | protected $reserved1; 12 | protected $version = 1; 13 | protected $type = 11; 14 | protected $requestId = 1; 15 | protected $reserved = 0; 16 | 17 | public function __construct($type = null, $reserved = null) {} 18 | public function getUnrecognizedType() {} 19 | static public function unpackPayload($self, $data) {} 20 | protected function packPayload() {} 21 | public function __toString() {} 22 | static public function unpack($data) {} 23 | public function setContentData($data) {} 24 | public function getContentData() {} 25 | public function getVersion() {} 26 | public function getType() {} 27 | public function getRequestId() {} 28 | public function setRequestId($requestId) {} 29 | public function getContentLength() {} 30 | public function getPaddingLength() {} 31 | } 32 | -------------------------------------------------------------------------------- /php_docs_code/swoole/swoole-async-mysql.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace swoole\async; 8 | class mysql { 9 | 10 | const STATE_QUERY = 0; 11 | const STATE_READ_START = 1; 12 | const STATE_READ_FIELD = 2; 13 | const STATE_READ_ROW = 3; 14 | const STATE_READ_END = 5; 15 | const STATE_CLOSED = 6; 16 | public $serverInfo; 17 | public $sock = -1; 18 | public $connected = false; 19 | public $errno = 0; 20 | public $connect_errno = 0; 21 | public $error; 22 | public $connect_error; 23 | public $insert_id; 24 | public $affected_rows; 25 | public $onConnect; 26 | public $onClose; 27 | 28 | public function __construct() {} 29 | public function __destruct() {} 30 | public function connect($server_config, $callback) {} 31 | public function begin($callback) {} 32 | public function commit($callback) {} 33 | public function rollback($callback) {} 34 | public function query($sql, $callback) {} 35 | public function close() {} 36 | public function getState() {} 37 | public function on($event_name, $callback) {} 38 | } 39 | -------------------------------------------------------------------------------- /php_docs_code/yar/yar-client-transport-exception.php: -------------------------------------------------------------------------------- 1 | 7 | */ 8 | class Yar_Client_Transport_Exception extends Yar_Client_Exception implements Throwable { 9 | 10 | protected $message = ''; 11 | 12 | protected $code = 0; 13 | 14 | protected $file; 15 | 16 | protected $line; 17 | 18 | 19 | public function getType() {} 20 | 21 | private function __clone() {} 22 | 23 | public function __construct($message = null, $code = null, $previous = null) {} 24 | 25 | public function __wakeup() {} 26 | 27 | public function getMessage() {} 28 | 29 | public function getCode() {} 30 | 31 | public function getFile() {} 32 | 33 | public function getLine() {} 34 | 35 | public function getTrace() {} 36 | 37 | public function getPrevious() {} 38 | 39 | public function getTraceAsString() {} 40 | 41 | public function __toString() {} 42 | 43 | } 44 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Coroutine-MySQL.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\Coroutine; 8 | class MySQL { 9 | 10 | public $serverInfo; 11 | public $sock = -1; 12 | public $connected = false; 13 | public $connect_errno = 0; 14 | public $connect_error = ''; 15 | public $affected_rows = 0; 16 | public $insert_id = 0; 17 | public $error = ''; 18 | public $errno = 0; 19 | 20 | public function __construct() {} 21 | public function __destruct() {} 22 | public function getDefer() {} 23 | public function setDefer($defer = null) {} 24 | public function connect($server_config = null) {} 25 | public function query($sql, $timeout = null) {} 26 | public function fetch() {} 27 | public function fetchAll() {} 28 | public function nextResult() {} 29 | public function prepare($query, $timeout = null) {} 30 | public function recv() {} 31 | public function begin($timeout = null) {} 32 | public function commit($timeout = null) {} 33 | public function rollback($timeout = null) {} 34 | public function close() {} 35 | } 36 | -------------------------------------------------------------------------------- /php_docs_code/yaf/yaf-exception-loadfailed-controller.php: -------------------------------------------------------------------------------- 1 | 7 | */ 8 | class Yaf_Exception_LoadFailed_Controller extends Yaf_Exception_LoadFailed implements Throwable { 9 | 10 | protected $file; 11 | 12 | protected $line; 13 | 14 | protected $message; 15 | 16 | protected $code = 0; 17 | 18 | protected $previous; 19 | 20 | 21 | private function __clone() {} 22 | 23 | public function __construct($message = null, $code = null, $previous = null) {} 24 | 25 | public function __wakeup() {} 26 | 27 | public function getMessage() {} 28 | 29 | public function getCode() {} 30 | 31 | public function getFile() {} 32 | 33 | public function getLine() {} 34 | 35 | public function getTrace() {} 36 | 37 | public function getPrevious() {} 38 | 39 | public function getTraceAsString() {} 40 | 41 | public function __toString() {} 42 | 43 | } 44 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Database-MysqliProxy.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\Database; 8 | class MysqliProxy extends \Swoole\ObjectProxy { 9 | 10 | const IO_ERRORS = array ( 11 | 0 => 2002, 12 | 1 => 2006, 13 | 2 => 2013, 14 | ); 15 | protected $__object; 16 | protected $charsetContext; 17 | protected $setOptContext; 18 | protected $changeUserContext; 19 | protected $constructor; 20 | protected $round = 0; 21 | 22 | public function __construct($constructor) {} 23 | public function __call($name, $arguments) {} 24 | public function getRound() {} 25 | public function reconnect() {} 26 | public function set_opt($option, $value) {} 27 | public function set_charset($charset) {} 28 | public function change_user($user, $password, $database) {} 29 | public function __getObject() {} 30 | public function __get($name) {} 31 | public function __set($name, $value) {} 32 | public function __isset($name) {} 33 | public function __unset($name) {} 34 | public function __invoke($arguments = null) {} 35 | } 36 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 李枨煊 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /php_docs_code/yar/yar-client-exception.php: -------------------------------------------------------------------------------- 1 | 7 | */ 8 | class Yar_Client_Exception extends Exception implements Throwable { 9 | 10 | protected $message = ''; 11 | 12 | protected $code = 0; 13 | 14 | protected $file; 15 | 16 | protected $line; 17 | 18 | 19 | /** 20 | * The getType purpose 21 | * 22 | * @return void 23 | */ 24 | public function getType() {} 25 | 26 | private function __clone() {} 27 | 28 | public function __construct($message = null, $code = null, $previous = null) {} 29 | 30 | public function __wakeup() {} 31 | 32 | public function getMessage() {} 33 | 34 | public function getCode() {} 35 | 36 | public function getFile() {} 37 | 38 | public function getLine() {} 39 | 40 | public function getTrace() {} 41 | 42 | public function getPrevious() {} 43 | 44 | public function getTraceAsString() {} 45 | 46 | public function __toString() {} 47 | 48 | } 49 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Database-RedisConfig.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\Database; 8 | class RedisConfig { 9 | 10 | protected $host = '127.0.0.1'; 11 | protected $port = 6379; 12 | protected $timeout = 0.0; 13 | protected $reserved = ''; 14 | protected $retry_interval = 0; 15 | protected $read_timeout = 0.0; 16 | protected $auth = ''; 17 | protected $dbIndex = 0; 18 | 19 | public function getHost() {} 20 | public function withHost($host) {} 21 | public function getPort() {} 22 | public function withPort($port) {} 23 | public function getTimeout() {} 24 | public function withTimeout($timeout) {} 25 | public function getReserved() {} 26 | public function withReserved($reserved) {} 27 | public function getRetryInterval() {} 28 | public function withRetryInterval($retry_interval) {} 29 | public function getReadTimeout() {} 30 | public function withReadTimeout($read_timeout) {} 31 | public function getAuth() {} 32 | public function withAuth($auth) {} 33 | public function getDbIndex() {} 34 | public function withDbIndex($dbIndex) {} 35 | } 36 | -------------------------------------------------------------------------------- /php_docs_code/yaf/yaf-route-static.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | class Yaf_Route_Static implements Yaf_Route_Interface { 13 | 14 | 15 | /** 16 | * The match purpose 17 | * 18 | * @param string $uri 19 | * 20 | * @return void 21 | */ 22 | public function match($uri) {} 23 | 24 | /** 25 | * Route a request 26 | * 27 | * @param Yaf_Request_Abstract $request 28 | * 29 | * @return bool 30 | */ 31 | public function route($request) {} 32 | 33 | /** 34 | * 组合url 35 | * 36 | * @param array $info 需要传入一个数组,数组中每个key可为:m、:c、:a,:m代表module,:c代表controller, :a代表action 37 | * @param array $query 用户自定义的query string,将根据此路由规则拼接在url中 38 | * 39 | * @return string 40 | */ 41 | public function assemble($info, $query = null) {} 42 | 43 | } 44 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Database-MysqliConfig.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\Database; 8 | class MysqliConfig { 9 | 10 | protected $host = '127.0.0.1'; 11 | protected $port = 3306; 12 | protected $unixSocket = ''; 13 | protected $dbname = 'test'; 14 | protected $charset = 'utf8mb4'; 15 | protected $username = 'root'; 16 | protected $password = 'root'; 17 | protected $options = array ( 18 | ); 19 | 20 | public function getHost() {} 21 | public function withHost($host) {} 22 | public function getPort() {} 23 | public function getUnixSocket() {} 24 | public function withUnixSocket($unixSocket) {} 25 | public function withPort($port) {} 26 | public function getDbname() {} 27 | public function withDbname($dbname) {} 28 | public function getCharset() {} 29 | public function withCharset($charset) {} 30 | public function getUsername() {} 31 | public function withUsername($username) {} 32 | public function getPassword() {} 33 | public function withPassword($password) {} 34 | public function getOptions() {} 35 | public function withOptions($options) {} 36 | } 37 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-FastCGI-Record-BeginRequest.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\FastCGI\Record; 8 | class BeginRequest extends \Swoole\FastCGI\Record implements \Stringable { 9 | 10 | protected $role = 3; 11 | protected $flags; 12 | protected $reserved1; 13 | protected $version = 1; 14 | protected $type = 11; 15 | protected $requestId = 1; 16 | protected $reserved = 0; 17 | 18 | public function __construct($role = null, $flags = null, $reserved = null) {} 19 | public function getRole() {} 20 | public function getFlags() {} 21 | static protected function unpackPayload($self, $data) {} 22 | protected function packPayload() {} 23 | public function __toString() {} 24 | static public function unpack($data) {} 25 | public function setContentData($data) {} 26 | public function getContentData() {} 27 | public function getVersion() {} 28 | public function getType() {} 29 | public function getRequestId() {} 30 | public function setRequestId($requestId) {} 31 | public function getContentLength() {} 32 | public function getPaddingLength() {} 33 | } 34 | -------------------------------------------------------------------------------- /php_docs_code/yaf/yaf-exception.php: -------------------------------------------------------------------------------- 1 | 7 | */ 8 | class Yaf_Exception extends Exception implements Throwable { 9 | 10 | protected $file; 11 | 12 | protected $line; 13 | 14 | protected $message; 15 | 16 | protected $code = 0; 17 | 18 | protected $previous; 19 | 20 | 21 | private function __clone() {} 22 | 23 | /** 24 | * The __construct purpose 25 | */ 26 | public function __construct($message = null, $code = null, $previous = null) {} 27 | 28 | public function __wakeup() {} 29 | 30 | public function getMessage() {} 31 | 32 | public function getCode() {} 33 | 34 | public function getFile() {} 35 | 36 | public function getLine() {} 37 | 38 | public function getTrace() {} 39 | 40 | /** 41 | * The getPrevious purpose 42 | * 43 | * @return void 44 | */ 45 | public function getPrevious() {} 46 | 47 | public function getTraceAsString() {} 48 | 49 | public function __toString() {} 50 | 51 | } 52 | -------------------------------------------------------------------------------- /php_docs_code/co-/co-fastcgi-proxy.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace co\fastcgi; 8 | class proxy { 9 | 10 | protected $host; 11 | protected $port; 12 | protected $timeout = -1; 13 | protected $documentRoot; 14 | protected $https = false; 15 | protected $index = 'index.php'; 16 | protected $params = array ( 17 | ); 18 | protected $staticFileFilter; 19 | 20 | public function __construct($url, $documentRoot = null) {} 21 | public function withTimeout($timeout) {} 22 | public function withHttps($https) {} 23 | public function withIndex($index) {} 24 | public function getParam($name) {} 25 | public function withParam($name, $value) {} 26 | public function withoutParam($name) {} 27 | public function getParams() {} 28 | public function withParams($params) {} 29 | public function withAddedParams($params) {} 30 | public function withStaticFileFilter($filter) {} 31 | public function translateRequest($userRequest) {} 32 | public function translateResponse($response, $userResponse) {} 33 | public function pass($userRequest, $userResponse) {} 34 | public function staticFileFiltrate($request, $userResponse) {} 35 | } 36 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-FastCGI-Record-EndRequest.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\FastCGI\Record; 8 | class EndRequest extends \Swoole\FastCGI\Record implements \Stringable { 9 | 10 | protected $appStatus = 0; 11 | protected $protocolStatus = 0; 12 | protected $reserved1; 13 | protected $version = 1; 14 | protected $type = 11; 15 | protected $requestId = 1; 16 | protected $reserved = 0; 17 | 18 | public function __construct($protocolStatus = null, $appStatus = null, $reserved = null) {} 19 | public function getAppStatus() {} 20 | public function getProtocolStatus() {} 21 | static protected function unpackPayload($self, $data) {} 22 | protected function packPayload() {} 23 | public function __toString() {} 24 | static public function unpack($data) {} 25 | public function setContentData($data) {} 26 | public function getContentData() {} 27 | public function getVersion() {} 28 | public function getType() {} 29 | public function getRequestId() {} 30 | public function setRequestId($requestId) {} 31 | public function getContentLength() {} 32 | public function getPaddingLength() {} 33 | } 34 | -------------------------------------------------------------------------------- /php_docs_code/yar/yar-client.php: -------------------------------------------------------------------------------- 1 | 7 | */ 8 | class Yar_Client { 9 | 10 | protected $_protocol = 1; 11 | 12 | protected $_uri; 13 | 14 | protected $_options; 15 | 16 | protected $_running; 17 | 18 | 19 | /** 20 | * 创建一个客户端实例 21 | * 22 | * @param string $url 服务端的HTTP URL路径. 23 | */ 24 | public function __construct($url, $async = null) {} 25 | 26 | public function call($method, $parameters) {} 27 | 28 | /** 29 | * 调用远程服务 30 | * 31 | * @param string $method 远程服务的名字. 32 | * @param array $parameters 调用参数. 33 | * 34 | * @return void 35 | */ 36 | public function __call($method, $parameters) {} 37 | 38 | public function getOpt($type) {} 39 | 40 | /** 41 | * 设置调用的配置 42 | * 43 | * @param number $name 可以是: YAR_OPT_PACKAGER, YAR_OPT_PERSISTENT (需要服务端支持keepalive), YAR_OPT_TIMEOUT, YAR_OPT_CONNECT_TIMEOUT 44 | * @param mixed $value 45 | * 46 | * @return boolean 47 | */ 48 | public function setOpt($type, $value) {} 49 | 50 | } 51 | -------------------------------------------------------------------------------- /php_docs_code/yaf/yaf-route-map.php: -------------------------------------------------------------------------------- 1 | 7 | */ 8 | final class Yaf_Route_Map implements Yaf_Route_Interface { 9 | 10 | protected $_ctl_router = false; 11 | 12 | protected $_delimiter; 13 | 14 | 15 | /** 16 | * The __construct purpose 17 | * 18 | * @param string $controller_prefer 结果是否应该考虑作为controller或action 19 | * @param string $delimiter 20 | */ 21 | public function __construct($controller_prefer = false, $delimiter = '') {} 22 | 23 | /** 24 | * The route purpose 25 | * 26 | * @param Yaf_Request_Abstract $request 27 | * 28 | * @return bool 29 | */ 30 | public function route($request) {} 31 | 32 | /** 33 | * 组合url 34 | * 35 | * @param array $info 需要传入一个数组,数组的key可以为:a或者:c,:a表示action,:c表示controller。 当map route初始化时,controller_prefer为false时,这个参数需要传入:c。当controller_prefer 为true时,这个参数需要传入:a。 36 | * @param array $query 用户自定义的query string,将根据此路由规则拼接在url中 37 | * 38 | * @return string 39 | */ 40 | public function assemble($info, $query = null) {} 41 | 42 | } 43 | -------------------------------------------------------------------------------- /fetch.php: -------------------------------------------------------------------------------- 1 | 6 | * @since 2017年2月21日 7 | */ 8 | define('APP_PATH', __DIR__ . '/'); 9 | define('LIBRARY_PATH', APP_PATH . 'library/'); 10 | define('VIEW_PATH', LIBRARY_PATH . 'view/'); 11 | include LIBRARY_PATH . 'model/parse.php'; 12 | include LIBRARY_PATH . 'model/manual.php'; 13 | include LIBRARY_PATH . 'model/refdoc.php'; 14 | include LIBRARY_PATH . 'model/doc_fetch.php'; 15 | 16 | $config = include APP_PATH . 'conf/fetch.php'; 17 | $output_dir = APP_PATH . 'php_docs_code/'; 18 | 19 | // shell_exec("rm -Rf {$output_dir}"); 20 | // shell_exec("rm -Rf " . APP_PATH . 'docs_xml_dir'); 21 | 22 | $docs_fetch = new DocsFetch($output_dir); 23 | foreach ($config as $type => $values) { 24 | foreach ($values as $value) { 25 | switch ($type) { 26 | case 'eq' : 27 | case 'prefix' : 28 | case 'manual' : 29 | case 'funcs' : 30 | printf("[%s] %s\n", $type, $value); 31 | $method = 'process' . ucfirst($type); 32 | $docs_fetch->$method($value); 33 | break; 34 | } 35 | } 36 | } 37 | printf("[Finish] %s\n", date('Y-m-d H:i:s')); 38 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Coroutine-FastCGI-Proxy.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\Coroutine\FastCGI; 8 | class Proxy { 9 | 10 | protected $host; 11 | protected $port; 12 | protected $timeout = -1; 13 | protected $documentRoot; 14 | protected $https = false; 15 | protected $index = 'index.php'; 16 | protected $params = array ( 17 | ); 18 | protected $staticFileFilter; 19 | 20 | public function __construct($url, $documentRoot = null) {} 21 | public function withTimeout($timeout) {} 22 | public function withHttps($https) {} 23 | public function withIndex($index) {} 24 | public function getParam($name) {} 25 | public function withParam($name, $value) {} 26 | public function withoutParam($name) {} 27 | public function getParams() {} 28 | public function withParams($params) {} 29 | public function withAddedParams($params) {} 30 | public function withStaticFileFilter($filter) {} 31 | public function translateRequest($userRequest) {} 32 | public function translateResponse($response, $userResponse) {} 33 | public function pass($userRequest, $userResponse) {} 34 | public function staticFileFiltrate($request, $userResponse) {} 35 | } 36 | -------------------------------------------------------------------------------- /php_docs_code/swoole/swoole_table.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | class swoole_table implements \Iterator,\Traversable,\ArrayAccess,\Countable { 8 | 9 | const TYPE_INT = 1; 10 | const TYPE_STRING = 7; 11 | const TYPE_FLOAT = 6; 12 | 13 | public function __construct($table_size, $conflict_proportion = null) {} 14 | public function column($name, $type, $size = null) {} 15 | public function create() {} 16 | public function destroy() {} 17 | public function set($key, $value) {} 18 | public function get($key, $field = null) {} 19 | public function count() {} 20 | public function del($key) {} 21 | public function exists($key) {} 22 | public function exist($key) {} 23 | public function incr($key, $column, $incrby = null) {} 24 | public function decr($key, $column, $decrby = null) {} 25 | public function getMemorySize() {} 26 | public function offsetExists($offset) {} 27 | public function offsetGet($offset) {} 28 | public function offsetSet($offset, $value) {} 29 | public function offsetUnset($offset) {} 30 | public function rewind() {} 31 | public function next() {} 32 | public function current() {} 33 | public function key() {} 34 | public function valid() {} 35 | } 36 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Table.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole; 8 | class Table implements \Iterator,\Traversable,\ArrayAccess,\Countable { 9 | 10 | const TYPE_INT = 1; 11 | const TYPE_STRING = 7; 12 | const TYPE_FLOAT = 6; 13 | 14 | public function __construct($table_size, $conflict_proportion = null) {} 15 | public function column($name, $type, $size = null) {} 16 | public function create() {} 17 | public function destroy() {} 18 | public function set($key, $value) {} 19 | public function get($key, $field = null) {} 20 | public function count() {} 21 | public function del($key) {} 22 | public function exists($key) {} 23 | public function exist($key) {} 24 | public function incr($key, $column, $incrby = null) {} 25 | public function decr($key, $column, $decrby = null) {} 26 | public function getMemorySize() {} 27 | public function offsetExists($offset) {} 28 | public function offsetGet($offset) {} 29 | public function offsetSet($offset, $value) {} 30 | public function offsetUnset($offset) {} 31 | public function rewind() {} 32 | public function next() {} 33 | public function current() {} 34 | public function key() {} 35 | public function valid() {} 36 | } 37 | -------------------------------------------------------------------------------- /php_docs_code/co-/co-client.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace co; 8 | class client { 9 | 10 | const MSG_OOB = 1; 11 | const MSG_PEEK = 2; 12 | const MSG_DONTWAIT = 64; 13 | const MSG_WAITALL = 256; 14 | public $errCode = 0; 15 | public $errMsg = ''; 16 | public $fd = -1; 17 | private $socket; 18 | public $type = 1; 19 | public $setting; 20 | public $connected = false; 21 | 22 | public function __construct($type) {} 23 | public function __destruct() {} 24 | public function set($settings) {} 25 | public function connect($host, $port = null, $timeout = null, $sock_flag = null) {} 26 | public function recv($timeout = null) {} 27 | public function peek($length = null) {} 28 | public function send($data) {} 29 | public function sendfile($filename, $offset = null, $length = null) {} 30 | public function sendto($address, $port, $data) {} 31 | public function recvfrom($length, & $address, & $port = null) {} 32 | public function enableSSL() {} 33 | public function getPeerCert() {} 34 | public function verifyPeerCert() {} 35 | public function isConnected() {} 36 | public function getsockname() {} 37 | public function getpeername() {} 38 | public function close() {} 39 | public function exportSocket() {} 40 | } 41 | -------------------------------------------------------------------------------- /php_docs_code/yaf/yaf-route-rewrite.php: -------------------------------------------------------------------------------- 1 | 7 | */ 8 | final class Yaf_Route_Rewrite implements Yaf_Route_Interface { 9 | 10 | protected $_route; 11 | 12 | protected $_default; 13 | 14 | protected $_verify; 15 | 16 | 17 | /** 18 | * The __construct purpose 19 | * 20 | * @param string $match 一个类似正则表达式,会被用来匹配一个请求的uri,如果匹配失败,Yaf_Route_Rewrite 会返回FALSE。 21 | * @param array $route 当路由正则匹配成功请求uri时,Yaf_Route_Rewrite 将会用它来决定哪一个m/c/a被路由。 在这个数组中无论是m/c/a都是最优的,如果你没有提供一个明确的值,它将会以默认方式被路由。 22 | * @param array $verify 23 | */ 24 | public function __construct($match, $route, $verify = null) {} 25 | 26 | /** 27 | * The route purpose 28 | * 29 | * @param Yaf_Request_Abstract $request 30 | * 31 | * @return bool 32 | */ 33 | public function route($request) {} 34 | 35 | /** 36 | * 组合url 37 | * 38 | * @param array $info 需要传入一个数组,数组中每个key必须和初始化rewrite route时$match参数中的带冒号的参数名一致 39 | * @param array $query 用户自定义的query string,将根据此路由规则拼接在url中 40 | * 41 | * @return string 42 | */ 43 | public function assemble($info, $query = null) {} 44 | 45 | } 46 | -------------------------------------------------------------------------------- /php_docs_code/yar/yar-server-exception.php: -------------------------------------------------------------------------------- 1 | 10 | */ 11 | class Yar_Server_Exception extends Exception implements Throwable { 12 | 13 | protected $message = ''; 14 | 15 | protected $code = 0; 16 | 17 | protected $file; 18 | 19 | protected $line; 20 | 21 | protected $_type = 'Yar_Exception_Server'; 22 | 23 | 24 | /** 25 | * 获取异常的原始类型 26 | * 27 | * @return string 28 | */ 29 | public function getType() {} 30 | 31 | private function __clone() {} 32 | 33 | public function __construct($message = null, $code = null, $previous = null) {} 34 | 35 | public function __wakeup() {} 36 | 37 | public function getMessage() {} 38 | 39 | public function getCode() {} 40 | 41 | public function getFile() {} 42 | 43 | public function getLine() {} 44 | 45 | public function getTrace() {} 46 | 47 | public function getPrevious() {} 48 | 49 | public function getTraceAsString() {} 50 | 51 | public function __toString() {} 52 | 53 | } 54 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Database-PDOStatementProxy.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\Database; 8 | class PDOStatementProxy extends \Swoole\ObjectProxy { 9 | 10 | protected $__object; 11 | protected $setAttributeContext; 12 | protected $setFetchModeContext; 13 | protected $bindParamContext; 14 | protected $bindColumnContext; 15 | protected $bindValueContext; 16 | protected $parent; 17 | protected $parentRound; 18 | 19 | public function __construct($object, $parent) {} 20 | public function __call($name, $arguments) {} 21 | public function setAttribute($attribute, $value) {} 22 | public function setFetchMode($mode, $classNameObject = null, $ctorarfg = null) {} 23 | public function bindParam($parameter, & $variable, $data_type = null, $length = null, $driver_options = null) {} 24 | public function bindColumn($column, & $param, $type = null, $maxlen = null, $driverdata = null) {} 25 | public function bindValue($parameter, $value, $data_type = null) {} 26 | public function __getObject() {} 27 | public function __get($name) {} 28 | public function __set($name, $value) {} 29 | public function __isset($name) {} 30 | public function __unset($name) {} 31 | public function __invoke($arguments = null) {} 32 | } 33 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Coroutine-Client.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\Coroutine; 8 | class Client { 9 | 10 | const MSG_OOB = 1; 11 | const MSG_PEEK = 2; 12 | const MSG_DONTWAIT = 64; 13 | const MSG_WAITALL = 256; 14 | public $errCode = 0; 15 | public $errMsg = ''; 16 | public $fd = -1; 17 | private $socket; 18 | public $type = 1; 19 | public $setting; 20 | public $connected = false; 21 | 22 | public function __construct($type) {} 23 | public function __destruct() {} 24 | public function set($settings) {} 25 | public function connect($host, $port = null, $timeout = null, $sock_flag = null) {} 26 | public function recv($timeout = null) {} 27 | public function peek($length = null) {} 28 | public function send($data) {} 29 | public function sendfile($filename, $offset = null, $length = null) {} 30 | public function sendto($address, $port, $data) {} 31 | public function recvfrom($length, & $address, & $port = null) {} 32 | public function enableSSL() {} 33 | public function getPeerCert() {} 34 | public function verifyPeerCert() {} 35 | public function isConnected() {} 36 | public function getsockname() {} 37 | public function getpeername() {} 38 | public function close() {} 39 | public function exportSocket() {} 40 | } 41 | -------------------------------------------------------------------------------- /php_docs_code/swoole/swoole_client.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | class swoole_client { 8 | 9 | const MSG_OOB = 1; 10 | const MSG_PEEK = 2; 11 | const MSG_DONTWAIT = 64; 12 | const MSG_WAITALL = 256; 13 | const SHUT_RDWR = 2; 14 | const SHUT_RD = 0; 15 | const SHUT_WR = 1; 16 | public $errCode = 0; 17 | public $sock = -1; 18 | public $reuse = false; 19 | public $reuseCount = 0; 20 | public $type = 0; 21 | public $id; 22 | public $setting; 23 | 24 | public function __construct($type, $async = null, $id = null) {} 25 | public function __destruct() {} 26 | public function set($settings) {} 27 | public function connect($host, $port = null, $timeout = null, $sock_flag = null) {} 28 | public function recv($size = null, $flag = null) {} 29 | public function send($data, $flag = null) {} 30 | public function sendfile($filename, $offset = null, $length = null) {} 31 | public function sendto($ip, $port, $data) {} 32 | public function shutdown($how) {} 33 | public function enableSSL() {} 34 | public function getPeerCert() {} 35 | public function verifyPeerCert() {} 36 | public function isConnected() {} 37 | public function getsockname() {} 38 | public function getpeername() {} 39 | public function close($force = null) {} 40 | public function getSocket() {} 41 | } 42 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Client.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole; 8 | class Client { 9 | 10 | const MSG_OOB = 1; 11 | const MSG_PEEK = 2; 12 | const MSG_DONTWAIT = 64; 13 | const MSG_WAITALL = 256; 14 | const SHUT_RDWR = 2; 15 | const SHUT_RD = 0; 16 | const SHUT_WR = 1; 17 | public $errCode = 0; 18 | public $sock = -1; 19 | public $reuse = false; 20 | public $reuseCount = 0; 21 | public $type = 0; 22 | public $id; 23 | public $setting; 24 | 25 | public function __construct($type, $async = null, $id = null) {} 26 | public function __destruct() {} 27 | public function set($settings) {} 28 | public function connect($host, $port = null, $timeout = null, $sock_flag = null) {} 29 | public function recv($size = null, $flag = null) {} 30 | public function send($data, $flag = null) {} 31 | public function sendfile($filename, $offset = null, $length = null) {} 32 | public function sendto($ip, $port, $data) {} 33 | public function shutdown($how) {} 34 | public function enableSSL() {} 35 | public function getPeerCert() {} 36 | public function verifyPeerCert() {} 37 | public function isConnected() {} 38 | public function getsockname() {} 39 | public function getpeername() {} 40 | public function close($force = null) {} 41 | public function getSocket() {} 42 | } 43 | -------------------------------------------------------------------------------- /php_docs_code/yaf/yaf-response-http.php: -------------------------------------------------------------------------------- 1 | 7 | */ 8 | class Yaf_Response_Http extends Yaf_Response_Abstract { 9 | 10 | const DEFAULT_BODY = 'content'; 11 | protected $_header; 12 | 13 | protected $_body; 14 | 15 | protected $_sendheader = true; 16 | 17 | protected $_response_code = 0; 18 | 19 | 20 | public function setHeader($name, $value, $rep = null, $response_code = null) {} 21 | 22 | public function setAllHeaders($headers) {} 23 | 24 | public function getHeader($name = null) {} 25 | 26 | public function clearHeaders() {} 27 | 28 | public function setRedirect($url) {} 29 | 30 | public function response() {} 31 | 32 | public function __construct() {} 33 | 34 | public function __destruct() {} 35 | 36 | private function __clone() {} 37 | 38 | public function __toString() {} 39 | 40 | public function setBody($body, $name = null) {} 41 | 42 | public function appendBody($body, $name = null) {} 43 | 44 | public function prependBody($body, $name = null) {} 45 | 46 | public function clearBody($name = null) {} 47 | 48 | public function getBody($name = null) {} 49 | 50 | } 51 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-StringObject.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole; 8 | class StringObject { 9 | 10 | protected $string; 11 | 12 | public function __construct($string = null) {} 13 | public function __toString() {} 14 | public function length() {} 15 | public function indexOf($needle, $offset = null) {} 16 | public function lastIndexOf($needle, $offset = null) {} 17 | public function pos($needle, $offset = null) {} 18 | public function rpos($needle, $offset = null) {} 19 | public function ipos($needle) {} 20 | public function lower() {} 21 | public function upper() {} 22 | public function trim() {} 23 | public function lrim() {} 24 | public function rtrim() {} 25 | public function substr($offset, $length = null) {} 26 | public function repeat($n) {} 27 | public function replace($search, $replace, & $count = null) {} 28 | public function startsWith($needle) {} 29 | public function contains($subString) {} 30 | public function endsWith($needle) {} 31 | public function split($delimiter, $limit = null) {} 32 | public function char($index) {} 33 | public function chunkSplit($chunkLength = null, $chunkEnd = null) {} 34 | public function chunk($splitLength = null) {} 35 | public function toString() {} 36 | static protected function detectArrayType($value) {} 37 | } 38 | -------------------------------------------------------------------------------- /php_docs_code/co-/co-socket.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace co; 8 | class socket { 9 | 10 | public $fd = -1; 11 | public $errCode = 0; 12 | public $errMsg = ''; 13 | 14 | public function __construct($domain, $type, $protocol = null) {} 15 | public function bind($address, $port = null) {} 16 | public function listen($backlog = null) {} 17 | public function accept($timeout = null) {} 18 | public function connect($host, $port = null, $timeout = null) {} 19 | public function recv($length = null, $timeout = null) {} 20 | public function recvPacket($timeout = null) {} 21 | public function send($data, $timeout = null) {} 22 | public function sendFile($filename, $offset = null, $length = null) {} 23 | public function recvAll($length = null, $timeout = null) {} 24 | public function sendAll($data, $timeout = null) {} 25 | public function recvfrom(& $peername, $timeout = null) {} 26 | public function sendto($addr, $port, $data) {} 27 | public function getOption($level, $opt_name) {} 28 | public function setProtocol($settings) {} 29 | public function setOption($level, $opt_name, $opt_value) {} 30 | public function shutdown($how = null) {} 31 | public function cancel($event = null) {} 32 | public function close() {} 33 | public function getpeername() {} 34 | public function getsockname() {} 35 | } 36 | -------------------------------------------------------------------------------- /php_docs_code/yar/yar-concurrent-client.php: -------------------------------------------------------------------------------- 1 | 7 | */ 8 | class Yar_Concurrent_Client { 9 | 10 | protected static $_callstack; 11 | 12 | protected static $_callback; 13 | 14 | protected static $_error_callback; 15 | 16 | protected static $_start = false; 17 | 18 | 19 | /** 20 | * 注册一个并行的服务调用 21 | * 22 | * @param string $uri RPC 服务的 URI(http 或 tcp). 23 | * @param string $method 调用的服务名字(也就是服务方法名). 24 | * @param array $parameters 调用的参数. 25 | * @param callable $callback 回调函数, 在远程服务的返回到达的时候被Yar调用, 从而可以处理返回内容. 26 | * @param callable $error_callback 27 | * @param array $options 28 | * 29 | * @return int 30 | */ 31 | static public function call($uri, $method, $parameters, $callback = null) {} 32 | 33 | /** 34 | * 发送所有注册的并行调用 35 | * 36 | * @param callable $callback 如果这个回掉函数被设置, 那么Yar在发送出所有的请求之后立即调用一次这个回掉函数(此时还没有任何请求返回), 调用的时候$callinfo参数是NULL. 如果在注册并行调用的时候制定了callback, 那么那个callback有更高的优先级. 37 | * @param callable $error_callback 错误回掉函数, 如果设置了, 那么Yar在出错的时候会调用这个回掉函数. 38 | * 39 | * @return boolean 40 | */ 41 | static public function loop($callback = null, $error_callback = null) {} 42 | 43 | static public function reset() {} 44 | 45 | } 46 | -------------------------------------------------------------------------------- /php_docs_code/co-/co-context.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace co; 8 | class context extends \ArrayObject implements \Countable,\Serializable,\ArrayAccess,\Traversable,\IteratorAggregate { 9 | 10 | const STD_PROP_LIST = 1; 11 | const ARRAY_AS_PROPS = 2; 12 | 13 | public function __construct($input = null, $flags = null, $iterator_class = null) {} 14 | public function offsetExists($index) {} 15 | public function offsetGet($index) {} 16 | public function offsetSet($index, $newval) {} 17 | public function offsetUnset($index) {} 18 | public function append($value) {} 19 | public function getArrayCopy() {} 20 | public function count() {} 21 | public function getFlags() {} 22 | public function setFlags($flags) {} 23 | public function asort() {} 24 | public function ksort() {} 25 | public function uasort($cmp_function) {} 26 | public function uksort($cmp_function) {} 27 | public function natsort() {} 28 | public function natcasesort() {} 29 | public function unserialize($serialized) {} 30 | public function serialize() {} 31 | public function __unserialize($serialized) {} 32 | public function __serialize() {} 33 | public function __debugInfo() {} 34 | public function getIterator() {} 35 | public function exchangeArray($input) {} 36 | public function setIteratorClass($iteratorClass) {} 37 | public function getIteratorClass() {} 38 | } 39 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Coroutine-Socket.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\Coroutine; 8 | class Socket { 9 | 10 | public $fd = -1; 11 | public $errCode = 0; 12 | public $errMsg = ''; 13 | 14 | public function __construct($domain, $type, $protocol = null) {} 15 | public function bind($address, $port = null) {} 16 | public function listen($backlog = null) {} 17 | public function accept($timeout = null) {} 18 | public function connect($host, $port = null, $timeout = null) {} 19 | public function recv($length = null, $timeout = null) {} 20 | public function recvPacket($timeout = null) {} 21 | public function send($data, $timeout = null) {} 22 | public function sendFile($filename, $offset = null, $length = null) {} 23 | public function recvAll($length = null, $timeout = null) {} 24 | public function sendAll($data, $timeout = null) {} 25 | public function recvfrom(& $peername, $timeout = null) {} 26 | public function sendto($addr, $port, $data) {} 27 | public function getOption($level, $opt_name) {} 28 | public function setProtocol($settings) {} 29 | public function setOption($level, $opt_name, $opt_value) {} 30 | public function shutdown($how = null) {} 31 | public function cancel($event = null) {} 32 | public function close() {} 33 | public function getpeername() {} 34 | public function getsockname() {} 35 | } 36 | -------------------------------------------------------------------------------- /php_docs_code/co-/co-iterator.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace co; 8 | class iterator extends \ArrayIterator implements \Countable,\Serializable,\SeekableIterator,\ArrayAccess,\Traversable,\Iterator { 9 | 10 | const STD_PROP_LIST = 1; 11 | const ARRAY_AS_PROPS = 2; 12 | 13 | public function __construct($array = null, $flags = null) {} 14 | public function offsetExists($index) {} 15 | public function offsetGet($index) {} 16 | public function offsetSet($index, $newval) {} 17 | public function offsetUnset($index) {} 18 | public function append($value) {} 19 | public function getArrayCopy() {} 20 | public function count() {} 21 | public function getFlags() {} 22 | public function setFlags($flags) {} 23 | public function asort() {} 24 | public function ksort() {} 25 | public function uasort($cmp_function) {} 26 | public function uksort($cmp_function) {} 27 | public function natsort() {} 28 | public function natcasesort() {} 29 | public function unserialize($serialized) {} 30 | public function serialize() {} 31 | public function __unserialize($serialized) {} 32 | public function __serialize() {} 33 | public function __debugInfo() {} 34 | public function rewind() {} 35 | public function current() {} 36 | public function key() {} 37 | public function next() {} 38 | public function valid() {} 39 | public function seek($position) {} 40 | } 41 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Database-PDOConfig.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\Database; 8 | class PDOConfig { 9 | 10 | const DRIVER_MYSQL = 'mysql'; 11 | const DRIVER_PGSQL = 'pgsql'; 12 | protected $driver = 'mysql'; 13 | protected $host = '127.0.0.1'; 14 | protected $port = 3306; 15 | protected $unixSocket; 16 | protected $dbname = 'test'; 17 | protected $charset = 'utf8mb4'; 18 | protected $username = 'root'; 19 | protected $password = 'root'; 20 | protected $options = array ( 21 | ); 22 | 23 | public function getDriver() {} 24 | public function withDriver($driver) {} 25 | public function getHost() {} 26 | public function withHost($host) {} 27 | public function getPort() {} 28 | public function hasUnixSocket() {} 29 | public function getUnixSocket() {} 30 | public function withUnixSocket($unixSocket) {} 31 | public function withPort($port) {} 32 | public function getDbname() {} 33 | public function withDbname($dbname) {} 34 | public function getCharset() {} 35 | public function withCharset($charset) {} 36 | public function getUsername() {} 37 | public function withUsername($username) {} 38 | public function getPassword() {} 39 | public function withPassword($password) {} 40 | public function getOptions() {} 41 | public function withOptions($options) {} 42 | static public function getAvailableDrivers() {} 43 | } 44 | -------------------------------------------------------------------------------- /php_docs_code/swoole/swoole_timer_iterator.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | class swoole_timer_iterator extends \ArrayIterator implements \Countable,\Serializable,\SeekableIterator,\ArrayAccess,\Traversable,\Iterator { 8 | 9 | const STD_PROP_LIST = 1; 10 | const ARRAY_AS_PROPS = 2; 11 | 12 | public function __construct($array = null, $flags = null) {} 13 | public function offsetExists($index) {} 14 | public function offsetGet($index) {} 15 | public function offsetSet($index, $newval) {} 16 | public function offsetUnset($index) {} 17 | public function append($value) {} 18 | public function getArrayCopy() {} 19 | public function count() {} 20 | public function getFlags() {} 21 | public function setFlags($flags) {} 22 | public function asort() {} 23 | public function ksort() {} 24 | public function uasort($cmp_function) {} 25 | public function uksort($cmp_function) {} 26 | public function natsort() {} 27 | public function natcasesort() {} 28 | public function unserialize($serialized) {} 29 | public function serialize() {} 30 | public function __unserialize($serialized) {} 31 | public function __serialize() {} 32 | public function __debugInfo() {} 33 | public function rewind() {} 34 | public function current() {} 35 | public function key() {} 36 | public function next() {} 37 | public function valid() {} 38 | public function seek($position) {} 39 | } 40 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Timer-Iterator.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\Timer; 8 | class Iterator extends \ArrayIterator implements \Countable,\Serializable,\SeekableIterator,\ArrayAccess,\Traversable,\Iterator { 9 | 10 | const STD_PROP_LIST = 1; 11 | const ARRAY_AS_PROPS = 2; 12 | 13 | public function __construct($array = null, $flags = null) {} 14 | public function offsetExists($index) {} 15 | public function offsetGet($index) {} 16 | public function offsetSet($index, $newval) {} 17 | public function offsetUnset($index) {} 18 | public function append($value) {} 19 | public function getArrayCopy() {} 20 | public function count() {} 21 | public function getFlags() {} 22 | public function setFlags($flags) {} 23 | public function asort() {} 24 | public function ksort() {} 25 | public function uasort($cmp_function) {} 26 | public function uksort($cmp_function) {} 27 | public function natsort() {} 28 | public function natcasesort() {} 29 | public function unserialize($serialized) {} 30 | public function serialize() {} 31 | public function __unserialize($serialized) {} 32 | public function __serialize() {} 33 | public function __debugInfo() {} 34 | public function rewind() {} 35 | public function current() {} 36 | public function key() {} 37 | public function next() {} 38 | public function valid() {} 39 | public function seek($position) {} 40 | } 41 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Coroutine-Context.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\Coroutine; 8 | class Context extends \ArrayObject implements \Countable,\Serializable,\ArrayAccess,\Traversable,\IteratorAggregate { 9 | 10 | const STD_PROP_LIST = 1; 11 | const ARRAY_AS_PROPS = 2; 12 | 13 | public function __construct($input = null, $flags = null, $iterator_class = null) {} 14 | public function offsetExists($index) {} 15 | public function offsetGet($index) {} 16 | public function offsetSet($index, $newval) {} 17 | public function offsetUnset($index) {} 18 | public function append($value) {} 19 | public function getArrayCopy() {} 20 | public function count() {} 21 | public function getFlags() {} 22 | public function setFlags($flags) {} 23 | public function asort() {} 24 | public function ksort() {} 25 | public function uasort($cmp_function) {} 26 | public function uksort($cmp_function) {} 27 | public function natsort() {} 28 | public function natcasesort() {} 29 | public function unserialize($serialized) {} 30 | public function serialize() {} 31 | public function __unserialize($serialized) {} 32 | public function __serialize() {} 33 | public function __debugInfo() {} 34 | public function getIterator() {} 35 | public function exchangeArray($input) {} 36 | public function setIteratorClass($iteratorClass) {} 37 | public function getIteratorClass() {} 38 | } 39 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Coroutine-Iterator.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\Coroutine; 8 | class Iterator extends \ArrayIterator implements \Countable,\Serializable,\SeekableIterator,\ArrayAccess,\Traversable,\Iterator { 9 | 10 | const STD_PROP_LIST = 1; 11 | const ARRAY_AS_PROPS = 2; 12 | 13 | public function __construct($array = null, $flags = null) {} 14 | public function offsetExists($index) {} 15 | public function offsetGet($index) {} 16 | public function offsetSet($index, $newval) {} 17 | public function offsetUnset($index) {} 18 | public function append($value) {} 19 | public function getArrayCopy() {} 20 | public function count() {} 21 | public function getFlags() {} 22 | public function setFlags($flags) {} 23 | public function asort() {} 24 | public function ksort() {} 25 | public function uasort($cmp_function) {} 26 | public function uksort($cmp_function) {} 27 | public function natsort() {} 28 | public function natcasesort() {} 29 | public function unserialize($serialized) {} 30 | public function serialize() {} 31 | public function __unserialize($serialized) {} 32 | public function __serialize() {} 33 | public function __debugInfo() {} 34 | public function rewind() {} 35 | public function current() {} 36 | public function key() {} 37 | public function next() {} 38 | public function valid() {} 39 | public function seek($position) {} 40 | } 41 | -------------------------------------------------------------------------------- /php_docs_code/yaf/yaf-registry.php: -------------------------------------------------------------------------------- 1 | 9 | */ 10 | final class Yaf_Registry { 11 | 12 | protected static $_instance; 13 | 14 | protected $_entries; 15 | 16 | 17 | /** 18 | * Yaf_Registry implements singleton 19 | */ 20 | private function __construct() {} 21 | 22 | private function __clone() {} 23 | 24 | /** 25 | * Retrieve an item from registry 26 | * 27 | * @param string $name 28 | * 29 | * @return mixed 30 | */ 31 | static public function get($name) {} 32 | 33 | /** 34 | * Check whether an item exists 35 | * 36 | * @param string $name 37 | * 38 | * @return bool 39 | */ 40 | static public function has($name) {} 41 | 42 | /** 43 | * Add an item into registry 44 | * 45 | * @param string $name 46 | * @param string $value 47 | * 48 | * @return bool 49 | */ 50 | static public function set($name, $value) {} 51 | 52 | /** 53 | * Remove an item from registry 54 | * 55 | * @param string $name 56 | * 57 | * @return void 58 | */ 59 | static public function del($name) {} 60 | 61 | } 62 | -------------------------------------------------------------------------------- /php_docs_code/swoole/swoole_http_response.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | class swoole_http_response { 8 | 9 | public $fd = 0; 10 | public $socket; 11 | public $header; 12 | public $cookie; 13 | 14 | public function initHeader() {} 15 | public function cookie($name, $value = null, $expires = null, $path = null, $domain = null, $secure = null, $httponly = null, $samesite = null) {} 16 | public function setCookie($name, $value = null, $expires = null, $path = null, $domain = null, $secure = null, $httponly = null, $samesite = null) {} 17 | public function rawcookie($name, $value = null, $expires = null, $path = null, $domain = null, $secure = null, $httponly = null, $samesite = null) {} 18 | public function status($http_code, $reason = null) {} 19 | public function setStatusCode($http_code, $reason = null) {} 20 | public function header($key, $value, $ucwords = null) {} 21 | public function setHeader($key, $value, $ucwords = null) {} 22 | public function write($content) {} 23 | public function end($content = null) {} 24 | public function sendfile($filename, $offset = null, $length = null) {} 25 | public function redirect($location, $http_code = null) {} 26 | public function detach() {} 27 | static public function create($fd) {} 28 | public function upgrade() {} 29 | public function push($data, $opcode = null, $flags = null) {} 30 | public function recv() {} 31 | public function close() {} 32 | public function __destruct() {} 33 | } 34 | -------------------------------------------------------------------------------- /php_docs_code/yaf/yaf-route-regex.php: -------------------------------------------------------------------------------- 1 | 9 | */ 10 | final class Yaf_Route_Regex implements Yaf_Route_Interface { 11 | 12 | protected $_route; 13 | 14 | protected $_default; 15 | 16 | protected $_maps; 17 | 18 | protected $_verify; 19 | 20 | protected $_reverse; 21 | 22 | 23 | /** 24 | * The __construct purpose 25 | * 26 | * @param string $match 一个完整的正则表达式,用来匹配一个请求的uri,如果不能匹配,Yaf_Route_Regex 将返回FALSE。 27 | * @param array $route 当路由正则匹配成功请求uri时,Yaf_Route_Regex将会用它来决定哪一个m/c/a被路由。 在这个数组中无论是m/c/a都是最优的,如果你没有提供一个明确的值,它将会以默认方式被路由。 另外, 你也可以使用map的结果作为m/c/a的结果. 28 | * @param array $map 将匹配到的结果捕捉放到一个已经命名好的数组中。 29 | * @param array $verify 30 | */ 31 | public function __construct($match, $route, $map = null, $verify = null, $reverse = null) {} 32 | 33 | /** 34 | * The route purpose 35 | * 36 | * @param Yaf_Request_Abstract $request 37 | * 38 | * @return bool 39 | */ 40 | public function route($request) {} 41 | 42 | /** 43 | * 组合url 44 | * 45 | * @param array $info 需要传入一个数组,数组的key可以为:a、:c、:m,:a表示action,:c表示controller,:m表示module。 46 | * @param array $query 用户自定义的query string,将根据此路由规则拼接在url中 47 | * 48 | * @return string 49 | */ 50 | public function assemble($info, $query = null) {} 51 | 52 | } 53 | -------------------------------------------------------------------------------- /php_docs_code/yaf/yaf-view-interface.php: -------------------------------------------------------------------------------- 1 | 9 | */ 10 | abstract class Yaf_View_Interface { 11 | 12 | 13 | /** 14 | * 为视图引擎分配一个模板变量 15 | * 16 | * @param string $name 17 | * @param string $value 18 | * 19 | * @return bool 20 | */ 21 | abstract public function assign($name, $value = null); 22 | 23 | /** 24 | * 渲染一个视图模板, 并直接输出给请求端 25 | * 26 | * @param string $tpl 27 | * @param array $tpl_vars 28 | * 29 | * @return bool 30 | */ 31 | abstract public function display($tpl, $tpl_vars = null); 32 | 33 | /** 34 | * 渲染一个视图模板 35 | * 36 | * @param string $tpl 37 | * @param array $tpl_vars 38 | * 39 | * @return string 40 | */ 41 | abstract public function render($tpl, $tpl_vars = null); 42 | 43 | /** 44 | * The setScriptPath purpose 45 | * 46 | * @param string $template_dir 模板目录的绝对路径,默认的Yaf_Dispatcher会设置此目录为application.directory . "/views". 47 | * 48 | * @return void 49 | */ 50 | abstract public function setScriptPath($template_dir); 51 | 52 | /** 53 | * The getScriptPath purpose 54 | * 55 | * @return void 56 | */ 57 | abstract public function getScriptPath(); 58 | 59 | } 60 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-FastCGI-HttpResponse.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\FastCGI; 8 | class HttpResponse extends \Swoole\FastCGI\Response { 9 | 10 | protected $statusCode; 11 | protected $reasonPhrase; 12 | protected $headers = array ( 13 | ); 14 | protected $headersMap = array ( 15 | ); 16 | protected $setCookieHeaderLines = array ( 17 | ); 18 | protected $params = array ( 19 | ); 20 | protected $body = ''; 21 | protected $error = ''; 22 | 23 | public function __construct($records = null) {} 24 | public function getStatusCode() {} 25 | public function withStatusCode($statusCode) {} 26 | public function getReasonPhrase() {} 27 | public function withReasonPhrase($reasonPhrase) {} 28 | public function getHeader($name) {} 29 | public function getHeaders() {} 30 | public function withHeader($name, $value) {} 31 | public function withHeaders($headers) {} 32 | public function getSetCookieHeaderLines() {} 33 | public function withSetCookieHeaderLine($value) {} 34 | static public function verify($records) {} 35 | public function getParam($name) {} 36 | public function withParam($name, $value) {} 37 | public function withoutParam($name) {} 38 | public function getParams() {} 39 | public function withParams($params) {} 40 | public function withAddedParams($params) {} 41 | public function getBody() {} 42 | public function withBody($body) {} 43 | public function getError() {} 44 | public function withError($error) {} 45 | } 46 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Http-Response.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\Http; 8 | class Response { 9 | 10 | public $fd = 0; 11 | public $socket; 12 | public $header; 13 | public $cookie; 14 | 15 | public function initHeader() {} 16 | public function cookie($name, $value = null, $expires = null, $path = null, $domain = null, $secure = null, $httponly = null, $samesite = null) {} 17 | public function setCookie($name, $value = null, $expires = null, $path = null, $domain = null, $secure = null, $httponly = null, $samesite = null) {} 18 | public function rawcookie($name, $value = null, $expires = null, $path = null, $domain = null, $secure = null, $httponly = null, $samesite = null) {} 19 | public function status($http_code, $reason = null) {} 20 | public function setStatusCode($http_code, $reason = null) {} 21 | public function header($key, $value, $ucwords = null) {} 22 | public function setHeader($key, $value, $ucwords = null) {} 23 | public function write($content) {} 24 | public function end($content = null) {} 25 | public function sendfile($filename, $offset = null, $length = null) {} 26 | public function redirect($location, $http_code = null) {} 27 | public function detach() {} 28 | static public function create($fd) {} 29 | public function upgrade() {} 30 | public function push($data, $opcode = null, $flags = null) {} 31 | public function recv() {} 32 | public function close() {} 33 | public function __destruct() {} 34 | } 35 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-MultibyteStringObject.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole; 8 | class MultibyteStringObject extends \Swoole\StringObject { 9 | 10 | protected $string; 11 | 12 | public function length() {} 13 | public function indexOf($needle, $offset = null, $encoding = null) {} 14 | public function lastIndexOf($needle, $offset = null, $encoding = null) {} 15 | public function pos($needle, $offset = null, $encoding = null) {} 16 | public function rpos($needle, $offset = null, $encoding = null) {} 17 | public function ipos($needle, $encoding = null) {} 18 | public function substr($offset, $length = null, $encoding = null) {} 19 | public function chunk($splitLength = null, $limit = null) {} 20 | public function __construct($string = null) {} 21 | public function __toString() {} 22 | public function lower() {} 23 | public function upper() {} 24 | public function trim() {} 25 | public function lrim() {} 26 | public function rtrim() {} 27 | public function repeat($n) {} 28 | public function replace($search, $replace, & $count = null) {} 29 | public function startsWith($needle) {} 30 | public function contains($subString) {} 31 | public function endsWith($needle) {} 32 | public function split($delimiter, $limit = null) {} 33 | public function char($index) {} 34 | public function chunkSplit($chunkLength = null, $chunkEnd = null) {} 35 | public function toString() {} 36 | static protected function detectArrayType($value) {} 37 | } 38 | -------------------------------------------------------------------------------- /php_docs_code/swoole/swoole_async_client.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | class swoole_async_client { 8 | 9 | const MSG_OOB = 1; 10 | const MSG_PEEK = 2; 11 | const MSG_DONTWAIT = 64; 12 | const MSG_WAITALL = 256; 13 | const SHUT_RDWR = 2; 14 | const SHUT_RD = 0; 15 | const SHUT_WR = 1; 16 | public $errCode = 0; 17 | public $sock = -1; 18 | public $type = 0; 19 | public $setting; 20 | private $onConnect; 21 | private $onError; 22 | private $onReceive; 23 | private $onClose; 24 | private $onBufferFull; 25 | private $onBufferEmpty; 26 | private $onSSLReady; 27 | 28 | public function __construct($type) {} 29 | public function __destruct() {} 30 | public function set($settings) {} 31 | public function connect($host, $port = null, $timeout = null, $sock_flag = null) {} 32 | public function send($data, $flag = null) {} 33 | public function sendfile($filename, $offset = null, $length = null) {} 34 | public function sendto($ip, $port, $data) {} 35 | public function sleep() {} 36 | public function wakeup() {} 37 | public function pause() {} 38 | public function resume() {} 39 | public function shutdown($how) {} 40 | public function enableSSL($callback) {} 41 | public function getPeerCert() {} 42 | public function verifyPeerCert() {} 43 | public function isConnected() {} 44 | public function getsockname() {} 45 | public function getpeername() {} 46 | public function close($force = null) {} 47 | public function on($event_name, $callback) {} 48 | public function getSocket() {} 49 | } 50 | -------------------------------------------------------------------------------- /php_docs_code/swoole/swoole_http_client.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | class swoole_http_client { 8 | 9 | public $type = 0; 10 | public $errCode = 0; 11 | public $errMsg = ''; 12 | public $statusCode = 0; 13 | public $host; 14 | public $port = 0; 15 | public $ssl = false; 16 | public $requestMethod; 17 | public $requestHeaders; 18 | public $requestBody; 19 | public $uploadFiles; 20 | public $set_cookie_headers; 21 | public $downloadFile; 22 | public $headers; 23 | public $cookies; 24 | public $body; 25 | public $onConnect; 26 | public $onError; 27 | public $onMessage; 28 | public $onClose; 29 | 30 | public function __construct($host, $port = null, $ssl = null) {} 31 | public function __destruct() {} 32 | public function set($settings) {} 33 | public function setMethod($method) {} 34 | public function setHeaders($headers) {} 35 | public function setCookies($cookies) {} 36 | public function setData($data) {} 37 | public function addFile($path, $name, $type = null, $filename = null, $offset = null, $length = null) {} 38 | public function execute($path, $callback) {} 39 | public function push($data, $opcode = null, $flags = null) {} 40 | public function get($path, $callback) {} 41 | public function post($path, $data, $callback) {} 42 | public function upgrade($path, $callback) {} 43 | public function download($path, $file, $callback, $offset = null) {} 44 | public function isConnected() {} 45 | public function close() {} 46 | public function on($event_name, $callback) {} 47 | } 48 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Async-Client.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\Async; 8 | class Client { 9 | 10 | const MSG_OOB = 1; 11 | const MSG_PEEK = 2; 12 | const MSG_DONTWAIT = 64; 13 | const MSG_WAITALL = 256; 14 | const SHUT_RDWR = 2; 15 | const SHUT_RD = 0; 16 | const SHUT_WR = 1; 17 | public $errCode = 0; 18 | public $sock = -1; 19 | public $type = 0; 20 | public $setting; 21 | private $onConnect; 22 | private $onError; 23 | private $onReceive; 24 | private $onClose; 25 | private $onBufferFull; 26 | private $onBufferEmpty; 27 | private $onSSLReady; 28 | 29 | public function __construct($type) {} 30 | public function __destruct() {} 31 | public function set($settings) {} 32 | public function connect($host, $port = null, $timeout = null, $sock_flag = null) {} 33 | public function send($data, $flag = null) {} 34 | public function sendfile($filename, $offset = null, $length = null) {} 35 | public function sendto($ip, $port, $data) {} 36 | public function sleep() {} 37 | public function wakeup() {} 38 | public function pause() {} 39 | public function resume() {} 40 | public function shutdown($how) {} 41 | public function enableSSL($callback) {} 42 | public function getPeerCert() {} 43 | public function verifyPeerCert() {} 44 | public function isConnected() {} 45 | public function getsockname() {} 46 | public function getpeername() {} 47 | public function close($force = null) {} 48 | public function on($event_name, $callback) {} 49 | public function getSocket() {} 50 | } 51 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Http-Client.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\Http; 8 | class Client { 9 | 10 | public $type = 0; 11 | public $errCode = 0; 12 | public $errMsg = ''; 13 | public $statusCode = 0; 14 | public $host; 15 | public $port = 0; 16 | public $ssl = false; 17 | public $requestMethod; 18 | public $requestHeaders; 19 | public $requestBody; 20 | public $uploadFiles; 21 | public $set_cookie_headers; 22 | public $downloadFile; 23 | public $headers; 24 | public $cookies; 25 | public $body; 26 | public $onConnect; 27 | public $onError; 28 | public $onMessage; 29 | public $onClose; 30 | 31 | public function __construct($host, $port = null, $ssl = null) {} 32 | public function __destruct() {} 33 | public function set($settings) {} 34 | public function setMethod($method) {} 35 | public function setHeaders($headers) {} 36 | public function setCookies($cookies) {} 37 | public function setData($data) {} 38 | public function addFile($path, $name, $type = null, $filename = null, $offset = null, $length = null) {} 39 | public function execute($path, $callback) {} 40 | public function push($data, $opcode = null, $flags = null) {} 41 | public function get($path, $callback) {} 42 | public function post($path, $data, $callback) {} 43 | public function upgrade($path, $callback) {} 44 | public function download($path, $file, $callback, $offset = null) {} 45 | public function isConnected() {} 46 | public function close() {} 47 | public function on($event_name, $callback) {} 48 | } 49 | -------------------------------------------------------------------------------- /php_docs_code/swoole/swoole-async-http-client.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace swoole\async\http; 8 | class client { 9 | 10 | public $type = 0; 11 | public $errCode = 0; 12 | public $errMsg = ''; 13 | public $statusCode = 0; 14 | public $host; 15 | public $port = 0; 16 | public $ssl = false; 17 | public $requestMethod; 18 | public $requestHeaders; 19 | public $requestBody; 20 | public $uploadFiles; 21 | public $set_cookie_headers; 22 | public $downloadFile; 23 | public $headers; 24 | public $cookies; 25 | public $body; 26 | public $onConnect; 27 | public $onError; 28 | public $onMessage; 29 | public $onClose; 30 | 31 | public function __construct($host, $port = null, $ssl = null) {} 32 | public function __destruct() {} 33 | public function set($settings) {} 34 | public function setMethod($method) {} 35 | public function setHeaders($headers) {} 36 | public function setCookies($cookies) {} 37 | public function setData($data) {} 38 | public function addFile($path, $name, $type = null, $filename = null, $offset = null, $length = null) {} 39 | public function execute($path, $callback) {} 40 | public function push($data, $opcode = null, $flags = null) {} 41 | public function get($path, $callback) {} 42 | public function post($path, $data, $callback) {} 43 | public function upgrade($path, $callback) {} 44 | public function download($path, $file, $callback, $offset = null) {} 45 | public function isConnected() {} 46 | public function close() {} 47 | public function on($event_name, $callback) {} 48 | } 49 | -------------------------------------------------------------------------------- /php_docs_code/swoole/swoole_process.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | class swoole_process { 8 | 9 | const IPC_NOWAIT = 256; 10 | const PIPE_MASTER = 1; 11 | const PIPE_WORKER = 2; 12 | const PIPE_READ = 3; 13 | const PIPE_WRITE = 4; 14 | public $pipe; 15 | public $msgQueueId; 16 | public $msgQueueKey; 17 | public $pid; 18 | public $id; 19 | private $callback; 20 | 21 | public function __construct($callback, $redirect_stdin_and_stdout = null, $pipe_type = null, $enable_coroutine = null) {} 22 | public function __destruct() {} 23 | static public function wait($blocking = null) {} 24 | static public function signal($signal_no, $callback) {} 25 | static public function alarm($usec, $type = null) {} 26 | static public function kill($pid, $signal_no = null) {} 27 | static public function daemon($nochdir = null, $noclose = null, $pipes = null) {} 28 | static public function setaffinity($cpu_settings) {} 29 | public function set($settings) {} 30 | public function setTimeout($seconds) {} 31 | public function setBlocking($blocking) {} 32 | public function useQueue($key = null, $mode = null, $capacity = null) {} 33 | public function statQueue() {} 34 | public function freeQueue() {} 35 | public function start() {} 36 | public function write($data) {} 37 | public function close() {} 38 | public function read($size = null) {} 39 | public function push($data) {} 40 | public function pop($size = null) {} 41 | public function exit($exit_code = null) {} 42 | public function exec($exec_file, $args) {} 43 | public function exportSocket() {} 44 | public function name($process_name) {} 45 | } 46 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Process.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole; 8 | class Process { 9 | 10 | const IPC_NOWAIT = 256; 11 | const PIPE_MASTER = 1; 12 | const PIPE_WORKER = 2; 13 | const PIPE_READ = 3; 14 | const PIPE_WRITE = 4; 15 | public $pipe; 16 | public $msgQueueId; 17 | public $msgQueueKey; 18 | public $pid; 19 | public $id; 20 | private $callback; 21 | 22 | public function __construct($callback, $redirect_stdin_and_stdout = null, $pipe_type = null, $enable_coroutine = null) {} 23 | public function __destruct() {} 24 | static public function wait($blocking = null) {} 25 | static public function signal($signal_no, $callback) {} 26 | static public function alarm($usec, $type = null) {} 27 | static public function kill($pid, $signal_no = null) {} 28 | static public function daemon($nochdir = null, $noclose = null, $pipes = null) {} 29 | static public function setaffinity($cpu_settings) {} 30 | public function set($settings) {} 31 | public function setTimeout($seconds) {} 32 | public function setBlocking($blocking) {} 33 | public function useQueue($key = null, $mode = null, $capacity = null) {} 34 | public function statQueue() {} 35 | public function freeQueue() {} 36 | public function start() {} 37 | public function write($data) {} 38 | public function close() {} 39 | public function read($size = null) {} 40 | public function push($data) {} 41 | public function pop($size = null) {} 42 | public function exit($exit_code = null) {} 43 | public function exec($exec_file, $args) {} 44 | public function exportSocket() {} 45 | public function name($process_name) {} 46 | } 47 | -------------------------------------------------------------------------------- /php_docs_code/co.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | class co { 8 | 9 | 10 | static public function create($func, $params = null) {} 11 | static public function defer($callback) {} 12 | static public function set($options) {} 13 | static public function exists($cid) {} 14 | static public function yield() {} 15 | static public function suspend() {} 16 | static public function resume($cid) {} 17 | static public function stats() {} 18 | static public function getCid() {} 19 | static public function getuid() {} 20 | static public function getPcid($cid = null) {} 21 | static public function getContext($cid = null) {} 22 | static public function getBackTrace($cid = null, $options = null, $limit = null) {} 23 | static public function list() {} 24 | static public function listCoroutines() {} 25 | static public function enableScheduler() {} 26 | static public function disableScheduler() {} 27 | static public function gethostbyname($domain_name, $family = null, $timeout = null) {} 28 | static public function dnsLookup($domain_name, $timeout = null) {} 29 | static public function exec($command, $get_error_stream = null) {} 30 | static public function sleep($seconds) {} 31 | static public function fread($handle, $length = null) {} 32 | static public function fgets($handle) {} 33 | static public function fwrite($handle, $string, $length = null) {} 34 | static public function readFile($filename) {} 35 | static public function writeFile($filename, $data, $flags = null) {} 36 | static public function getaddrinfo($hostname, $family = null, $socktype = null, $protocol = null, $service = null, $timeout = null) {} 37 | static public function statvfs($path) {} 38 | } 39 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Coroutine.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole; 8 | class Coroutine { 9 | 10 | 11 | static public function create($func, $params = null) {} 12 | static public function defer($callback) {} 13 | static public function set($options) {} 14 | static public function exists($cid) {} 15 | static public function yield() {} 16 | static public function suspend() {} 17 | static public function resume($cid) {} 18 | static public function stats() {} 19 | static public function getCid() {} 20 | static public function getuid() {} 21 | static public function getPcid($cid = null) {} 22 | static public function getContext($cid = null) {} 23 | static public function getBackTrace($cid = null, $options = null, $limit = null) {} 24 | static public function list() {} 25 | static public function listCoroutines() {} 26 | static public function enableScheduler() {} 27 | static public function disableScheduler() {} 28 | static public function gethostbyname($domain_name, $family = null, $timeout = null) {} 29 | static public function dnsLookup($domain_name, $timeout = null) {} 30 | static public function exec($command, $get_error_stream = null) {} 31 | static public function sleep($seconds) {} 32 | static public function fread($handle, $length = null) {} 33 | static public function fgets($handle) {} 34 | static public function fwrite($handle, $string, $length = null) {} 35 | static public function readFile($filename) {} 36 | static public function writeFile($filename, $data, $flags = null) {} 37 | static public function getaddrinfo($hostname, $family = null, $socktype = null, $protocol = null, $service = null, $timeout = null) {} 38 | static public function statvfs($path) {} 39 | } 40 | -------------------------------------------------------------------------------- /php_docs_code/co-/co-http-client.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace co\http; 8 | class client { 9 | 10 | public $errCode = 0; 11 | public $errMsg = ''; 12 | public $connected = false; 13 | public $host = ''; 14 | public $port = 0; 15 | public $ssl = false; 16 | public $setting; 17 | public $requestMethod; 18 | public $requestHeaders; 19 | public $requestBody; 20 | public $uploadFiles; 21 | public $downloadFile; 22 | public $downloadOffset = 0; 23 | public $statusCode = 0; 24 | public $headers; 25 | public $set_cookie_headers; 26 | public $cookies; 27 | public $body = ''; 28 | 29 | public function __construct($host, $port = null, $ssl = null) {} 30 | public function __destruct() {} 31 | public function set($settings) {} 32 | public function getDefer() {} 33 | public function setDefer($defer = null) {} 34 | public function setMethod($method) {} 35 | public function setHeaders($headers) {} 36 | public function setBasicAuth($username, $password) {} 37 | public function setCookies($cookies) {} 38 | public function setData($data) {} 39 | public function addFile($path, $name, $type = null, $filename = null, $offset = null, $length = null) {} 40 | public function addData($path, $name, $type = null, $filename = null) {} 41 | public function execute($path) {} 42 | public function get($path) {} 43 | public function post($path, $data) {} 44 | public function download($path, $file, $offset = null) {} 45 | public function getBody() {} 46 | public function getHeaders() {} 47 | public function getCookies() {} 48 | public function getStatusCode() {} 49 | public function getHeaderOut() {} 50 | public function upgrade($path) {} 51 | public function push($data, $opcode = null, $flags = null) {} 52 | public function recv($timeout = null) {} 53 | public function close() {} 54 | } 55 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Coroutine-Http-Client.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\Coroutine\Http; 8 | class Client { 9 | 10 | public $errCode = 0; 11 | public $errMsg = ''; 12 | public $connected = false; 13 | public $host = ''; 14 | public $port = 0; 15 | public $ssl = false; 16 | public $setting; 17 | public $requestMethod; 18 | public $requestHeaders; 19 | public $requestBody; 20 | public $uploadFiles; 21 | public $downloadFile; 22 | public $downloadOffset = 0; 23 | public $statusCode = 0; 24 | public $headers; 25 | public $set_cookie_headers; 26 | public $cookies; 27 | public $body = ''; 28 | 29 | public function __construct($host, $port = null, $ssl = null) {} 30 | public function __destruct() {} 31 | public function set($settings) {} 32 | public function getDefer() {} 33 | public function setDefer($defer = null) {} 34 | public function setMethod($method) {} 35 | public function setHeaders($headers) {} 36 | public function setBasicAuth($username, $password) {} 37 | public function setCookies($cookies) {} 38 | public function setData($data) {} 39 | public function addFile($path, $name, $type = null, $filename = null, $offset = null, $length = null) {} 40 | public function addData($path, $name, $type = null, $filename = null) {} 41 | public function execute($path) {} 42 | public function get($path) {} 43 | public function post($path, $data) {} 44 | public function download($path, $file, $offset = null) {} 45 | public function getBody() {} 46 | public function getHeaders() {} 47 | public function getCookies() {} 48 | public function getStatusCode() {} 49 | public function getHeaderOut() {} 50 | public function upgrade($path) {} 51 | public function push($data, $opcode = null, $flags = null) {} 52 | public function recv($timeout = null) {} 53 | public function close() {} 54 | } 55 | -------------------------------------------------------------------------------- /php_docs_code/yaf/yaf-action-abstract.php: -------------------------------------------------------------------------------- 1 | 13 | */ 14 | abstract class Yaf_Action_Abstract extends Yaf_Controller_Abstract { 15 | 16 | public $actions; 17 | 18 | protected $_module; 19 | 20 | protected $_name; 21 | 22 | protected $_request; 23 | 24 | protected $_response; 25 | 26 | protected $_invoke_args; 27 | 28 | protected $_view; 29 | 30 | protected $_controller; 31 | 32 | 33 | /** 34 | * 执行动作 35 | * 36 | * @param mixed $arg 37 | * @param mixed $... 38 | * 39 | * @return mixed 40 | */ 41 | abstract public function execute(); 42 | 43 | /** 44 | * 得到控制器实例 45 | * 46 | * @return Yaf_Controller_Abstract 47 | */ 48 | public function getController() {} 49 | 50 | protected function render($tpl, $parameters = null) {} 51 | 52 | protected function display($tpl, $parameters = null) {} 53 | 54 | public function getRequest() {} 55 | 56 | public function getResponse() {} 57 | 58 | public function getModuleName() {} 59 | 60 | public function getView() {} 61 | 62 | public function initView($options = null) {} 63 | 64 | public function setViewpath($view_directory) {} 65 | 66 | public function getViewpath() {} 67 | 68 | public function forward($module, $controller = null, $action = null, $parameters = null) {} 69 | 70 | public function redirect($url) {} 71 | 72 | public function getInvokeArgs() {} 73 | 74 | public function getInvokeArg($name) {} 75 | 76 | public function __construct() {} 77 | 78 | private function __clone() {} 79 | 80 | } 81 | -------------------------------------------------------------------------------- /php_docs_code/yaf/yaf-router.php: -------------------------------------------------------------------------------- 1 | "$0", 15 | * "" => "/index.php" 16 | * ) 17 | * 如果使用Nginx,下面的跳转规则是有效的: 18 | * Nginx的跳转规则 19 | * 20 | * 21 | * @package Yaf 22 | * @author Leelmes 23 | */ 24 | final class Yaf_Router { 25 | 26 | protected $_routes; 27 | 28 | protected $_current; 29 | 30 | 31 | /** 32 | * Yaf_Router constructor 33 | */ 34 | public function __construct() {} 35 | 36 | /** 37 | * 往Router中添加新的路由 38 | * 39 | * @param string $name 40 | * @param Yaf_Route_Abstract $route 41 | * 42 | * @return Yaf_Router 43 | */ 44 | public function addRoute() {} 45 | 46 | /** 47 | * 向Router中添加配置文件中定义的路由 48 | * 49 | * @param Yaf_Config_Abstract $config 50 | * 51 | * @return void 52 | */ 53 | public function addConfig() {} 54 | 55 | /** 56 | * The route purpose 57 | * 58 | * @param Yaf_Request_Abstract $request 59 | * 60 | * @return bool 61 | */ 62 | public function route() {} 63 | 64 | /** 65 | * The getRoute purpose 66 | * 67 | * @param string $name 68 | * 69 | * @return void 70 | */ 71 | public function getRoute() {} 72 | 73 | /** 74 | * The getRoutes purpose 75 | * 76 | * @return void 77 | */ 78 | public function getRoutes() {} 79 | 80 | /** 81 | * 取得当前有效的路由名 82 | * 83 | * @return string 84 | */ 85 | public function getCurrentRoute() {} 86 | 87 | } 88 | -------------------------------------------------------------------------------- /php_docs_code/yaf/yaf-route-simple.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | final class Yaf_Route_Simple implements Yaf_Route_Interface { 13 | 14 | /** 15 | * Yaf_Route_Simple 会匹配请求中的query string,然后找到路由信息。 16 | * 你需要做的只是告诉 Yaf_Route_Simple,在$_GET中哪个是Module,哪个是Controller,哪个是Action。 17 | * Yaf_Route_Simple::route 总是会返回TRUE,所以把Yaf_Route_Simple放在路由堆栈前面是很重要的,否则其他所有的路由都可能不会被调用到。 18 | */ 19 | protected $controller; 20 | 21 | /** 22 | * Yaf_Route_Simple 会匹配请求中的query string,然后找到路由信息。 23 | * 你需要做的只是告诉 Yaf_Route_Simple,在$_GET中哪个是Module,哪个是Controller,哪个是Action。 24 | * Yaf_Route_Simple::route 总是会返回TRUE,所以把Yaf_Route_Simple放在路由堆栈前面是很重要的,否则其他所有的路由都可能不会被调用到。 25 | */ 26 | protected $module; 27 | 28 | /** 29 | * Yaf_Route_Simple 会匹配请求中的query string,然后找到路由信息。 30 | * 你需要做的只是告诉 Yaf_Route_Simple,在$_GET中哪个是Module,哪个是Controller,哪个是Action。 31 | * Yaf_Route_Simple::route 总是会返回TRUE,所以把Yaf_Route_Simple放在路由堆栈前面是很重要的,否则其他所有的路由都可能不会被调用到。 32 | */ 33 | protected $action; 34 | 35 | 36 | /** 37 | * Yaf_Route_Simple constructor 38 | * 39 | * @param string $module_name module信息的键名。 40 | * @param string $controller_name controller信息的键名。 41 | * @param string $action_name action信息的键名。 42 | */ 43 | public function __construct($module_name, $controller_name, $action_name) {} 44 | 45 | /** 46 | * Route a request 47 | * 48 | * @param Yaf_Request_Abstract $request 49 | * 50 | * @return bool 51 | */ 52 | public function route($request) {} 53 | 54 | /** 55 | * 组合url 56 | * 57 | * @param array $info 需要传入一个数组,数组中每个key可为:m、:c、:a,:m代表module,:c代表controller, :a代表action 58 | * @param array $query 用户自定义的query string,将根据此路由规则拼接在url中 59 | * 60 | * @return string 61 | */ 62 | public function assemble($info, $query = null) {} 63 | 64 | } 65 | -------------------------------------------------------------------------------- /php_docs_code/swoole.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | function swoole_version() {} 8 | function swoole_cpu_num() {} 9 | function swoole_last_error() {} 10 | function swoole_async_dns_lookup_coro($domain_name, $timeout = null) {} 11 | function swoole_async_set($settings) {} 12 | function swoole_coroutine_create($func, $params = null) {} 13 | function swoole_coroutine_defer($callback) {} 14 | function swoole_client_select(& $read_array, & $write_array, & $error_array, $timeout = null) {} 15 | function swoole_select(& $read_array, & $write_array, & $error_array, $timeout = null) {} 16 | function swoole_set_process_name($process_name) {} 17 | function swoole_get_local_ip() {} 18 | function swoole_get_local_mac() {} 19 | function swoole_strerror($errno, $error_type = null) {} 20 | function swoole_errno() {} 21 | function swoole_hashcode($data, $type = null) {} 22 | function swoole_get_mime_type($filename) {} 23 | function swoole_clear_dns_cache() {} 24 | function swoole_internal_call_user_shutdown_begin() {} 25 | function swoole_async_read($filename, $callback, $chunk_size = null, $offset = null) {} 26 | function swoole_async_write($filename, $content, $offset = null, $callback = null) {} 27 | function swoole_async_readfile($filename, $callback) {} 28 | function swoole_async_writefile($filename, $content, $callback = null, $flags = null) {} 29 | function swoole_async_dns_lookup($hostname, $callback) {} 30 | function swoole_event_add($fd, $read_callback, $write_callback = null, $events = null) {} 31 | function swoole_event_del($fd) {} 32 | function swoole_event_set($fd, $read_callback = null, $write_callback = null, $events = null) {} 33 | function swoole_event_isset($fd, $events = null) {} 34 | function swoole_event_dispatch() {} 35 | function swoole_event_defer($callback) {} 36 | function swoole_event_cycle($callback, $before = null) {} 37 | function swoole_event_write($fd, $data) {} 38 | function swoole_event_wait() {} 39 | function swoole_event_exit() {} 40 | function swoole_timer_set($settings) {} 41 | function swoole_timer_after($ms, $callback) {} 42 | function swoole_timer_tick($ms, $callback) {} 43 | function swoole_timer_exists($timer_id) {} 44 | function swoole_timer_info($timer_id) {} 45 | function swoole_timer_stats() {} 46 | function swoole_timer_list() {} 47 | function swoole_timer_clear($timer_id) {} 48 | function swoole_timer_clear_all() {} 49 | -------------------------------------------------------------------------------- /php_docs_code/yaf/yaf-plugin-abstract.php: -------------------------------------------------------------------------------- 1 | 14 | */ 15 | abstract class Yaf_Plugin_Abstract { 16 | 17 | 18 | /** 19 | * RouterStartup hook 20 | * 21 | * @param Yaf_Request_Abstract $request 22 | * @param Yaf_Response_Abstract $response 23 | * 24 | * @return void 25 | */ 26 | public function routerStartup($request, $response) {} 27 | 28 | /** 29 | * The routerShutdown purpose 30 | * 31 | * @param Yaf_Request_Abstract $request 32 | * @param Yaf_Response_Abstract $response 33 | * 34 | * @return void 35 | */ 36 | public function routerShutdown($request, $response) {} 37 | 38 | /** 39 | * The dispatchLoopStartup purpose 40 | * 41 | * @param Yaf_Request_Abstract $request 42 | * @param Yaf_Response_Abstract $response 43 | * 44 | * @return void 45 | */ 46 | public function dispatchLoopStartup($request, $response) {} 47 | 48 | /** 49 | * The dispatchLoopShutdown purpose 50 | * 51 | * @param Yaf_Request_Abstract $request 52 | * @param Yaf_Response_Abstract $response 53 | * 54 | * @return void 55 | */ 56 | public function dispatchLoopShutdown($request, $response) {} 57 | 58 | /** 59 | * The preDispatch purpose 60 | * 61 | * @param Yaf_Request_Abstract $request 62 | * @param Yaf_Response_Abstract $response 63 | * 64 | * @return void 65 | */ 66 | public function preDispatch($request, $response) {} 67 | 68 | /** 69 | * The postDispatch purpose 70 | * 71 | * @param Yaf_Request_Abstract $request 72 | * @param Yaf_Response_Abstract $response 73 | * 74 | * @return void 75 | */ 76 | public function postDispatch($request, $response) {} 77 | 78 | /** 79 | * The preResponse purpose 80 | * 81 | * @param Yaf_Request_Abstract $request 82 | * @param Yaf_Response_Abstract $response 83 | * 84 | * @return void 85 | */ 86 | public function preResponse($request, $response) {} 87 | 88 | } 89 | -------------------------------------------------------------------------------- /php_docs_code/swoole/swoole_http_server.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | class swoole_http_server extends \Swoole\Server { 8 | 9 | public $setting; 10 | public $connections; 11 | public $host = ''; 12 | public $port = 0; 13 | public $type = 0; 14 | public $mode = 0; 15 | public $ports; 16 | public $master_pid = 0; 17 | public $manager_pid = 0; 18 | public $worker_id = -1; 19 | public $taskworker = false; 20 | public $worker_pid = 0; 21 | private $onRequest; 22 | 23 | public function __construct($host, $port = null, $mode = null, $sock_type = null) {} 24 | public function __destruct() {} 25 | public function listen($host, $port, $sock_type) {} 26 | public function addlistener($host, $port, $sock_type) {} 27 | public function on($event_name, $callback) {} 28 | public function getCallback($event_name) {} 29 | public function set($settings) {} 30 | public function start() {} 31 | public function send($fd, $send_data, $server_socket = null) {} 32 | public function sendto($ip, $port, $send_data, $server_socket = null) {} 33 | public function sendwait($conn_fd, $send_data) {} 34 | public function exists($fd) {} 35 | public function exist($fd) {} 36 | public function protect($fd, $is_protected = null) {} 37 | public function sendfile($conn_fd, $filename, $offset = null, $length = null) {} 38 | public function close($fd, $reset = null) {} 39 | public function confirm($fd) {} 40 | public function pause($fd) {} 41 | public function resume($fd) {} 42 | public function task($data, $worker_id = null, $finish_callback = null) {} 43 | public function taskwait($data, $timeout = null, $worker_id = null) {} 44 | public function taskWaitMulti($tasks, $timeout = null) {} 45 | public function taskCo($tasks, $timeout = null) {} 46 | public function finish($data) {} 47 | public function reload() {} 48 | public function shutdown() {} 49 | public function stop($worker_id = null) {} 50 | public function getLastError() {} 51 | public function heartbeat($reactor_id) {} 52 | public function getClientInfo($fd, $reactor_id = null) {} 53 | public function getClientList($start_fd, $find_count = null) {} 54 | public function connection_info($fd, $reactor_id = null) {} 55 | public function connection_list($start_fd, $find_count = null) {} 56 | public function sendMessage($message, $dst_worker_id) {} 57 | public function addProcess($process) {} 58 | public function stats() {} 59 | public function getSocket($port = null) {} 60 | public function bind($fd, $uid) {} 61 | public function after($ms, $callback) {} 62 | public function tick($ms, $callback) {} 63 | public function clearTimer($timer_id) {} 64 | public function defer($callback) {} 65 | } 66 | -------------------------------------------------------------------------------- /php_docs_code/swoole/Swoole-Http-Server.php: -------------------------------------------------------------------------------- 1 | 6 | */ 7 | namespace Swoole\Http; 8 | class Server extends \Swoole\Server { 9 | 10 | public $setting; 11 | public $connections; 12 | public $host = ''; 13 | public $port = 0; 14 | public $type = 0; 15 | public $mode = 0; 16 | public $ports; 17 | public $master_pid = 0; 18 | public $manager_pid = 0; 19 | public $worker_id = -1; 20 | public $taskworker = false; 21 | public $worker_pid = 0; 22 | private $onRequest; 23 | 24 | public function __construct($host, $port = null, $mode = null, $sock_type = null) {} 25 | public function __destruct() {} 26 | public function listen($host, $port, $sock_type) {} 27 | public function addlistener($host, $port, $sock_type) {} 28 | public function on($event_name, $callback) {} 29 | public function getCallback($event_name) {} 30 | public function set($settings) {} 31 | public function start() {} 32 | public function send($fd, $send_data, $server_socket = null) {} 33 | public function sendto($ip, $port, $send_data, $server_socket = null) {} 34 | public function sendwait($conn_fd, $send_data) {} 35 | public function exists($fd) {} 36 | public function exist($fd) {} 37 | public function protect($fd, $is_protected = null) {} 38 | public function sendfile($conn_fd, $filename, $offset = null, $length = null) {} 39 | public function close($fd, $reset = null) {} 40 | public function confirm($fd) {} 41 | public function pause($fd) {} 42 | public function resume($fd) {} 43 | public function task($data, $worker_id = null, $finish_callback = null) {} 44 | public function taskwait($data, $timeout = null, $worker_id = null) {} 45 | public function taskWaitMulti($tasks, $timeout = null) {} 46 | public function taskCo($tasks, $timeout = null) {} 47 | public function finish($data) {} 48 | public function reload() {} 49 | public function shutdown() {} 50 | public function stop($worker_id = null) {} 51 | public function getLastError() {} 52 | public function heartbeat($reactor_id) {} 53 | public function getClientInfo($fd, $reactor_id = null) {} 54 | public function getClientList($start_fd, $find_count = null) {} 55 | public function connection_info($fd, $reactor_id = null) {} 56 | public function connection_list($start_fd, $find_count = null) {} 57 | public function sendMessage($message, $dst_worker_id) {} 58 | public function addProcess($process) {} 59 | public function stats() {} 60 | public function getSocket($port = null) {} 61 | public function bind($fd, $uid) {} 62 | public function after($ms, $callback) {} 63 | public function tick($ms, $callback) {} 64 | public function clearTimer($timer_id) {} 65 | public function defer($callback) {} 66 | } 67 | --------------------------------------------------------------------------------