Removed all constructors in models, since this doesn't work in never CodeIgniter

pull/1277/head
Andreas 2021-11-06 20:24:28 +01:00
rodzic 016cd7198c
commit 1b2a88b355
41 zmienionych plików z 1 dodań i 238 usunięć

Wyświetl plik

@ -3,12 +3,6 @@ if (!defined('BASEPATH')) exit('No direct script access allowed');
class Accumulate_model extends CI_Model
{
function __construct()
{
// Call the Model constructor
parent::__construct();
}
function get_accumulated_data($band, $award, $mode, $period) {
$CI =& get_instance();
$CI->load->model('logbooks_model');

Wyświetl plik

@ -2,12 +2,6 @@
class adif_data extends CI_Model {
function __construct()
{
// Call the Model constructor
parent::__construct();
}
function export_all() {
$this->load->model('stations');
$active_station_id = $this->stations->find_active();

Wyświetl plik

@ -8,12 +8,6 @@
class API_Model extends CI_Model {
function __construct()
{
// Call the Model constructor
parent::__construct();
}
// GET API Keys
function keys() {
$this->db->where('user_id', $this->session->userdata('user_id'));

Wyświetl plik

@ -2,12 +2,6 @@
class Cat extends CI_Model {
function __construct()
{
// Call the Model constructor
parent::__construct();
}
function update($result, $user_id) {
$this->db->where('radio', $result['radio']);

Wyświetl plik

@ -2,11 +2,6 @@
class Clublog_model extends CI_Model {
function __construct()
{
parent::__construct();
}
function get_clublog_auth_info($username) {
$this->db->select('user_name, user_clublog_name, user_clublog_password');
$this->db->where('user_name', $username);

Wyświetl plik

@ -1,11 +1,5 @@
<?php
class Contesting_model extends CI_Model {
function __construct()
{
// Call the Model constructor
parent::__construct();
}
/*
* This function gets the QSOs to fill the "Contest Logbook" under the contesting form.

Wyświetl plik

@ -3,11 +3,6 @@
class Counties extends CI_Model
{
function __construct() {
// Call the Model constructor
parent::__construct();
}
/*
* Fetches worked and confirmed counties
*/

Wyświetl plik

@ -2,11 +2,6 @@
class CQ extends CI_Model{
function __construct(){
// Call the Model constructor
parent::__construct();
}
function get_zones(){
$CI =& get_instance();
$CI->load->model('Stations');

Wyświetl plik

@ -3,12 +3,6 @@ if (!defined('BASEPATH')) exit('No direct script access allowed');
class Dayswithqso_model extends CI_Model
{
function __construct()
{
// Call the Model constructor
parent::__construct();
}
function getDaysWithQso()
{
$CI =& get_instance();

Wyświetl plik

@ -3,12 +3,6 @@ if (!defined('BASEPATH')) exit('No direct script access allowed');
class Distances_model extends CI_Model
{
function __construct()
{
// Call the Model constructor
parent::__construct();
}
public $bandslots = array("160m"=>0,
"80m"=>0,
"60m"=>0,

Wyświetl plik

@ -23,12 +23,6 @@ class DOK extends CI_Model {
"3cm"=>0,
"1.25cm"=>0);
function __construct()
{
// Call the Model constructor
parent::__construct();
}
function get_worked_bands() {
$CI =& get_instance();
$CI->load->model('logbooks_model');

Wyświetl plik

@ -3,12 +3,6 @@
class Dxatlas_model extends CI_Model
{
function __construct()
{
// Call the Model constructor
parent::__construct();
}
/*
* Fetches worked and confirmed gridsquare from the logbook
*/

Wyświetl plik

@ -25,13 +25,6 @@ class DXCC extends CI_Model {
"SAT"=>0,
);
function __construct()
{
// Call the Model constructor
parent::__construct();
}
function get_worked_bands() {
$CI =& get_instance();
$CI->load->model('logbooks_model');

Wyświetl plik

@ -17,11 +17,6 @@ CREATE TABLE IF NOT EXISTS `dxcc_entities` (
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
*/
function __construct(){
parent::__construct();
}
function empty_table($table){
$this->db->empty_table($table);
}

Wyświetl plik

@ -18,14 +18,7 @@ CREATE TABLE IF NOT EXISTS `dxcc_exceptions` (
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
*/
function __construct(){
parent::__construct();
}
function empty_table($table){
$this->db->empty_table($table);
}
}

Wyświetl plik

@ -16,14 +16,7 @@ CREATE TABLE IF NOT EXISTS `dxcc_prefixes` (
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
*/
function __construct(){
parent::__construct();
}
function empty_table($table){
$this->db->empty_table($table);
}
}
}

Wyświetl plik

@ -2,11 +2,6 @@
class Eqsl_images extends CI_Model {
function __construct()
{
parent::__construct();
}
function get_image($qso_id) {
$this->db->where('qso_id', $qso_id);
$query = $this->db->get('eQSL_images');

Wyświetl plik

@ -2,11 +2,6 @@
class Eqslmethods_model extends CI_Model {
function __construct()
{
parent::__construct();
}
function mark_all_as_sent() {
$data = array(
'COL_EQSL_QSL_SENT' => 'Y',

Wyświetl plik

@ -2,12 +2,6 @@
class Gridsquares_model extends CI_Model {
function __construct()
{
// Call the Model constructor
parent::__construct();
}
function get_worked_sat_squares() {
$CI =& get_instance();
$CI->load->model('logbooks_model');

Wyświetl plik

@ -25,12 +25,6 @@ class IOTA extends CI_Model {
"SAT"=>0,
);
function __construct()
{
// Call the Model constructor
parent::__construct();
}
function get_worked_bands() {
$CI =& get_instance();
$CI->load->model('logbooks_model');

Wyświetl plik

@ -2,12 +2,6 @@
class Logbook_model extends CI_Model {
function __construct()
{
// Call the Model constructor
parent::__construct();
}
/* Add QSO to Logbook */
function create_qso() {
// Join date+time

Wyświetl plik

@ -2,13 +2,6 @@
class Logbooks_model extends CI_Model {
function __construct()
{
// Call the Model constructor
parent::__construct();
}
function show_all() {
$this->db->where('user_id', $this->session->userdata('user_id'));
$this->db->order_by('logbook_name');

Wyświetl plik

@ -2,11 +2,6 @@
class Lookup_model extends CI_Model{
function __construct(){
// Call the Model constructor
parent::__construct();
}
function getSearchResult($queryinfo){
$modes = $this->get_worked_modes($queryinfo['location_list']);

Wyświetl plik

@ -2,12 +2,6 @@
class LotwCert extends CI_Model {
function __construct()
{
// Call the Model constructor
parent::__construct();
}
/*
|--------------------------------------------------------------------------
| Function: lotw_certs

Wyświetl plik

@ -2,12 +2,6 @@
class Modes extends CI_Model {
function __construct()
{
// Call the Model constructor
parent::__construct();
}
function all() {
$this->db->order_by('mode', 'ASC');
$this->db->order_by('submode', 'ASC');

Wyświetl plik

@ -2,12 +2,6 @@
class Note extends CI_Model {
function __construct()
{
// Call the Model constructor
parent::__construct();
}
function list_all() {
$this->db->where('user_id', $this->session->userdata('user_id'));
return $this->db->get('notes');

Wyświetl plik

@ -8,11 +8,6 @@
class Options_model extends CI_Model {
function __construct()
{
parent::__construct();
}
// Returns all options that are autoload yes
function get_autoloads() {
$this->db->where('autoload', "yes");

Wyświetl plik

@ -1,12 +1,5 @@
<?php
class Qsl_model extends CI_Model {
function __construct()
{
// Call the Model constructor
parent::__construct();
}
function getQsoWithQslList() {
$CI =& get_instance();
$CI->load->model('Stations');

Wyświetl plik

@ -2,11 +2,6 @@
class Qslprint_model extends CI_Model {
function __construct()
{
parent::__construct();
}
function mark_qsos_printed($station_id2 = NULL) {
$CI =& get_instance();
$CI->load->model('Stations');

Wyświetl plik

@ -2,11 +2,6 @@
class Search extends CI_Model {
function __construct()
{
parent::__construct();
}
function callsign_iota($reference) {
$this->db->where('COL_IOTA', $reference);
$query = $this->db->get($this->config->item('table_name'));

Wyświetl plik

@ -2,11 +2,6 @@
class Search_filter extends CI_Model {
function __construct()
{
parent::__construct();
}
function get_table_columns() {
$query = $this->db->query('DESCRIBE '.$this->config->item('table_name'));

Wyświetl plik

@ -2,11 +2,6 @@
class Sig extends CI_Model {
function __construct()
{
parent::__construct();
}
function get_all($type) {
$CI =& get_instance();
$CI->load->model('logbooks_model');

Wyświetl plik

@ -2,11 +2,6 @@
class Sota extends CI_Model {
function __construct()
{
parent::__construct();
}
function get_all() {
$CI =& get_instance();
$CI->load->model('logbooks_model');

Wyświetl plik

@ -2,12 +2,6 @@
class Stations extends CI_Model {
function __construct()
{
// Call the Model constructor
parent::__construct();
}
function all_with_count() {
$this->db->select('station_profile.*, count('.$this->config->item('table_name').'.station_id) as qso_total');

Wyświetl plik

@ -2,11 +2,6 @@
class Stats extends CI_Model {
function __construct()
{
parent::__construct();
}
function result() {
$this->db->select('COL_CALL, COL_BAND, COL_TIME_ON, COL_RST_RCVD, COL_RST_SENT, COL_MODE, COL_NAME, COL_COUNTRY, COL_PRIMARY_KEY, COL_SAT_NAME');

Wyświetl plik

@ -1,11 +1,5 @@
<?php
class Themes_model extends CI_Model {
function __construct()
{
// Call the Model constructor
parent::__construct();
}
// FUNCTION: array getThemes()
// Returns a list of themes

Wyświetl plik

@ -3,12 +3,6 @@ if (!defined('BASEPATH')) exit('No direct script access allowed');
class Timeline_model extends CI_Model
{
function __construct()
{
// Call the Model constructor
parent::__construct();
}
function get_timeline($band, $mode, $award) {
$CI =& get_instance();
$CI->load->model('logbooks_model');

Wyświetl plik

@ -3,12 +3,6 @@ if (!defined('BASEPATH')) exit('No direct script access allowed');
class Timeplotter_model extends CI_Model
{
function __construct()
{
// Call the Model constructor
parent::__construct();
}
function get_worked_bands() {
$CI =& get_instance();
$CI->load->model('logbooks_model');

Wyświetl plik

@ -13,12 +13,6 @@
class User_Model extends CI_Model {
function __construct()
{
// Call the Model constructor
parent::__construct();
}
// FUNCTION: object get($username)
// Retrieve a user
function get($username) {

Wyświetl plik

@ -26,12 +26,6 @@ class VUCC extends CI_Model
"SAT" => 0,
);
function __construct()
{
// Call the Model constructor
parent::__construct();
}
function get_worked_bands()
{
$CI =& get_instance();

Wyświetl plik

@ -27,12 +27,6 @@ class was extends CI_Model {
"SAT"=>0,
);
function __construct()
{
// Call the Model constructor
parent::__construct();
}
function get_worked_bands() {
$CI =& get_instance();
$CI->load->model('logbooks_model');