public function __construct($aConnection, $sTableName)
{
if ($sTableName) {
$this->_sTableName = $sTableName;
}
if ($this->connectDatabase($aConnection)) {
if (!$this->getDataTable()) {
if ($this->setDataTable()) {
return true;
}
} else {
$this->updateDataTableFields();
return true;
}
}
return false;
}