Revize c1bdc1c4
Přidáno uživatelem Michal Kliment před více než 9 roky(ů)
system/libraries/ORM.php | ||
---|---|---|
|
||
return $object;
|
||
}
|
||
|
||
/**
|
||
* Return name of current table
|
||
*
|
||
* @return string
|
||
*/
|
||
public function get_table_name()
|
||
{
|
||
return $this->table_name;
|
||
}
|
||
|
||
/**
|
||
* Binds another one-to-one object to this model. One-to-one objects
|
||
... | ... | |
return $cache[$column_name];
|
||
}
|
||
|
||
/**
|
||
* Truncate table content
|
||
*
|
||
* @author Ondřej Fibicho
|
||
*/
|
||
public function truncate()
|
||
{
|
||
$this->db->query("
|
||
TRUNCATE `$this->table_name`
|
||
");
|
||
}
|
||
|
||
/**
|
||
* Returns the last query run.
|
||
*
|
Také k dispozici: Unified diff
Release 1.1.0