>> YANA 4 PHP Framework >> Docs For Class InputStream

Class InputStream

Description

«abstract» InputStream

This is an abstract super-class for all filesystem wrappers.

  • access: public
  • abstract:

Located in /includes/class_inputstream.php

Object
   |
   --InputStream
Method Summary

Direct descendents

Class Description
DirStream Manipulate a directory
Executeable handle php files
SecureInputStream checked reading of file sources

Methods

constructor
InputStream InputStream (
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:
Alias of InputStream::getPath()
string getFilename ()
Description:
  • deprecated: 2.9 RC3
  • access: public
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).

}

  • name: InputStream::getPath()
  • access: public
inherited from base classes

Inherited From Object

Documentation generated on Sun, 11 Mar 2007 15:02:36 +0100 by phpDocumentor 1.3.1

yana author: Thomas MeyerHomepage: www.yanaframework.net