Overview

Packages

  • Luxor
  • None

Classes

  • Luxor
  • Luxor_Driver
  • Luxor_Driver_sql
  • Luxor_Files
  • Luxor_Files_plain
  • Luxor_Lang
  • Luxor_Lang_Generic
  • Luxor_SimpleParse
  • Luxor_Tagger
  • Overview
  • Package
  • Class
  • Tree

Class Luxor_Files_plain

Luxor repository implementation for a simple filesystem hierarchy.

$Horde: luxor/lib/Files/plain.php,v 1.18 2006/05/23 02:27:39 selsky Exp $

Luxor_Files
Extended by Luxor_Files_plain
Package: Luxor
Author: Jan Schneider jan@horde.org
Since: Luxor 0.1
Located at Files/plain.php
Methods summary
public
# Luxor_Files_plain( array $params = array() )

Constructs a new filesystem handler.

Constructs a new filesystem handler.

Parameters

$params
A hash containing parameters.
public
# getFiletime( mixed $filename )
public
# getFilesize( mixed $filename )
public ressource
# getFileHandle( string $filename )

Returns a file handler.

Returns a file handler.

Parameters

$filename
The name of the file to open.

Returns

ressource
A handler of the file or false on error.
public string
# tmpFile( string $filename )

Creates a temporary copy of a file.

Creates a temporary copy of a file.

Parameters

$filename
The name of the file to be copied.

Returns

string

The file name of the temporary copy or false if the file couldn't be copied.

public array
# getDir( string $path, mixed $release = '' )

Returns a directory's content. Backup files are skipped and directories suffixed with a slash.

Returns a directory's content. Backup files are skipped and directories suffixed with a slash.

Parameters

$path
The directory to list.
$release

Returns

array

An array containing all directories and files of the directory or PEAR_Error if the directory couldn't be read.

public string
# toReal( string $pathname )

Returns the full path to a file.

Returns the full path to a file.

Parameters

$pathname
The internally used (relative) name of the file.

Returns

string
The full path to the file.
public boolean
# isDir( string $pathname )

Checks if the given path name is a directory.

Checks if the given path name is a directory.

Parameters

$pathname
The path name to check.

Returns

boolean
True if the path name was a directory.
public boolean
# isFile( string $pathname )

Checks if the given path name is a file.

Checks if the given path name is a file.

Parameters

$pathname
The path name to check.

Returns

boolean
True if the path name was a file.
public
# getIndex( mixed $pathname )
public
# getAnnotations( mixed $pathname )
Methods inherited from Luxor_Files
factory()
Properties summary
public array $_params

Hash containing parameters.

Hash containing parameters.

# array()
API documentation generated by ApiGen