|Last Updated||Ratings||Unique User Downloads||Download Rankings|
|2014-07-27 (4 years ago)||64%||Total: 348||All time: 6,832 This week: 628|
|obpipe 1.0||GNU General Publi...||5.0||PHP 5, Content management|
This class can manipulate PHP output with named pipe buffers.
OBPipe and SOBPipe are two classes that allows you to handle output buffering as if you were writing to different pipes. This makes it possible to reorder the output before it is actually written.
Terminate the ob_handler
Select which pipe to write to
Get the name of the current pipe
Clean the named pipe
Remove the named pipe
Internal function that collects the data from the ob_handler and puts it in the correvt pipe
Returns the content of the named pipe and empties its content
Return the content of the named pipe without changing its content
Returns the length if the string in the specified pipe
Collects the complete output stored in all pipes
Get the names of all pipes
Assign which pipes should exist and in which order. Any existing pipe will be intact and any new pipe will be created. If a pipe doesn't exist in the array then its content will be removed.
SOBPipe is a static wrapper for the OBPipe
Make sure there is an instance to work with. This is called by an function so there is really no need to call it explicitly
Activate the given named pipe. Will be created if it doesn't exist
Return the name of the current pipe
Remove the content from the named pipe
Remove the named pipe. Any content will be removed
Return the content of the named pipe. The content will be removed from the handler
Return the content of the named pipe. The content will be unchanged in the handler
Return the length of the named pipe
Return the name of all pipes
Set the order of the pipes in the handler. Any named pipe that doesn't exist will be created and any pipe that isn't listed will be removed
Terminate the static handler
If the name of a pipe is false (boolean) an unnamed pipe will be used instead. The content of the unnamed pipe will always be presented before the content of the named handlers.
<?php include('../obpipe.php'); $pipe = new OBPipe(); $pipe->activate('alpha'); echo "Hello"; $pipe->activate('bravo'); echo ", world!"; ?>
Will print "Hello, world!"
|helloworld.php||Example||A simple Hello, world! demo|
|helloworld2.php||Example||A simple Hello, world! demo|
|helloworld3.php||Example||A simple Hello, world! demo|
|html.php||Example||A simple demo of creating an html page|
|html2.php||Example||A simple demo of creating an html page|
|html3.php||Example||A simple demo of creating an html page|
|html4.php||Example||A simple demo of creating an html page|
|Version Control||Unique User Downloads||Download Rankings|