Аргумент | Возможный тип | Описание |
У метода нет аргументов |
$query = $this->db->query("SELECT SUM(amount) AS total FROM `" . DB_PREFIX . "customer_transaction` WHERE customer_id = '" . (int)$this->customer->getId() . "' GROUP BY customer_id"); if ($query->num_rows) { return $query->row['total']; } else { return 0; }