Lines Matching refs:is

14   Hoa is a <strong>modular</strong>, <strong>extensible</strong> and
26 This library is a high-level abstraction over PHP streams. It
45 This library is the foundation of several others, e.g.
86 in term of interfaces, i.e. stream capabilities. This is almost the
95 capabilities. This is very useful when designing a function, or a
96 library, working with streams. It ensures the stream is typed and
126 Finally, the highest interface is `Stream`, defining the `getStream`
132 The main `Hoa\Stream\Stream` class is abstract. Two method
188 The `Stream` capability is already implemented by the
193 A context is represented by the `Hoa\Stream\Context` class. It
196 as an example of possible ones. Thanks to context, this is possible to
243 Remember that a stream is not necessarily a file. It can be a socket,
247 firing another event… There is no rule. The observed stream is still
250 This event is fired when calling the `Hoa\Stream\Stream::close`
254 an instance of our stream without opening it. This action is called
271 fired. The term “listener” is the one used everywhere in Hoa, but PHP
296 echo 'MIME-Type is ', $bucket->getData()['message'], "\n";
302 echo 'Size is ', $bucket->getData()['max'], "\n";
320 MIME-Type is text/html; charset=UTF-8
323 MIME-Type is text/html; charset=UTF-8
328 The exhaustive list of listeners is the following:
330 * `authrequire`, when the authentication is required,
331 * `authresult`, when the result of the authentication is known,
332 * `complete`, when the stream is complete (meaning can vary a lot here),
333 * `connect`, when the stream is connected (meaning can vary a lot here),
335 * `mimetype`, when the MIME-type of the stream is known,
336 * `progress`, when there is significant progression,
337 * `redirect`, when the stream is redirected to another stream,
338 * `resolve`, when the stream is resolved (meaning can vary a lot here),
339 * `size`, when the size of the stream is known.
341 All listener bucket data is an array containing the following pairs:
343 * `code`, one of the `STREAM_NOTIFY_*` constant, which is basically
357 This is possible for the stream implementer to add more
372 and `getRegistered` methods are also helpful. A wrapper is represented by a class:
379 interface. It is a combination of two other interfaces in the same
410 An example of an implementation is the `hoa://` scheme in
417 A stream is like a pipe, with an input, and an output. This is
428 and an associated name. This is not mandatory but highly encouraged.
430 Once a filter is registered, we can apply it on a stream by using its
436 Finally, we use the stream as usual. A stream is not necessarily an
491 A filter is a low-level stream API. It integrates with all kind of
492 streams. And this is a very powerful tool. We mentionned some usages
499 The `Hoa\Stream\Filter\LateComputed` class is a special filter. It
503 content of the stream. This is really a buffer. Why would it be
506 rewrite parts of the file. This technique is particularily useful to
509 This is also possible to auto-apply a filter with… a wrapper! For
526 content is written on the disk. Stream capabiilities are not the same
561 Hoa is under the New BSD License (BSD-3-Clause). Please, see