PHP Classes

File: modules/admin/Model.php

Recommend this page to a friend!
  Classes of Adrian M   upMVC   modules/admin/Model.php   Download  
File: modules/admin/Model.php
Role: Class source
Content type: text/plain
Description: Class source
Class: upMVC
Pure PHP web development without other frameworks
Author: By
Last change:
Date: 22 days ago
Size: 863 bytes
 

Contents

Class file image Download
<?php

namespace Admin;

use
Common\Bmvc\BaseModel;


class
Model extends BaseModel
{
    public function
__construct()
    {
       
parent::__construct();
    }
    public function
getUserById($userId, $table)
    {
        return
$this->read($userId, $table);
    }

    public function
getAllUsers($table)
    {
        return
$this->readAll($table);
    }

    public function
getUsersWithPagination($table, $page, $pageSize)
    {
        return
$this->readWithPagination($table, $page, $pageSize);
    }

    public function
createUser($userData, $table)
    {
        return
$this->create($userData, $table);
    }

    public function
updateUser($userId, $userData, $table)
    {
        return
$this->update($userId, $userData, $table);
    }

    public function
deleteUser($userId, $table)
    {
        return
$this->delete($userId, $table);
    }
}