kopia lustrzana https://github.com/magicbug/Cloudlog
Removed all constructors in models, since this doesn't work in never CodeIgniter
rodzic
016cd7198c
commit
1b2a88b355
|
@ -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');
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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'));
|
||||
|
|
|
@ -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']);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -3,11 +3,6 @@
|
|||
class Counties extends CI_Model
|
||||
{
|
||||
|
||||
function __construct() {
|
||||
// Call the Model constructor
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
/*
|
||||
* Fetches worked and confirmed counties
|
||||
*/
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
|
@ -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');
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -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']);
|
||||
|
||||
|
|
|
@ -2,12 +2,6 @@
|
|||
|
||||
class LotwCert extends CI_Model {
|
||||
|
||||
function __construct()
|
||||
{
|
||||
// Call the Model constructor
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Function: lotw_certs
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -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'));
|
||||
|
|
|
@ -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'));
|
||||
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -2,11 +2,6 @@
|
|||
|
||||
class Sota extends CI_Model {
|
||||
|
||||
function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
function get_all() {
|
||||
$CI =& get_instance();
|
||||
$CI->load->model('logbooks_model');
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -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');
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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');
|
||||
|
|
Ładowanie…
Reference in New Issue