mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-22 07:52:29 +03:00
Renamed insert and update methods (based on the project conventions).
This commit is contained in:
parent
ee48938911
commit
d6e1d32fc8
1 changed files with 4 additions and 4 deletions
|
@ -53,10 +53,10 @@ class Admins_Model extends CI_Model {
|
|||
|
||||
if ( ! isset($admin['id']))
|
||||
{
|
||||
$admin['id'] = $this->insert($admin);
|
||||
$admin['id'] = $this->_insert($admin);
|
||||
} else
|
||||
{
|
||||
$admin['id'] = $this->update($admin);
|
||||
$admin['id'] = $this->_update($admin);
|
||||
}
|
||||
|
||||
return (int)$admin['id'];
|
||||
|
@ -99,7 +99,7 @@ class Admins_Model extends CI_Model {
|
|||
*
|
||||
* @throws Exception When the insert operation fails.
|
||||
*/
|
||||
public function insert($admin)
|
||||
protected function _insert($admin)
|
||||
{
|
||||
$this->load->helper('general');
|
||||
|
||||
|
@ -140,7 +140,7 @@ class Admins_Model extends CI_Model {
|
|||
*
|
||||
* @throws Exception When the update operation fails.
|
||||
*/
|
||||
public function update($admin)
|
||||
protected function _update($admin)
|
||||
{
|
||||
$this->load->helper('general');
|
||||
|
||||
|
|
Loading…
Reference in a new issue