* @access public
* @return array (associative)
*/
- function table()
+ public function table()
{
$table = static::schemaDef();
return array_map(array($this, 'columnBitmap'), $table['fields']);
function sequenceKey()
{
- $table = call_user_func(array(get_class($this), 'schemaDef'));
+ $table = static::schemaDef();
foreach ($table['fields'] as $name => $column) {
if ($column['type'] == 'serial') {
// We have a serial/autoincrement column.
function keyTypes()
{
- $table = call_user_func(array(get_class($this), 'schemaDef'));
+ $table = static::schemaDef();
$keys = array();
if (!empty($table['unique keys'])) {
{
$links = array();
- $table = call_user_func(array(get_class($this), 'schemaDef'));
+ $table = static::schemaDef();
foreach ($table['foreign keys'] as $keyname => $keydef) {
if (count($keydef) == 2 && is_string($keydef[0]) && is_array($keydef[1]) && count($keydef[1]) == 1) {
*/
function _allCacheKeys()
{
- $table = call_user_func(array(get_class($this), 'schemaDef'));
+ $table = static::schemaDef();
$ckeys = array();
if (!empty($table['unique keys'])) {