<?php


  namespace osCommerce\OM\Core\SQL\ANSI;

  use osCommerce\OM\Core\Registry;

/**
 * @since v3.0.3
 */

  class GetAccessUserLevels {
    public static function execute($data) {
      $OSCOM_PDO = Registry::get('PDO');

      $Qaccess = $OSCOM_PDO->prepare('select module from :table_administrators_access where administrators_id = :administrators_id');
      $Qaccess->bindInt(':administrators_id', $data['id']);
      $Qaccess->execute();

      return $Qaccess->fetchAll();
    }
  }
?>
