POMO_CachedFileReader

Reads the contents of the file in the beginning.

Defined (1)

The class is defined in the following location(s).

/wp-includes/pomo/streams.php  
  1. class POMO_CachedFileReader extends POMO_StringReader { 
  2. /** 
  3. * PHP5 constructor. 
  4. */ 
  5. function __construct( $filename ) { 
  6. parent::POMO_StringReader(); 
  7. $this->_str = file_get_contents($filename); 
  8. if (false === $this->_str) 
  9. return false; 
  10. $this->_pos = 0; 
  11.  
  12. /** 
  13. * PHP4 constructor. 
  14. */ 
  15. public function POMO_CachedFileReader( $filename ) { 
  16. self::__construct( $filename );