yana

phpDocumentor v 1.4.0

Class FileSystemResource

Description

«abstract» filesystem resource
This is an abstract super-class for all filesystem wrappers.
For examples: resources may be files of any type, or directories.
All subclasses should implement the abstract functions read() and isEmpty(). You are also encouraged to re-implement the function toString().
  • abstract:
  • access: public
Object
   |
   --FileSystemResource
Method Summary

Direct descendents

Class Description
Dir Manipulate a directory
Executeable handle php files
FileReadonly checked reading of file sources

Methods

constructor
FileSystemResource FileSystemResource (
string $filename
)
List of parameters:
Name Type Description
$filename string
Description:
Create a new instance of this class.
compare with another object
bool equals (
object $anotherObject
)
List of parameters:
Name Type Description
$anotherObject object
Description:
Returns bool(true) if this object and $anotherObject are equal and bool(false) otherwise.
Two instances are considered equal if and only if they are both objects of the same class and they both refer to the same filesystem resource.
  • access: public

Redefinition of: Object::equals()

return true, if the input stream resource exists
bool exists ()
Description:
  • access: public

Redefined in descendants as:
return stream contents
string get ()
Description:
  • access: public

Redefined in descendants as:
get time when file was last modified
int getLastModified ()
Description:
Returns the file MTIME value (from cached value). The result is an UNIX timestamp (UTC), or bool(false) if an error occurs.
  • since: 2.8.5
  • access: public
get path to the resource
string getPath ()
Description:
Returns a string with the path and name of the currently open resource (directory or file).
  • access: public
  • name: FileSystemResource::getPath()
«abstract» read contents of resource
bool read ()
Description:
Since this is an abstract method, it is to implemented in the sub-classes.
  • abstract:
  • access: public

Redefined in descendants as:
inherited from base classes

Inherited From Object

Documentation generated on Sat, 03 Jan 2009 22:22:25 +0100 by phpDocumentor 1.4.0

yana author: Thomas MeyerHomepage: www.yanaframework.net