|Info||View files (11)||Download .zip||Reputation||Support forum||Blog||Links|
|Last Updated||Ratings||Unique User Downloads||Download Rankings|
|2023-05-23 (2 days ago)||64%||Total: 352 This week: 5||All time: 6,955 This week: 97|
|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!"
|demo (7 files)|
|doc (1 file)|
|obpipe.php||Class||The main class|
|README.md||Data||Updated readme to markdown|
|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|
|obpipe.doc||Doc.||A simple documentation|
|Version Control||Unique User Downloads||Download Rankings|
|Applications that use this package|
If you know an application of this package, send a message to the author to add a link here.