POMO_CachedFileReader
Reads the contents of the file in the beginning.
Description Description
Source Source
File: wp-includes/pomo/streams.php
class POMO_CachedFileReader extends POMO_StringReader { /** * PHP5 constructor. */ function __construct( $filename ) { parent::POMO_StringReader(); $this->_str = file_get_contents( $filename ); if ( false === $this->_str ) { return false; } $this->_pos = 0; } /** * PHP4 constructor. */ public function POMO_CachedFileReader( $filename ) { self::__construct( $filename ); } }
Expand full source code Collapse full source code View on Trac
Methods Methods
- __construct — PHP5 constructor.
- POMO_CachedFileReader — PHP4 constructor.