<?php
/**
* Moc10 Library
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.TXT.
* It is also available through the world-wide-web at this URL:
* http://www.moc10phplibrary.com/LICENSE.TXT
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to hide@address.com so we can send you a copy immediately.
*
* @category Moc10
* @package Moc10_Record
* @author Nick Sagona, III <hide@address.com>
* @copyright Copyright (c) 2009-2011 Moc 10 Media, LLC. (http://www.moc10media.com)
* @license http://www.moc10phplibrary.com/LICENSE.TXT New BSD License
*/
/**
* Test_Table_Users
*
* @category Moc10
* @package Moc10_Record
* @author Nick Sagona, III <hide@address.com>
* @copyright Copyright (c) 2009-2011 Moc 10 Media, LLC. (http://www.moc10media.com)
* @license http://www.moc10phplibrary.com/LICENSE.TXT New BSD License
* @version 1.9.7
*/
class Test_Table_Users extends Moc10_Record
{
/**
* Table name of the database table
* @var string
*/
protected $_tableName = 'users';
/**
* Primary ID field name of the database table
* @var string
*/
protected $_primaryId = 'user_id';
/**
* Constructor
*
* Instantiate the database record object.
*
* @param array $fields
* @param string $type
* @param string $dbase
* @param string $host
* @param string $user
* @param string $pass
* @throws Exception
* @return void
*/
public function __construct($fields = null, $type = null, $dbase = null, $host = null, $user = null, $pass = null)
{
if (!isset($this->_tableName)) {
throw new Exception('Error: Table name not set.');
} else {
parent::__construct($fields, $type, $dbase, $host, $user, $pass);
}
}
}