Class miPropertiesRecord

Description

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

  • copyright: Copyright (c) 2003-2006 Mirchev Ideas Ltd. All rights reserved.

Located in /model/PropertiesRecord.php (line 16)

miSqlRecord
   |
   --miPropertiesRecord
Variable Summary
Method Summary
miPropertiesRecord __construct (string $table, string $propertyField, string $valueField)
void readPK ( $value)
void update ()
Variables
mixed $_propertyField (line 21)
  • access: protected
mixed $_valueField (line 27)
  • access: protected

Inherited Variables

Inherited from miSqlRecord

miSqlRecord::$_primaryKey
miSqlRecord::$_row
miSqlRecord::$_table
Methods
Constructor __construct (line 46)

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

Example:

  1.  <?php
  2.  $propertiesRecord new miPropertiesRecord('tableName''propertyField''valueField');
  3.  ?>

  • access: public
miPropertiesRecord __construct (string $table, string $propertyField, string $valueField)
  • string $table: database table name
  • string $propertyField: the name of the property field
  • string $valueField: the name of the value field

Redefinition of:
miSqlRecord::__construct()
miSqlRecord constructor. It takes two parameters table name and table primary key
readPK (line 69)

Reads all properties from the db table

Example:

  1.  <?php
  2.  $propertiesRecord new miPropertiesRecord('tableName''propertyField''valueField');
  3.  $propertiesRecord->readPK($value);
  4.  $row $propertiesRecord->getRow();
  5.  ?>

  • throws: miDBException
  • access: public
void readPK ( $value)
  • $value

Redefinition of:
miSqlRecord::readPK()
Read a record using the specified primary key value
update (line 87)

Updates the properties table

  • throws: miDBException
  • access: public
void update ()

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

Inherited Methods

Inherited From miSqlRecord

miSqlRecord::__construct()
miSqlRecord::delete()
miSqlRecord::get()
miSqlRecord::getPK()
miSqlRecord::getPrimaryKeyColumn()
miSqlRecord::getRow()
miSqlRecord::getTableName()
miSqlRecord::insert()
miSqlRecord::read()
miSqlRecord::readPK()
miSqlRecord::set()
miSqlRecord::setRow()
miSqlRecord::update()

Documentation generated on Thu, 08 May 2008 16:57:31 +0300 by phpDocumentor 1.4.1