Lines Matching refs:context
140 protected function &_open($streamName, Hoa\Stream\Context $context = null)
142 if (null === $context) {
145 $out = fopen($streamName, 'rb', false, $context->getContext());
193 A context is represented by the `Hoa\Stream\Context` class. It
195 [See the options and parameters for the `http://` stream wrapper](http://php.net/context.http)
196 as an example of possible ones. Thanks to context, this is possible to
201 To use them, first let's define the context:
205 $context = Hoa\Stream\Context::getInstance($contextId);
206 $context->setOptions([
211 And thus, we can ask a stream to use this context based on the chosen
212 context ID, like this:
265 Passing `null` as a second argument means: No context. Note that we
272 —in the context of stream— refers to them as notifications. Let's take
278 null, // context ID