1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-18 04:12:00 +02:00

admin UI: more improvements and bugfixes

This commit is contained in:
secretr
2009-11-17 15:23:01 +00:00
parent 504a91b6d5
commit 96114a36fb
5 changed files with 145 additions and 76 deletions

View File

@@ -9,8 +9,8 @@
* e107 Base Model
*
* $Source: /cvs_backup/e107_0.8/e107_handlers/model_class.php,v $
* $Revision: 1.37 $
* $Date: 2009-11-16 12:23:07 $
* $Revision: 1.38 $
* $Date: 2009-11-17 15:23:01 $
* $Author: secretr $
*/
@@ -1578,6 +1578,22 @@ class e_admin_model extends e_model
return !empty($this->_db_errno);
}
/**
* @return integer last mysql error number
*/
public function getSqlErrorNumber()
{
return $this->_db_errno;
}
/**
* @return string last mysql error message
*/
public function getSqlError()
{
return e107::getDb()->getLastErrorText();
}
/**
* @return boolean
*/
@@ -1656,7 +1672,7 @@ class e_admin_model extends e_model
{
return 0;
}
$res = e107::getDb()->db_Insert($this->getModelTable(), $this->toSqlQuery('create'));
if(!$res)
{