fileObject  (since version 2.0)
Type Object
Constants
string MODE_RANDOM = " r+w+ "
Not yet documented.
string MODE_READ = " r+ "
Not yet documented.
string MODE_WRITE = " w+ "
Not yet documented.
Description
This is an OOP helper class.
It provides the same functionality like fopen, fgets, fclose etc...
But each opened file is an object.
Examples
<?php
    $file 
BRICKOO::GetObject ('fileObject' , array ('ECMASPacker.js'fileObject::MODE_READ));
    
    if (
$file->isOpen ())
    {
        while (! 
$file->eof ())
        {
            echo 
$file->getS ();        
        }        
        
// Releasing the object and closing the file.
        
unset ($file);
    }
?>

Last change 10/15/2009




Administration