function _get($id = 0)
 {
     global $db, $xtLink;
     $record = $db->Execute("SELECT * FROM " . $this->_table);
     $data = array();
     while (!$record->EOF) {
         $data[] = $record->fields;
         $record->MoveNext();
     }
     $tableData = new adminDB_DataRead($this->_table, $this->_tableLang, $this->_tableSeo, $this->_masterKey);
     if ($this->position != 'admin') {
         return false;
     }
     $obj = new stdClass();
     $obj->totalCount = $record->RecordCount();
     $obj->data = $tableData->getHeader();
     if (!empty($data)) {
         $obj->data = $data;
     }
     if ($id === 'new') {
         $obj->data[0]['endpoint_url'] = _SYSTEM_BASE_HTTPS . _SRV_WEB_UPLOAD . 'index.php?page=callback&page_action=xt_paymill';
     }
     return $obj;
 }
 function _get($id = 0)
 {
     global $db;
     $where = '';
     if ($this->url_data['query']) {
         $where = ' WHERE debug like "%' . $this->url_data['query'] . '%"';
     }
     $record = $db->Execute("SELECT * FROM pi_paymill_logging" . $where);
     $data = array();
     while (!$record->EOF) {
         $data[] = $record->fields;
         $record->MoveNext();
     }
     $tableData = new adminDB_DataRead($this->_table, $this->_tableLang, $this->_tableSeo, $this->_masterKey);
     if ($this->position != 'admin') {
         return false;
     }
     if (!empty($id)) {
         $html = '<h2>No Debug available</h2>';
         foreach ($data as $value) {
             if ($value['id'] == $id && !empty($value['debug'])) {
                 $html = '<h2>Debug</h2>';
                 $debug = str_replace('\\n', "\n", $value['debug']);
                 $html .= '<pre>' . print_r($debug, true) . '</pre>';
             }
         }
         exit($html);
     }
     $obj = new stdClass();
     $obj->totalCount = $record->RecordCount();
     $obj->data = $tableData->getHeader();
     if (!empty($data)) {
         $obj->data = $data;
     }
     return $obj;
 }