Browse Source

user balance enchantment

git-svn-id: svn+ssh://code.netmonsters.ru/svn/majestic/trunk@69 4cb57b5f-5bbd-dd11-951b-001d605cbbc5
master
akulikov 16 years ago
parent
commit
55847ecb98
  1. 15
      classes/Model.class.php

15
classes/Model.class.php

@ -120,6 +120,21 @@ abstract class Model
ORDER BY '.$this->primary_key.' '.($sort == 'ASC' ? 'ASC' : 'DESC') ORDER BY '.$this->primary_key.' '.($sort == 'ASC' ? 'ASC' : 'DESC')
.($limit !== false ? ' LIMIT '.(int) $limit : ''))->fetchAll(); .($limit !== false ? ' LIMIT '.(int) $limit : ''))->fetchAll();
} }
function setAutocommit($set)
{
return mysqli_autocommit($this->handler, (bool) $set);
}
function commit()
{
return mysqli_commit($this->handler);
}
function rollback()
{
return mysqli_rollback($this->handler);
}
} }
class ModelResult class ModelResult

Loading…
Cancel
Save