Recommend this page to a friend! |
All class groups | > | All authors | > | Classes of Shaun Thomas (1) | > | Mission progress status | > | Reputation |
|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z |
| ||||
The Buffer class was created with the desire to be able to capture all print statements for easy buffering. Essentially this class is just a wrapper for the ob PHP functions. I have added the ability to do inline str_replaces in the buffer in case anyone wants to use this class in a template system. This lets a template system print directly to PHP's output buffer and modify the results. This keeps the programmer from having to maintain a gigantic string object through their code. The cache class compliments this by allowing the generated buffer text to be saved directly to a file generated and maintained by the cache class. Using the example file, all cached pages are regenerated upon expiration, massively reducing the load on database or computationaly heavy pages. This and other projects available from: http://www.kildosphere.com/projects |
Ratings | Utility | Consistency | Documentation | Examples | Tests | Videos | Overall | Rank |
All time: | 91% | 83% | - | - | - | - | 54% | 2122 |
Month: | Not yet rated by the users |
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z |