Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed issue #5506: Importing a survey with quotas failes
git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey_ci@11196 b72ed6b6-b9f8-46b5-92b4-906544132732
- Loading branch information
Showing
5 changed files
with
125 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,43 @@ | ||
<?php if ( ! defined('BASEPATH')) die('No direct script access allowed'); | ||
|
||
class Quota_languagesettings_model extends CI_Model { | ||
|
||
function getAllRecords($condition=FALSE) | ||
{ | ||
if ($condition != FALSE) | ||
{ | ||
$this->db->where($condition); | ||
} | ||
|
||
$data = $this->db->get('quota_languagesettings'); | ||
|
||
return $data; | ||
} | ||
|
||
function getSomeRecords($fields,$condition=FALSE) | ||
{ | ||
foreach ($fields as $field) | ||
{ | ||
$this->db->select($field); | ||
} | ||
if ($condition != FALSE) | ||
{ | ||
$this->db->where($condition); | ||
} | ||
|
||
$data = $this->db->get('quota_languagesettings'); | ||
|
||
return $data; | ||
} | ||
|
||
function getAllRecords($condition=FALSE) | ||
{ | ||
if ($condition != FALSE) | ||
{ | ||
$this->db->where($condition); | ||
} | ||
|
||
$data = $this->db->get('quota_languagesettings'); | ||
|
||
return $data; | ||
} | ||
|
||
function getSomeRecords($fields,$condition=FALSE) | ||
{ | ||
foreach ($fields as $field) | ||
{ | ||
$this->db->select($field); | ||
} | ||
if ($condition != FALSE) | ||
{ | ||
$this->db->where($condition); | ||
} | ||
|
||
$data = $this->db->get('quota_languagesettings'); | ||
|
||
return $data; | ||
} | ||
|
||
/** | ||
* Inserts record(s) to the quota_languagesettings table | ||
* | ||
* @param array $data Records to insert | ||
*/ | ||
function insertRecords($data) | ||
{ | ||
return $this->db->insert('quota_languagesettings',$data); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,43 @@ | ||
<?php if ( ! defined('BASEPATH')) die('No direct script access allowed'); | ||
|
||
class Quota_members_model extends CI_Model { | ||
|
||
function getAllRecords($condition=FALSE) | ||
{ | ||
if ($condition != FALSE) | ||
{ | ||
$this->db->where($condition); | ||
} | ||
|
||
$data = $this->db->get('quota_members'); | ||
|
||
return $data; | ||
} | ||
|
||
function getSomeRecords($fields,$condition=FALSE) | ||
{ | ||
foreach ($fields as $field) | ||
{ | ||
$this->db->select($field); | ||
} | ||
if ($condition != FALSE) | ||
{ | ||
$this->db->where($condition); | ||
} | ||
|
||
$data = $this->db->get('quota_members'); | ||
|
||
return $data; | ||
} | ||
|
||
function getAllRecords($condition=FALSE) | ||
{ | ||
if ($condition != FALSE) | ||
{ | ||
$this->db->where($condition); | ||
} | ||
|
||
$data = $this->db->get('quota_members'); | ||
|
||
return $data; | ||
} | ||
|
||
function getSomeRecords($fields,$condition=FALSE) | ||
{ | ||
foreach ($fields as $field) | ||
{ | ||
$this->db->select($field); | ||
} | ||
if ($condition != FALSE) | ||
{ | ||
$this->db->where($condition); | ||
} | ||
|
||
$data = $this->db->get('quota_members'); | ||
|
||
return $data; | ||
} | ||
|
||
/** | ||
* Inserts record(s) to the quota_members table | ||
* | ||
* @param array $data Records to insert | ||
*/ | ||
function insertRecords($data) | ||
{ | ||
return $this->db->insert('quota_members',$data); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters