Methods

This instantiates a dbtxt object

__construct($sTable, $sDatadirfullname) : bool

Parameters

$sTable

The 'table' to be instantiated

$sDatadirfullname

Returns

booltrue = success, false = error functionid : # 20110507.1223 callers : - libs/login_php_v1.3/login.php - login.html.php

This adds a record to a dbtxt table

addrec($aNewRec) : bool

Parameters

$aNewRec

The new record to be added

Returns

booltrue on success, false on error functionid : # 20110507.1224 note : Similar file access code is e.g. in - class.obyekt.php::readbuddyfile() - class.obyekt.php::maintain_albums() - class.dbtxt.php::load() callers :

This deletes a record by it's primary key value

deleteRecord($sPrimaryKeyValue) : bool

Parameters

$sPrimaryKeyValue

The id of the record to be deleted

Returns

booltrue = success, false = error functionid : # 20110508.1821 callers :

This retrieves a record by searching a value in a specified fieldnumber

lookupRecord($iFieldIndex, $sSearchValue) : array

Parameters

$iFieldIndex

$sSearchValue

Returns

arrayIf found then (sizeof($aRet) > 0); if not found then (sizeof($aRet) = 0); functionid : # 20110507.1921 callers : - libs/login_php_v1.3/login.php - ?

This writes a given record, identified by primary key field

writeRecord($aNewRec) : bool

Parameters

$aNewRec

The record to be written

Returns

boolTrue on success, false on error functionid : # 20110509.0221 callers : login.html.php change password sequence

This reads a textfile into a reverse-table-like array of arrays

readColumnsArrayFromTextfile() : array

Returns

arrayThe wanted array-of-arrays with the buddyfile's fields functionid : # 20110507.1922 # 20110508.1421 note : Why is the array reverse organized like $a[fieldno][recno]? That way it's more easy to search field values. But harder to pass one record. callers :

 Properties

 

$aTabdef 
 

$sTextfilename 
 

$aaTables