mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-18 15:32:17 +00:00
27 lines
477 B
PHP
27 lines
477 B
PHP
<?php
|
|
|
|
class Profil_change_model extends DB_Model
|
|
{
|
|
/**
|
|
* Constructor
|
|
*/
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
$this->dbTable = 'public.tbl_cis_profil_update';
|
|
$this->pk = ['profil_update_id'];
|
|
$this->hasSequence = true;
|
|
|
|
}
|
|
|
|
/**
|
|
* getLastStatuses
|
|
*/
|
|
public function getTimestamp($uid){
|
|
$this->addSelect(['change_timestamp']);
|
|
$res = $this->load([$uid]);
|
|
return hasData($res) ? getData($res)[0]->change_timestamp : null;
|
|
}
|
|
|
|
}
|