POMO_CachedFileReader::__construct() WordPress Method
The POMO_CachedFileReader::__construct() method is used to create a new cached file reader object. This object can be used to read data from a cache file and return it to the caller. The cached file reader object will keep track of the cache file's modification time and will automatically update the cache file if it has been modified since the last time it was read.
POMO_CachedFileReader::__construct( $filename ) #
PHP5 constructor.
Source
File: wp-includes/pomo/streams.php
public function __construct( $filename ) { parent::__construct(); $this->_str = file_get_contents( $filename ); if ( false === $this->_str ) { return false; } $this->_pos = 0; }
Expand full source codeCollapse full source codeView on TracView on GitHub