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

Class DatFile

Description

This class is an alternative to csv files.

  • access: public

Located in /includes/class_datfile.php

SerializeableObject
   |
   --InputStream
      |
      --SecureInputStream
         |
         --SecureFileStream
            |
            --DatFile

Method Summary

array get (integer $line_nr)
boolean insert (mixed $REF, array $new_entry)
integer length ()
boolean remove (array $line_nr)
string toString ()

Methods

get
array get (integer $line_nr)

retrieve a line of data from the file

  • access: public
  • uses: $datfile->get(0)
Name Type Description
$line_nr integer line to retrieve

Redefinition of:
SecureInputStream::get()
get
insert
boolean insert (mixed $REF, array $new_entry)

insert (append) an entry to the file

  • access: public
  • uses: $datfile->insert($new_entry)
Name Type Description
$new_entry array associative array containing the new entry

Redefinition of:
SecureFileStream::insert()
insert
length
integer length ()

return the number of rows in the file

  • access: public
  • uses: $datfile->length()

Redefinition of:
SecureFileStream::length()
length
remove
boolean remove (array $line_nr)

remove an entry from the file

  • access: public
  • uses: $datfile->insert($new_entry)
Name Type Description
$line_nr array line to retrieve

Redefinition of:
SecureFileStream::remove()
is_writeable
toString
string toString ()

return file content as string (if available)

  • access: public
  • uses: $datfile->toString()

Redefinition of:
SecureInputStream::toString()
toString

Inherited Methods

Inherited From SecureFileStream

SecureFileStream::create()
SecureFileStream::delete()
SecureFileStream::failSafeWrite()
SecureFileStream::insert()
SecureFileStream::is_writeable()
SecureFileStream::length()
SecureFileStream::remove()
SecureFileStream::write()

Inherited From SecureInputStream

SecureInputStream::checksum()
SecureInputStream::failSafeRead()
SecureInputStream::get()
SecureInputStream::isEmpty()
SecureInputStream::read()
SecureInputStream::reset()
SecureInputStream::toString()

Inherited From InputStream

InputStream::InputStream()
InputStream::exists()
InputStream::get()
InputStream::getFilename()
InputStream::isEmpty()
InputStream::read()
InputStream::resetStats()
InputStream::toString()

Inherited From SerializeableObject

SerializeableObject::serialize()
SerializeableObject::toString()

Documentation generated on Sat, 16 Sep 2006 17:05:55 +0200 by phpDocumentor 1.3.0RC4

yana author: Thomas MeyerHomepage: www.all-community.de/pub