Subversion Repositories PHPX

Compare Revisions

Last modification

Regard whitespace Rev 73 → Rev 74

/trunk/Db/MySQLDB.php
123,15 → 123,8
}
 
/**
* Returns the date of last modification of this database or
* one of its tables.
*
* @param string $table (optional)
* Table name. If not provided, all tables of this database
* are considered.
* @return int|null
* Timestamp of last modification, or <code>null</code> if
* unavailable.
* (non-PHPdoc)
* @see \PointedEars\PHPX\Db\Database::getLastModified()
*/
public function getLastModified ($table = null)
{
/trunk/Db/Database.php
379,6 → 379,24
}
 
/**
* Returns the date of last modification of this database or
* one of its tables.
*
* To be overridden by inheriting classes.
*
* @param string $table (optional)
* Table name. If not provided, all tables of this database
* are considered.
* @return int|null
* Timestamp of last modification, or <code>null</code> if
* unavailable.
*/
public function getLastModified ($table = null)
{
return null;
}
 
/**
* Escapes a database name so that it can be used in a query.
*
* @param string $name
481,7 → 499,6
protected function _escapeValueArray(array &$array, $suffix = '')
{
$result = array();
 
foreach ($array as $column => $value)
{
$op = '=';
/trunk/Db/Table.php
132,6 → 132,7
*/
public function getDatabase()
{
/* FIXME: What about tables from different databases? */
$class = \get_class($this);
if (\is_string($class::$_database))
{
385,4 → 386,16
 
return $result;
}
 
/**
* Returns the date of last modification of this table.
*
* @return int|null
* Timestamp of last modification, or <code>null</code> if
* unavailable.
*/
public function getLastModified ()
{
return $this->database->getLastModified($this->name);
}
}