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;
		}

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.