Class miModelGeneralOptionsRecord

Description

Handle and manage deleting and reading of data from the database.

  • copyright: Mirchev Ideas Ltd. © 2003, 2004

Located in /model/GeneralOptionsRecord.inc (line 25)

miModelSQLRecord
   |
   --miModelGeneralOptionsRecord
Method Summary
 miModelGeneralOptionsRecord miModelGeneralOptionsRecord (string $t, string $p, int $v)
 void readPK (mixet $value)
 string update ()
Methods
Constructor miModelGeneralOptionsRecord (line 55)

miModelGeneralOptionsRecord constructor. It takes three parameters - table name, property field and field value

Example:


1 <?php
2 $ModelGeneralOptionsRecord = new miModelGeneralOptionsRecord('tableName', 'propertyField', 'valueField');
3 ?>

  • access: public
miModelGeneralOptionsRecord miModelGeneralOptionsRecord (string $t, string $p, int $v)
  • string $t: database table name
  • string $p: property field
  • int $v: field value
readPK (line 77)

Read a record from a database table for a specify primary key value

Example:


1 <?php
2 $ModelGeneralOptionsRecord = new miModelGeneralOptionsRecord('tableName', 'propertyField', 'valueField');
3 $ModelGeneralOptionsRecord->readPK($value);
4 $row = $$ModelGeneralOptionsRecord->getRow(); // now $row holds the result row
5 ?>

void readPK (mixet $value)
  • mixet $value: primary key value

Redefinition of:
miModelSQLRecord::readPK()
Read a record from a database table for a specify primary key value
update (line 99)

Update a record in the table

  • return: information message with the result of execution of the command
  • access: public
string update ()

Redefinition of:
miModelSQLRecord::update()
Update a record in the table

Inherited Methods

Inherited From miModelSQLRecord

 miModelSQLRecord::miModelSQLRecord()
 miModelSQLRecord::delete()
 miModelSQLRecord::get()
 miModelSQLRecord::getPrimaryKeyColumn()
 miModelSQLRecord::getRow()
 miModelSQLRecord::getTableName()
 miModelSQLRecord::insert()
 miModelSQLRecord::read()
 miModelSQLRecord::readPK()
 miModelSQLRecord::set()
 miModelSQLRecord::setRow()
 miModelSQLRecord::update()

Documentation generated on Mon, 18 Oct 2004 14:58:32 +0300 by phpDocumentor 1.2.3