mirror of
https://github.com/getnamingo/registry.git
synced 2025-05-14 00:27:03 +02:00
25 lines
No EOL
566 B
PHP
25 lines
No EOL
566 B
PHP
<?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();
|
|
}
|
|
} |