Files
kupshop/bundles/KupShop/SKEETBundle/Admin/Tabs/SKEETPaymentsTab.php
2025-08-02 16:30:27 +02:00

40 lines
894 B
PHP

<?php
namespace KupShop\SKEETBundle\Admin\Tabs;
use KupShop\AdminBundle\Admin\WindowTab;
use Query\Operator;
class SKEETPaymentsTab extends WindowTab
{
protected $title = 'flapSKEET';
protected $template = 'SKEETPaymentsTab.tpl';
public function getVars($smarty_tpl_vars)
{
if (!$this->getID()) {
return [];
}
$transactionQb = sqlQueryBuilder()
->select('uid, date_sent')
->from('sk_eet_payment')
->andWhere(Operator::equals(['id_payment' => $this->getID()]))
->execute()
->fetchAssociative();
return [
'transactionUid' => $transactionQb['uid'] ?? '',
'transactionDateSent' => $transactionQb['date_sent'] ?? '',
];
}
public static function getTypes()
{
return [
'orderPayment' => 1,
];
}
}