-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 14422a7
Showing
2,763 changed files
with
849,680 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# top-most EditorConfig file | ||
root = true | ||
|
||
# Unix-style newlines with a newline ending every file | ||
[*] | ||
end_of_line = lf | ||
insert_final_newline = true | ||
|
||
# Matches multiple files with brace expansion notation | ||
# Set default charset | ||
[*] | ||
charset = utf-8 | ||
|
||
# Tab indentation (no size specified) | ||
indent_style = tab |
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
.DS_Store | ||
|
||
application/cache/* | ||
!application/cache/index.html | ||
|
||
application/logs/* | ||
!application/logs/index.html | ||
|
||
!application/*/.htaccess | ||
|
||
composer.lock | ||
|
||
user_guide_src/build/* | ||
user_guide_src/cilexer/build/* | ||
user_guide_src/cilexer/dist/* | ||
user_guide_src/cilexer/pycilexer.egg-info/* | ||
/vendor/ | ||
|
||
# IDE Files | ||
#------------------------- | ||
/nbproject/ | ||
.idea/* | ||
|
||
## Sublime Text cache files | ||
*.tmlanguage.cache | ||
*.tmPreferences.cache | ||
*.stTheme.cache | ||
*.sublime-workspace | ||
*.sublime-project | ||
/tests/tests/ | ||
/tests/results/ |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
RewriteEngine On | ||
#RewriteBase / | ||
RewriteCond %{REQUEST_FILENAME} !-f | ||
RewriteCond %{REQUEST_FILENAME} !-d | ||
RewriteRule (.*) index.php/$1 |
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 |
---|---|---|
@@ -0,0 +1,66 @@ | ||
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); | ||
class Perfectcontroller extends MX_Controller | ||
{ | ||
|
||
function __construct() { | ||
parent::__construct(); | ||
} | ||
|
||
function get($order_by) { | ||
$this->load->model('mdl_perfectcontroller'); | ||
$query = $this->mdl_perfectcontroller->get($order_by); | ||
return $query; | ||
} | ||
|
||
function get_with_limit($limit, $offset, $order_by) { | ||
$this->load->model('mdl_perfectcontroller'); | ||
$query = $this->mdl_perfectcontroller->get_with_limit($limit, $offset, $order_by); | ||
return $query; | ||
} | ||
|
||
function get_where($id) { | ||
$this->load->model('mdl_perfectcontroller'); | ||
$query = $this->mdl_perfectcontroller->get_where($id); | ||
return $query; | ||
} | ||
|
||
function get_where_custom($col, $value) { | ||
$this->load->model('mdl_perfectcontroller'); | ||
$query = $this->mdl_perfectcontroller->get_where_custom($col, $value); | ||
return $query; | ||
} | ||
|
||
function _insert($data) { | ||
$this->load->model('mdl_perfectcontroller'); | ||
$this->mdl_perfectcontroller->_insert($data); | ||
} | ||
|
||
function _update($id, $data) { | ||
$this->load->model('mdl_perfectcontroller'); | ||
$this->mdl_perfectcontroller->_update($id, $data); | ||
} | ||
|
||
function _delete($id) { | ||
$this->load->model('mdl_perfectcontroller'); | ||
$this->mdl_perfectcontroller->_delete($id); | ||
} | ||
|
||
function count_where($column, $value) { | ||
$this->load->model('mdl_perfectcontroller'); | ||
$count = $this->mdl_perfectcontroller->count_where($column, $value); | ||
return $count; | ||
} | ||
|
||
function get_max() { | ||
$this->load->model('mdl_perfectcontroller'); | ||
$max_id = $this->mdl_perfectcontroller->get_max(); | ||
return $max_id; | ||
} | ||
|
||
function _custom_query($mysql_query) { | ||
$this->load->model('mdl_perfectcontroller'); | ||
$query = $this->mdl_perfectcontroller->_custom_query($mysql_query); | ||
return $query; | ||
} | ||
|
||
} |
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 |
---|---|---|
@@ -0,0 +1,88 @@ | ||
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); | ||
class Mdl_perfectmodel extends CI_Model { | ||
|
||
function __construct() { | ||
parent::__construct(); | ||
} | ||
|
||
function get_table() { | ||
$table = "tablename"; | ||
return $table; | ||
} | ||
|
||
function get($order_by) { | ||
$table = $this->get_table(); | ||
$this->db->order_by($order_by); | ||
$query=$this->db->get($table); | ||
return $query; | ||
} | ||
|
||
function get_with_limit($limit, $offset, $order_by) { | ||
$table = $this->get_table(); | ||
$this->db->limit($limit, $offset); | ||
$this->db->order_by($order_by); | ||
$query=$this->db->get($table); | ||
return $query; | ||
} | ||
|
||
function get_where($id) { | ||
$table = $this->get_table(); | ||
$this->db->where('id', $id); | ||
$query=$this->db->get($table); | ||
return $query; | ||
} | ||
|
||
function get_where_custom($col, $value) { | ||
$table = $this->get_table(); | ||
$this->db->where($col, $value); | ||
$query=$this->db->get($table); | ||
return $query; | ||
} | ||
|
||
function _insert($data) { | ||
$table = $this->get_table(); | ||
$this->db->insert($table, $data); | ||
} | ||
|
||
function _update($id, $data) { | ||
$table = $this->get_table(); | ||
$this->db->where('id', $id); | ||
$this->db->update($table, $data); | ||
} | ||
|
||
function _delete($id) { | ||
$table = $this->get_table(); | ||
$this->db->where('id', $id); | ||
$this->db->delete($table); | ||
} | ||
|
||
function count_where($column, $value) { | ||
$table = $this->get_table(); | ||
$this->db->where($column, $value); | ||
$query=$this->db->get($table); | ||
$num_rows = $query->num_rows(); | ||
return $num_rows; | ||
} | ||
|
||
function count_all() { | ||
$table = $this->get_table(); | ||
$query=$this->db->get($table); | ||
$num_rows = $query->num_rows(); | ||
return $num_rows; | ||
} | ||
|
||
function get_max() { | ||
$table = $this->get_table(); | ||
$this->db->select_max('id'); | ||
$query = $this->db->get($table); | ||
$row=$query->row(); | ||
$id=$row->id; | ||
return $id; | ||
} | ||
|
||
function _custom_query($mysql_query) { | ||
$query = $this->db->query($mysql_query); | ||
return $query; | ||
} | ||
|
||
} |
Oops, something went wrong.