/** * @param string $order_id * @throws AException */ public function __construct($order_id = '') { $this->registry = Registry::getInstance(); if ((int) $order_id) { $this->order_id = (int) $order_id; } parent::__construct($this->registry, $this->order_id); if (!IS_ADMIN) { // forbid for non admin calls throw new AException(AC_ERR_LOAD, 'Error: permission denied to access package manager'); } }