kopia lustrzana https://github.com/magicbug/Cloudlog
Reformatted the code
rodzic
6dde203bf5
commit
7f48eb7140
|
@ -1,6 +1,8 @@
|
|||
<?php
|
||||
class Qsl_model extends CI_Model {
|
||||
function getQsoWithQslList() {
|
||||
class Qsl_model extends CI_Model
|
||||
{
|
||||
function getQsoWithQslList()
|
||||
{
|
||||
$CI = &get_instance();
|
||||
$CI->load->model('logbooks_model');
|
||||
$logbooks_locations_array = $CI->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook'));
|
||||
|
@ -18,7 +20,8 @@ class Qsl_model extends CI_Model {
|
|||
}
|
||||
}
|
||||
|
||||
function getQslForQsoId($id) {
|
||||
function getQslForQsoId($id)
|
||||
{
|
||||
// Clean ID
|
||||
$clean_id = $this->security->xss_clean($id);
|
||||
|
||||
|
@ -36,7 +39,8 @@ class Qsl_model extends CI_Model {
|
|||
return $this->db->get()->result();
|
||||
}
|
||||
|
||||
function saveQsl($qsoid, $filename) {
|
||||
function saveQsl($qsoid, $filename)
|
||||
{
|
||||
// Clean ID
|
||||
$clean_id = $this->security->xss_clean($qsoid);
|
||||
|
||||
|
@ -57,7 +61,8 @@ class Qsl_model extends CI_Model {
|
|||
return $this->db->insert_id();
|
||||
}
|
||||
|
||||
function deleteQsl($id) {
|
||||
function deleteQsl($id)
|
||||
{
|
||||
// Clean ID
|
||||
$clean_id = $this->security->xss_clean($id);
|
||||
|
||||
|
@ -76,7 +81,8 @@ class Qsl_model extends CI_Model {
|
|||
$this->db->delete('qsl_images', array('id' => $clean_id));
|
||||
}
|
||||
|
||||
function getFilename($id) {
|
||||
function getFilename($id)
|
||||
{
|
||||
// Clean ID
|
||||
$clean_id = $this->security->xss_clean($id);
|
||||
|
||||
|
@ -98,7 +104,8 @@ class Qsl_model extends CI_Model {
|
|||
return $this->db->get();
|
||||
}
|
||||
|
||||
function searchQsos($callsign) {
|
||||
function searchQsos($callsign)
|
||||
{
|
||||
$CI = &get_instance();
|
||||
$CI->load->model('logbooks_model');
|
||||
$logbooks_locations_array = $CI->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook'));
|
||||
|
@ -111,7 +118,8 @@ class Qsl_model extends CI_Model {
|
|||
return $this->db->get();
|
||||
}
|
||||
|
||||
function addQsotoQsl($qsoid, $filename) {
|
||||
function addQsotoQsl($qsoid, $filename)
|
||||
{
|
||||
$clean_qsoid = $this->security->xss_clean($qsoid);
|
||||
$clean_filename = $this->security->xss_clean($filename);
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue