mirror of
https://github.com/getnamingo/registry.git
synced 2025-08-05 01:01:30 +02:00
Added logs page to the panel
This commit is contained in:
parent
4abca19ba3
commit
361ccb3a7e
8 changed files with 163 additions and 42 deletions
25
cp/app/Models/RegistryTransaction.php
Normal file
25
cp/app/Models/RegistryTransaction.php
Normal file
|
@ -0,0 +1,25 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Pinga\Db\PdoDatabase;
|
||||
|
||||
class RegistryTransaction
|
||||
{
|
||||
private PdoDatabase $db;
|
||||
|
||||
public function __construct(PdoDatabase $db)
|
||||
{
|
||||
$this->db = $db;
|
||||
}
|
||||
|
||||
public function getAllRegistryTransaction()
|
||||
{
|
||||
return $this->db->select('SELECT * FROM registryTransaction.transaction_identifier ORDER BY cldate DESC');
|
||||
}
|
||||
|
||||
public function getRegistryTransactionById($id)
|
||||
{
|
||||
return $this->db->select('SELECT * FROM registryTransaction.transaction_identifier WHERE id = ?', [$id])->fetch();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue