File_Fortune
[ class tree: File_Fortune ] [ index: File_Fortune ] [ all elements ]

Element index for package File_Fortune

[ a ] [ c ] [ d ] [ e ] [ f ] [ g ] [ k ] [ m ] [ n ] [ o ] [ p ] [ r ] [ s ] [ u ] [ v ] [ _ ]

_

$_changed
in file Fortune.php, variable File_Fortune::$_changed
    Flag - has an operation changed the file?
$_curOffset
in file Fortune.php, variable File_Fortune::$_curOffset
    Current offset (used by iterator)
$_directory
in file Fortune.php, variable File_Fortune::$_directory
    Directory containing fortune files
$_file
in file Fortune.php, variable File_Fortune::$_file
    Fortune file filehandle
$_filename
in file Fortune.php, variable File_Fortune::$_filename
    Name of fortune file to use
$_files
in file Fortune.php, variable File_Fortune::$_files
    Array of fortune files found in $_directory
$_flags
in file Fortune.php, variable File_Fortune::$_flags
    Bit field for flags
$_fortunes
in file Fortune.php, variable File_Fortune::$_fortunes
    Array of fortunes; unset by default.
$_headerFile
in file Fortune.php, variable File_Fortune::$_headerFile
    Name of fortune header file (.dat file)
$_noHeader
in file Fortune.php, variable File_Fortune::$_noHeader
    Flag indicating whether or not a header file is present. Defaults to false.
_close
in file Fortune.php, method File_Fortune::_close()
    Close fortune file
_computeHeader
in file Fortune.php, method File_Fortune::_computeHeader()
    Compute fortune file header information
_getAll
in file Fortune.php, method File_Fortune::_getAll()
    Retrieve all fortunes from the current active file
_getOne
in file Fortune.php, method File_Fortune::_getOne()
    Retrieve a single fortune by offset
_getRandomFile
in file Fortune.php, method File_Fortune::_getRandomFile()
    Randomly select a fortune file from a registered directory
_initChanges
in file Fortune.php, method File_Fortune::_initChanges()
    Initialize changes
_offsetExists
in file Fortune.php, method File_Fortune::_offsetExists()
    Retrieve by offset in file
_open
in file Fortune.php, method File_Fortune::_open()
    Open a fortune file
_readFromFile
in file Fortune.php, method File_Fortune::_readFromFile()
    Read a fortune from the file
_readHeader
in file Fortune.php, method File_Fortune::_readHeader()
    Read a fortune database header file
_save
in file Fortune.php, method File_Fortune::_save()
    Save changes to disc
_traverseDirectory
in file Fortune.php, method File_Fortune::_traverseDirectory()
    Traverse a registered directory to get a list of files
_writeHeader
in file Fortune.php, method File_Fortune::_writeHeader()
    Write the header file for a fortune file
__construct
in file Fortune.php, method File_Fortune::__construct()
    Constructor
__destruct
in file Fortune.php, method File_Fortune::__destruct()
    Destructor
top

a

add
in file Fortune.php, method File_Fortune::add()
    Add a new fortune
AllTests.php
procedural page AllTests.php
top

c

count
in file Fortune.php, method File_Fortune::count()
    Count of fortunes in current active file, or of all fortunes in all files
create
in file Fortune.php, method File_Fortune::create()
    Create a new fortune file from an array of fortunes
current
in file Fortune.php, method File_Fortune::current()
    Return current fortune in iterator
top

d

$delim
in file Fortune.php, variable File_Fortune::$delim
    Character that delimits fortunes (defaults to '%')
delete
in file Fortune.php, method File_Fortune::delete()
    Delete an existing fortune
top

e

Exception.php
procedural page Exception.php
top

f

File_Fortune
in file Fortune.php, class File_Fortune
    File_Fortune
Fortune.php
procedural page Fortune.php
File_FortuneTest.php
procedural page File_FortuneTest.php
File_Fortune_Exception
in file Exception.php, class File_Fortune_Exception
    File_Fortune_Exception
top

g

getAll
in file Fortune.php, method File_Fortune::getAll()
    Retrieve all fortunes from the current file or set of files
getDirectory
in file Fortune.php, method File_Fortune::getDirectory()
    Retrieve current directory of fortune files
getFile
in file Fortune.php, method File_Fortune::getFile()
    Retrieve current fortune file name
getFiles
in file Fortune.php, method File_Fortune::getFiles()
    Return list of fortune files in use
getHeaderFile
in file Fortune.php, method File_Fortune::getHeaderFile()
    Retrieve current header file name
getRandom
in file Fortune.php, method File_Fortune::getRandom()
    Retrieve random fortune
top

k

key
in file Fortune.php, method File_Fortune::key()
    Return current iterator key
top

m

$maxLength
in file Fortune.php, variable File_Fortune::$maxLength
    Length of longest string in the fortune file
$minLength
in file Fortune.php, variable File_Fortune::$minLength
    Length of shortest string in the fortune file
top

n

$numstr
in file Fortune.php, variable File_Fortune::$numstr
    Number of strings (fortunes) in the file
next
in file Fortune.php, method File_Fortune::next()
    Retrieve next element in iterator
top

o

$offsets
in file Fortune.php, variable File_Fortune::$offsets
    Array of file offsets (fortune indices)
offsetExists
in file Fortune.php, method File_Fortune::offsetExists()
    Does fortune exist at the given offset?
offsetGet
in file Fortune.php, method File_Fortune::offsetGet()
    Retrieve fortune by offset
offsetSet
in file Fortune.php, method File_Fortune::offsetSet()
    Set a fortune at a given offset
offsetUnset
in file Fortune.php, method File_Fortune::offsetUnset()
    Delete a fortune at a given offset
top

p

PHPUnit_MAIN_METHOD
in file AllTests.php, constant PHPUnit_MAIN_METHOD
top

r

rewind
in file Fortune.php, method File_Fortune::rewind()
    Rewind iterator to first element
top

s

save
in file Fortune.php, method File_Fortune::save()
    Save changes
setDirectory
in file Fortune.php, method File_Fortune::setDirectory()
    Set directory from which to randomly select a fortune file
setFile
in file Fortune.php, method File_Fortune::setFile()
    Set fortune file
setFiles
in file Fortune.php, method File_Fortune::setFiles()
    Set one or more files to search for fortunes
setHeaderFile
in file Fortune.php, method File_Fortune::setHeaderFile()
    Set header file name
top

u

update
in file Fortune.php, method File_Fortune::update()
    Update an existing fortune
top

v

$version
in file Fortune.php, variable File_Fortune::$version
    Version number for fortune file
valid
in file Fortune.php, method File_Fortune::valid()
    Current element is valid (iterator)
VERSION
in file Fortune.php, class constant File_Fortune::VERSION
top

Documentation generated on Tue, 24 Jul 2007 09:30:04 -0400 by phpDocumentor 1.4.0. PEAR Logo Copyright © PHP Group 2004.