user balance enchantment

git-svn-id: svn+ssh://code.netmonsters.ru/svn/majestic/trunk@69 4cb57b5f-5bbd-dd11-951b-001d605cbbc5
This commit is contained in:
akulikov
2009-04-06 09:37:23 +00:00
parent 43eaf698f2
commit 55847ecb98

View File

@ -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