From 9cf46353a10d64d480efe6aa4d0c0f707620cc43 Mon Sep 17 00:00:00 2001 From: Hannes Magnusson Date: Fri, 20 Mar 2009 12:05:11 +0000 Subject: [PATCH] Initial docs for stream_is_local() and stream_context_get_params() git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@277514 c90b9560-bf6c-de11-be94-00142212c4b1 --- .../functions/stream-context-get-params.xml | 113 ++++++++++++++++++ .../stream/functions/stream-is-local.xml | 103 ++++++++++++++++ reference/stream/versions.xml | 3 +- 3 files changed, 218 insertions(+), 1 deletion(-) create mode 100644 reference/stream/functions/stream-context-get-params.xml create mode 100644 reference/stream/functions/stream-is-local.xml diff --git a/reference/stream/functions/stream-context-get-params.xml b/reference/stream/functions/stream-context-get-params.xml new file mode 100644 index 0000000000..4531023b33 --- /dev/null +++ b/reference/stream/functions/stream-context-get-params.xml @@ -0,0 +1,113 @@ + + + + + + stream_context_get_params + Retrieves parameters from a context + + + + &reftitle.description; + + arraystream_context_get_params + resourcestream_or_context + + + Retrieves parameter and options information from the stream or context. + + + + + &reftitle.parameters; + + + + stream_or_context + + + A stream resource or a + context resource + + + + + + + + + &reftitle.returnvalues; + + Returns an associate array containing all context options and parameters. + + + + + &reftitle.examples; + + + <function>stream_context_get_params</function> example + + Basic usage example + + + "stream_notification_callback"); +stream_context_set_params($ctx, $params); + +var_dump(stream_context_get_params($ctx)); +?> +]]> + + &example.outputs.similar; + + + string(28) "stream_notification_callback" + ["options"]=> + array(0) { + } +} +]]> + + + + + + + &reftitle.seealso; + + + stream_context_set_option + stream_context_get_params + stream_context_set_params + + + + + + + + diff --git a/reference/stream/functions/stream-is-local.xml b/reference/stream/functions/stream-is-local.xml new file mode 100644 index 0000000000..78572afc2e --- /dev/null +++ b/reference/stream/functions/stream-is-local.xml @@ -0,0 +1,103 @@ + + + + + + stream_is_local + Checks if a stream is a local stream + + + + &reftitle.description; + + boolstream_is_local + mixedstream_or_url + + + Checks if a stream, or a URL, is a local one or not. + + + + + &reftitle.parameters; + + + + stream_or_url + + + The stream resource or URL to check. + + + + + + + + + &reftitle.returnvalues; + + &return.success; + + + + + &reftitle.examples; + + + <function>stream_is_local</function> example + + Basic usage example. + + + +]]> + + &example.outputs.similar; + + + + + + + + + + + + diff --git a/reference/stream/versions.xml b/reference/stream/versions.xml index f8e6b95bba..95fda35887 100644 --- a/reference/stream/versions.xml +++ b/reference/stream/versions.xml @@ -1,5 +1,5 @@ - + @@ -11,6 +11,7 @@ +