/** * DatabaseObject represents a row in a database table. * This class is meant to be subclassed in order to implement a * specific table in the database. * * @param array $p_columnNames * The column names of this table. These are optional. * */ public function DatabaseObject($p_columnNames = null) { if (is_null(self::$m_useCache)) { self::$m_useCache = SystemPref::Get('SiteCacheEnabled') == 'Y' ? true : false; if (self::$m_useCache) { self::$m_cacheEngine = SystemPref::Get('CacheEngine'); } } if (!is_null($p_columnNames)) { $this->setColumnNames($p_columnNames); } }