mirror of
https://github.com/Karaka-Management/oms-HumanResourceManagement.git
synced 2026-01-11 20:28:40 +00:00
81 lines
1.5 KiB
PHP
Executable File
81 lines
1.5 KiB
PHP
Executable File
<?php
|
|
/**
|
|
* Orange Management
|
|
*
|
|
* PHP Version 8.0
|
|
*
|
|
* @package Modules\HumanResourceManagement\Models
|
|
* @copyright Dennis Eichhorn
|
|
* @license OMS License 1.0
|
|
* @version 1.0.0
|
|
* @link https://orange-management.org
|
|
*/
|
|
declare(strict_types=1);
|
|
|
|
namespace Modules\HumanResourceManagement\Models;
|
|
|
|
use phpOMS\DataStorage\Database\DatabasePool;
|
|
|
|
/**
|
|
* Staff list class.
|
|
*
|
|
* @package Modules\HumanResourceManagement\Models
|
|
* @license OMS License 1.0
|
|
* @link https://orange-management.org
|
|
* @since 1.0.0
|
|
*/
|
|
class StaffList
|
|
{
|
|
/**
|
|
* Database instance.
|
|
*
|
|
* @var DatabasePool
|
|
* @since 1.0.0
|
|
*/
|
|
private DatabasePool $dbPool;
|
|
|
|
/**
|
|
* Constructor.
|
|
*
|
|
* @param DatabasePool $dbPool Database pool instance
|
|
*
|
|
* @since 1.0.0
|
|
*/
|
|
public function __construct(DatabasePool $dbPool)
|
|
{
|
|
$this->dbPool = $dbPool;
|
|
}
|
|
|
|
/**
|
|
* Get all staff members.
|
|
*
|
|
* This function gets all accounts in a range
|
|
*
|
|
* @param array $filter Filter for search results
|
|
* @param int $offset Offset for first account
|
|
* @param int $limit Limit for results
|
|
*
|
|
* @return array
|
|
*
|
|
* @since 1.0.0
|
|
*/
|
|
public function getList($filter = null, $offset = 0, $limit = 100) : array
|
|
{
|
|
$result = [];
|
|
|
|
return $result;
|
|
}
|
|
|
|
/**
|
|
* Get task stats.
|
|
*
|
|
* @return array
|
|
*
|
|
* @since 1.0.0
|
|
*/
|
|
public function getStats() : array
|
|
{
|
|
return [];
|
|
}
|
|
}
|