Source for file PropertiesRecord.php
Documentation is available at PropertiesRecord.php
* General Options Record Class
* @copyright Copyright (c) 2003-2006 Mirchev Ideas Ltd. All rights reserved.
* Handle and manage deleting and reading of data from the
* @copyright Copyright (c) 2003-2006 Mirchev Ideas Ltd. All rights reserved.
* miPropertiesRecord constructor. It takes three parameters -
* table name, property field name and value field name
* $propertiesRecord = new miPropertiesRecord('tableName', 'propertyField', 'valueField');
* @param string $table database table name
* @param string $propertyField the name of the property field
* @param string $valueField the name of the value field
public function __construct($table, $propertyField, $valueField)
* Reads all properties from the db table
* $propertiesRecord = new miPropertiesRecord('tableName', 'propertyField', 'valueField');
* $propertiesRecord->readPK($value);
* $row = $propertiesRecord->getRow();
public function readPK($value)
$query =
'SELECT * FROM ' .
$this->_table;
foreach ($rows as $key =>
$row) {
* Updates the properties table
foreach ($this->_row as $property =>
$value) {
Documentation generated on Thu, 08 May 2008 16:57:31 +0300 by phpDocumentor 1.4.1