JavaScript stream_context_get_params
!No description available for stream_context_get_params. @php.js developers: Please update the function summary text file.
1 2 3 4 56 7 8 9 1011 12 | function stream_context_get_params (stream_or_context) { // !No description available for stream_context_get_params. @php.js developers: Please update the function summary text file. // // version: 1008.1718 // discuss at: http://phpjs.org/functions/stream_context_get_params // + original by: Brett Zamir (http://brett-zamir.me) // * example 1: var params = {notification:function (notification_code, severity, message, message_code, bytes_transferred, bytes_max) {}}; // * example 1: var context = stream_context_create({}, params); // * example 1: stream_context_get_params(context); // * returns 1: {notification:function (notification_code, severity, message, message_code, bytes_transferred, bytes_max) {}, options:{}} return stream_or_context.stream_params; } |
Examples
Running
1 2 3 | var params = {notification:function (notification_code, severity, message, message_code, bytes_transferred, bytes_max) {}}; var context = stream_context_create({}, params); stream_context_get_params(context); |
Should return
1 | {notification:function (notification_code, severity, message, message_code, bytes_transferred, bytes_max) {}, options:{}} |
Dependencies
No dependencies, you can use this function standalone.
Open syntax issues
php.js uses JsLint to help us keep our code consistent and prevent some common bugs.
Eventually we want all code to pass or at least take into consideration most fixes suggested by JsLint, following this JsLint configuration we’ve decided on.
Authors
Thanks to the following developers, you get to have stream_context_get_params goodness in JavaScript.
No comments yet. Be the first!
spread the word:
Use any PHP function in JavaScript
These kind folks have already donated: @HalfWinter, Paulo Freitas, Andros Peña Romo, Nitin Gupta, @nikosdion, Anonymous, Anonymous and Shawn Houser.
<your name here>