@@ -12,21 +12,21 @@ discard block |
||
12 | 12 | */ |
13 | 13 | if ($action == 'create') |
14 | 14 | { |
15 | - $up = "\$fields = {$fields}; |
|
15 | + $up = "\$fields = {$fields}; |
|
16 | 16 | |
17 | 17 | \$this->dbforge->add_field(\$fields); |
18 | 18 | "; |
19 | 19 | |
20 | - if (! empty($primary_key)) |
|
21 | - { |
|
22 | - $up .= " \$this->dbforge->add_key('{$primary_key}', true); |
|
20 | + if (! empty($primary_key)) |
|
21 | + { |
|
22 | + $up .= " \$this->dbforge->add_key('{$primary_key}', true); |
|
23 | 23 | "; |
24 | - } |
|
24 | + } |
|
25 | 25 | |
26 | - $up .=" \$this->dbforge->create_table('{$table}', true, config_item('migration_create_table_attr') ); |
|
26 | + $up .=" \$this->dbforge->create_table('{$table}', true, config_item('migration_create_table_attr') ); |
|
27 | 27 | "; |
28 | 28 | |
29 | - $down = "\$this->dbforge->drop_table('{$table}');"; |
|
29 | + $down = "\$this->dbforge->drop_table('{$table}');"; |
|
30 | 30 | } |
31 | 31 | |
32 | 32 | /* |
@@ -34,10 +34,10 @@ discard block |
||
34 | 34 | */ |
35 | 35 | if ($action == 'add' && ! empty($column)) |
36 | 36 | { |
37 | - $up = "\$field = {$column_string}; |
|
37 | + $up = "\$field = {$column_string}; |
|
38 | 38 | \$this->dbforge->add_column('{$table}', \$field);"; |
39 | 39 | |
40 | - $down = "\$this->dbforge->drop_column('{$table}', '{$column}');"; |
|
40 | + $down = "\$this->dbforge->drop_column('{$table}', '{$column}');"; |
|
41 | 41 | } |
42 | 42 | |
43 | 43 | /* |
@@ -45,9 +45,9 @@ discard block |
||
45 | 45 | */ |
46 | 46 | if ($action == 'remove' && ! empty($column)) |
47 | 47 | { |
48 | - $up = "\$this->dbforge->drop_column('{$table}', '{$column}');"; |
|
48 | + $up = "\$this->dbforge->drop_column('{$table}', '{$column}');"; |
|
49 | 49 | |
50 | - $down = "\$field = {$column_string}; |
|
50 | + $down = "\$field = {$column_string}; |
|
51 | 51 | \$this->dbforge->add_column('{$table}', \$field);"; |
52 | 52 | } |
53 | 53 |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | { |
61 | 61 | $name = array_shift( $segments ); |
62 | 62 | |
63 | - $options = CLI::getOptions(); |
|
63 | + $options = CLI::getOptions(); |
|
64 | 64 | |
65 | 65 | $this->options['table_name'] = array_shift( $segments ); |
66 | 66 | |
@@ -213,17 +213,17 @@ discard block |
||
213 | 213 | // Check whether the table exists in this database |
214 | 214 | if ( ! $this->db->table_exists( $table_name ) ) |
215 | 215 | { |
216 | - if (empty($options['fields'])) |
|
217 | - { |
|
218 | - return FALSE; |
|
219 | - } |
|
216 | + if (empty($options['fields'])) |
|
217 | + { |
|
218 | + return FALSE; |
|
219 | + } |
|
220 | 220 | |
221 | - $fields = $this->parseFieldString($options['fields']); |
|
221 | + $fields = $this->parseFieldString($options['fields']); |
|
222 | + } |
|
223 | + else |
|
224 | + { |
|
225 | + $fields = $this->db->field_data( $table_name ); |
|
222 | 226 | } |
223 | - else |
|
224 | - { |
|
225 | - $fields = $this->db->field_data( $table_name ); |
|
226 | - } |
|
227 | 227 | |
228 | 228 | // There may be something wrong or the database driver may not return |
229 | 229 | // field data |
@@ -232,9 +232,9 @@ discard block |
||
232 | 232 | return FALSE; |
233 | 233 | } |
234 | 234 | |
235 | - $this->options['set_created'] = false; |
|
236 | - $this->options['set_modified'] = false; |
|
237 | - $this->options['use_soft_deletes'] = false; |
|
235 | + $this->options['set_created'] = false; |
|
236 | + $this->options['set_modified'] = false; |
|
237 | + $this->options['use_soft_deletes'] = false; |
|
238 | 238 | |
239 | 239 | // Use the primary key if the table has one already set. |
240 | 240 | foreach ( $fields as $field ) |
@@ -244,20 +244,20 @@ discard block |
||
244 | 244 | $this->options['primary_key'] = $field->name; |
245 | 245 | } |
246 | 246 | |
247 | - if ($field->name == $this->options['created_field']) |
|
248 | - { |
|
249 | - $this->options['set_created'] = true; |
|
250 | - } |
|
247 | + if ($field->name == $this->options['created_field']) |
|
248 | + { |
|
249 | + $this->options['set_created'] = true; |
|
250 | + } |
|
251 | 251 | |
252 | - if ($field->name == $this->options['modified_field']) |
|
253 | - { |
|
254 | - $this->options['set_modified'] = true; |
|
255 | - } |
|
252 | + if ($field->name == $this->options['modified_field']) |
|
253 | + { |
|
254 | + $this->options['set_modified'] = true; |
|
255 | + } |
|
256 | 256 | |
257 | - if ($field->name == $this->options['soft_delete_key']) |
|
258 | - { |
|
259 | - $this->options['use_soft_deletes'] = true; |
|
260 | - } |
|
257 | + if ($field->name == $this->options['soft_delete_key']) |
|
258 | + { |
|
259 | + $this->options['use_soft_deletes'] = true; |
|
260 | + } |
|
261 | 261 | } |
262 | 262 | |
263 | 263 | // Set our validation rules based on these fields |
@@ -268,73 +268,73 @@ discard block |
||
268 | 268 | |
269 | 269 | //-------------------------------------------------------------------- |
270 | 270 | |
271 | - /** |
|
272 | - * Grabs the fields from the CLI options and gets them ready for |
|
273 | - * use within the views. |
|
274 | - */ |
|
275 | - protected function parseFieldString($fields) |
|
276 | - { |
|
277 | - if ( empty( $fields ) ) |
|
278 | - { |
|
279 | - return NULL; |
|
280 | - } |
|
281 | - |
|
282 | - $fields = explode( ' ', $fields ); |
|
283 | - |
|
284 | - $new_fields = [ ]; |
|
285 | - |
|
286 | - foreach ( $fields as $field ) |
|
287 | - { |
|
288 | - $pop = [ NULL, NULL, NULL ]; |
|
289 | - list( $field, $type, $size ) = array_merge( explode( ':', $field ), $pop ); |
|
290 | - $type = strtolower( $type ); |
|
291 | - |
|
292 | - // Strings |
|
293 | - if (in_array($type, ['char', 'varchar', 'string'])) |
|
294 | - { |
|
295 | - $new_fields[] = [ |
|
296 | - 'name' => $field, |
|
297 | - 'type' => 'text' |
|
298 | - ]; |
|
299 | - } |
|
300 | - |
|
301 | - // Textarea |
|
302 | - else if ($type == 'text') |
|
303 | - { |
|
304 | - $new_fields[] = [ |
|
305 | - 'name' => $field, |
|
306 | - 'type' => 'textarea' |
|
307 | - ]; |
|
308 | - } |
|
309 | - |
|
310 | - // Number |
|
311 | - else if (in_array($type, ['tinyint', 'int', 'bigint', 'mediumint', 'float', 'double', 'number'])) |
|
312 | - { |
|
313 | - $new_fields[] = [ |
|
314 | - 'name' => $field, |
|
315 | - 'type' => 'number' |
|
316 | - ]; |
|
317 | - } |
|
318 | - |
|
319 | - // Date |
|
320 | - else if (in_array($type, ['date', 'datetime', 'time'])) |
|
321 | - { |
|
322 | - $new_fields[] = [ |
|
323 | - 'name' => $field, |
|
324 | - 'type' => $type |
|
325 | - ]; |
|
326 | - } |
|
327 | - } |
|
328 | - |
|
329 | - // Convert to objects |
|
330 | - array_walk($new_fields, function(&$item, $key) { |
|
331 | - $item = (object)$item; |
|
332 | - }); |
|
333 | - |
|
334 | - return $new_fields; |
|
335 | - } |
|
336 | - |
|
337 | - //-------------------------------------------------------------------- |
|
271 | + /** |
|
272 | + * Grabs the fields from the CLI options and gets them ready for |
|
273 | + * use within the views. |
|
274 | + */ |
|
275 | + protected function parseFieldString($fields) |
|
276 | + { |
|
277 | + if ( empty( $fields ) ) |
|
278 | + { |
|
279 | + return NULL; |
|
280 | + } |
|
281 | + |
|
282 | + $fields = explode( ' ', $fields ); |
|
283 | + |
|
284 | + $new_fields = [ ]; |
|
285 | + |
|
286 | + foreach ( $fields as $field ) |
|
287 | + { |
|
288 | + $pop = [ NULL, NULL, NULL ]; |
|
289 | + list( $field, $type, $size ) = array_merge( explode( ':', $field ), $pop ); |
|
290 | + $type = strtolower( $type ); |
|
291 | + |
|
292 | + // Strings |
|
293 | + if (in_array($type, ['char', 'varchar', 'string'])) |
|
294 | + { |
|
295 | + $new_fields[] = [ |
|
296 | + 'name' => $field, |
|
297 | + 'type' => 'text' |
|
298 | + ]; |
|
299 | + } |
|
300 | + |
|
301 | + // Textarea |
|
302 | + else if ($type == 'text') |
|
303 | + { |
|
304 | + $new_fields[] = [ |
|
305 | + 'name' => $field, |
|
306 | + 'type' => 'textarea' |
|
307 | + ]; |
|
308 | + } |
|
309 | + |
|
310 | + // Number |
|
311 | + else if (in_array($type, ['tinyint', 'int', 'bigint', 'mediumint', 'float', 'double', 'number'])) |
|
312 | + { |
|
313 | + $new_fields[] = [ |
|
314 | + 'name' => $field, |
|
315 | + 'type' => 'number' |
|
316 | + ]; |
|
317 | + } |
|
318 | + |
|
319 | + // Date |
|
320 | + else if (in_array($type, ['date', 'datetime', 'time'])) |
|
321 | + { |
|
322 | + $new_fields[] = [ |
|
323 | + 'name' => $field, |
|
324 | + 'type' => $type |
|
325 | + ]; |
|
326 | + } |
|
327 | + } |
|
328 | + |
|
329 | + // Convert to objects |
|
330 | + array_walk($new_fields, function(&$item, $key) { |
|
331 | + $item = (object)$item; |
|
332 | + }); |
|
333 | + |
|
334 | + return $new_fields; |
|
335 | + } |
|
336 | + |
|
337 | + //-------------------------------------------------------------------- |
|
338 | 338 | |
339 | 339 | |
340 | 340 | /** |
@@ -31,7 +31,7 @@ |
||
31 | 31 | */ |
32 | 32 | |
33 | 33 | $descriptions = [ |
34 | - 'model' => ['model <name>', 'Creates a new model file that extends from CIDbModel.'] |
|
34 | + 'model' => ['model <name>', 'Creates a new model file that extends from CIDbModel.'] |
|
35 | 35 | ]; |
36 | 36 | |
37 | 37 | $long_description = <<<EOT |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | |
39 | 39 | protected $model_name = ''; |
40 | 40 | |
41 | - protected $table_exists = false; |
|
41 | + protected $table_exists = false; |
|
42 | 42 | |
43 | 43 | //-------------------------------------------------------------------- |
44 | 44 | |
@@ -46,32 +46,32 @@ discard block |
||
46 | 46 | { |
47 | 47 | $name = array_shift( $segments ); |
48 | 48 | |
49 | - // If a table already exists then we don't need a migration |
|
50 | - $this->load->database(); |
|
51 | - if ($this->db->table_exists($name)) |
|
52 | - { |
|
53 | - $this->table_exists = true; |
|
54 | - } |
|
49 | + // If a table already exists then we don't need a migration |
|
50 | + $this->load->database(); |
|
51 | + if ($this->db->table_exists($name)) |
|
52 | + { |
|
53 | + $this->table_exists = true; |
|
54 | + } |
|
55 | 55 | |
56 | 56 | // If we didn't attach any fields, then we |
57 | 57 | // need to generate the barebones here. |
58 | 58 | $this->fields = CLI::option('fields'); |
59 | 59 | |
60 | - // If we don't have any fields, and no model |
|
61 | - // exists, then we need to provide some default fields. |
|
62 | - if (empty($this->fields)) |
|
63 | - { |
|
64 | - if (! $this->table_exists) |
|
65 | - { |
|
66 | - $this->fields = "id:int id:id title:string created_on:datetime modified_on:datetime"; |
|
67 | - } |
|
68 | - } |
|
60 | + // If we don't have any fields, and no model |
|
61 | + // exists, then we need to provide some default fields. |
|
62 | + if (empty($this->fields)) |
|
63 | + { |
|
64 | + if (! $this->table_exists) |
|
65 | + { |
|
66 | + $this->fields = "id:int id:id title:string created_on:datetime modified_on:datetime"; |
|
67 | + } |
|
68 | + } |
|
69 | 69 | |
70 | 70 | // Perform the steps. |
71 | - if (! $this->table_exists) |
|
72 | - { |
|
73 | - $this->makeMigration( $name ); |
|
74 | - } |
|
71 | + if (! $this->table_exists) |
|
72 | + { |
|
73 | + $this->makeMigration( $name ); |
|
74 | + } |
|
75 | 75 | $this->makeSeed($name); |
76 | 76 | $this->makeModel($name); |
77 | 77 | $this->makeController($name); |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | |
99 | 99 | public function makeSeed($name) |
100 | 100 | { |
101 | - $this->generate("seed {$name}", null, true); |
|
101 | + $this->generate("seed {$name}", null, true); |
|
102 | 102 | } |
103 | 103 | |
104 | 104 | //-------------------------------------------------------------------- |
@@ -106,33 +106,33 @@ discard block |
||
106 | 106 | |
107 | 107 | public function makeModel($name) |
108 | 108 | { |
109 | - $this->load->helper('inflector'); |
|
109 | + $this->load->helper('inflector'); |
|
110 | 110 | |
111 | 111 | $name = singular($name); |
112 | 112 | $this->model_name = $name; |
113 | 113 | |
114 | - // If a table exists, we can build it from that |
|
115 | - if ($this->table_exists) |
|
116 | - { |
|
117 | - $this->generate( "model {$name}", "-table $name -primary_key id", TRUE ); |
|
118 | - } |
|
119 | - // Otherwise, we need to provide the fields to make the model out of. |
|
120 | - else |
|
121 | - { |
|
122 | - $this->generate( "model {$name}", "-fields '{$this->fields}'", TRUE ); |
|
123 | - } |
|
114 | + // If a table exists, we can build it from that |
|
115 | + if ($this->table_exists) |
|
116 | + { |
|
117 | + $this->generate( "model {$name}", "-table $name -primary_key id", TRUE ); |
|
118 | + } |
|
119 | + // Otherwise, we need to provide the fields to make the model out of. |
|
120 | + else |
|
121 | + { |
|
122 | + $this->generate( "model {$name}", "-fields '{$this->fields}'", TRUE ); |
|
123 | + } |
|
124 | 124 | } |
125 | 125 | |
126 | 126 | //-------------------------------------------------------------------- |
127 | 127 | |
128 | 128 | public function makeController($name) |
129 | 129 | { |
130 | - $options = "-model {$this->model_name} -create_views"; |
|
130 | + $options = "-model {$this->model_name} -create_views"; |
|
131 | 131 | |
132 | - if (! empty($this->fields)) |
|
133 | - { |
|
134 | - $options .= " -fields '{$this->fields}'"; |
|
135 | - } |
|
132 | + if (! empty($this->fields)) |
|
133 | + { |
|
134 | + $options .= " -fields '{$this->fields}'"; |
|
135 | + } |
|
136 | 136 | |
137 | 137 | $this->generate("controller {$name}", $options, true); |
138 | 138 | } |
@@ -1,40 +1,40 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * CodeIgniter |
|
4 | - * |
|
5 | - * An open source application development framework for PHP |
|
6 | - * |
|
7 | - * This content is released under the MIT License (MIT) |
|
8 | - * |
|
9 | - * Copyright (c) 2014 - 2015, British Columbia Institute of Technology |
|
10 | - * |
|
11 | - * Permission is hereby granted, free of charge, to any person obtaining a copy |
|
12 | - * of this software and associated documentation files (the "Software"), to deal |
|
13 | - * in the Software without restriction, including without limitation the rights |
|
14 | - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
|
15 | - * copies of the Software, and to permit persons to whom the Software is |
|
16 | - * furnished to do so, subject to the following conditions: |
|
17 | - * |
|
18 | - * The above copyright notice and this permission notice shall be included in |
|
19 | - * all copies or substantial portions of the Software. |
|
20 | - * |
|
21 | - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
|
22 | - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
|
23 | - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
|
24 | - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
|
25 | - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
|
26 | - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
|
27 | - * THE SOFTWARE. |
|
28 | - * |
|
29 | - * @package CodeIgniter |
|
30 | - * @author EllisLab Dev Team |
|
31 | - * @copyright Copyright (c) 2008 - 2014, EllisLab, Inc. (http://ellislab.com/) |
|
32 | - * @copyright Copyright (c) 2014 - 2015, British Columbia Institute of Technology (http://bcit.ca/) |
|
33 | - * @license http://opensource.org/licenses/MIT MIT License |
|
34 | - * @link http://codeigniter.com |
|
35 | - * @since Version 1.0.0 |
|
36 | - * @filesource |
|
37 | - */ |
|
3 | + * CodeIgniter |
|
4 | + * |
|
5 | + * An open source application development framework for PHP |
|
6 | + * |
|
7 | + * This content is released under the MIT License (MIT) |
|
8 | + * |
|
9 | + * Copyright (c) 2014 - 2015, British Columbia Institute of Technology |
|
10 | + * |
|
11 | + * Permission is hereby granted, free of charge, to any person obtaining a copy |
|
12 | + * of this software and associated documentation files (the "Software"), to deal |
|
13 | + * in the Software without restriction, including without limitation the rights |
|
14 | + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
|
15 | + * copies of the Software, and to permit persons to whom the Software is |
|
16 | + * furnished to do so, subject to the following conditions: |
|
17 | + * |
|
18 | + * The above copyright notice and this permission notice shall be included in |
|
19 | + * all copies or substantial portions of the Software. |
|
20 | + * |
|
21 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
|
22 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
|
23 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
|
24 | + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
|
25 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
|
26 | + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
|
27 | + * THE SOFTWARE. |
|
28 | + * |
|
29 | + * @package CodeIgniter |
|
30 | + * @author EllisLab Dev Team |
|
31 | + * @copyright Copyright (c) 2008 - 2014, EllisLab, Inc. (http://ellislab.com/) |
|
32 | + * @copyright Copyright (c) 2014 - 2015, British Columbia Institute of Technology (http://bcit.ca/) |
|
33 | + * @license http://opensource.org/licenses/MIT MIT License |
|
34 | + * @link http://codeigniter.com |
|
35 | + * @since Version 1.0.0 |
|
36 | + * @filesource |
|
37 | + */ |
|
38 | 38 | defined('BASEPATH') OR exit('No direct script access allowed'); |
39 | 39 | |
40 | 40 | /** |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | elseif ( ! class_exists('CI_DB', FALSE)) |
186 | 186 | { |
187 | 187 | /** |
188 | - * @ignore |
|
188 | + * @ignore |
|
189 | 189 | */ |
190 | 190 | class CI_DB extends CI_DB_driver { } |
191 | 191 | } |
@@ -1,40 +1,40 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * CodeIgniter |
|
4 | - * |
|
5 | - * An open source application development framework for PHP |
|
6 | - * |
|
7 | - * This content is released under the MIT License (MIT) |
|
8 | - * |
|
9 | - * Copyright (c) 2014 - 2015, British Columbia Institute of Technology |
|
10 | - * |
|
11 | - * Permission is hereby granted, free of charge, to any person obtaining a copy |
|
12 | - * of this software and associated documentation files (the "Software"), to deal |
|
13 | - * in the Software without restriction, including without limitation the rights |
|
14 | - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
|
15 | - * copies of the Software, and to permit persons to whom the Software is |
|
16 | - * furnished to do so, subject to the following conditions: |
|
17 | - * |
|
18 | - * The above copyright notice and this permission notice shall be included in |
|
19 | - * all copies or substantial portions of the Software. |
|
20 | - * |
|
21 | - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
|
22 | - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
|
23 | - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
|
24 | - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
|
25 | - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
|
26 | - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
|
27 | - * THE SOFTWARE. |
|
28 | - * |
|
29 | - * @package CodeIgniter |
|
30 | - * @author EllisLab Dev Team |
|
31 | - * @copyright Copyright (c) 2008 - 2014, EllisLab, Inc. (http://ellislab.com/) |
|
32 | - * @copyright Copyright (c) 2014 - 2015, British Columbia Institute of Technology (http://bcit.ca/) |
|
33 | - * @license http://opensource.org/licenses/MIT MIT License |
|
34 | - * @link http://codeigniter.com |
|
35 | - * @since Version 1.3.0 |
|
36 | - * @filesource |
|
37 | - */ |
|
3 | + * CodeIgniter |
|
4 | + * |
|
5 | + * An open source application development framework for PHP |
|
6 | + * |
|
7 | + * This content is released under the MIT License (MIT) |
|
8 | + * |
|
9 | + * Copyright (c) 2014 - 2015, British Columbia Institute of Technology |
|
10 | + * |
|
11 | + * Permission is hereby granted, free of charge, to any person obtaining a copy |
|
12 | + * of this software and associated documentation files (the "Software"), to deal |
|
13 | + * in the Software without restriction, including without limitation the rights |
|
14 | + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
|
15 | + * copies of the Software, and to permit persons to whom the Software is |
|
16 | + * furnished to do so, subject to the following conditions: |
|
17 | + * |
|
18 | + * The above copyright notice and this permission notice shall be included in |
|
19 | + * all copies or substantial portions of the Software. |
|
20 | + * |
|
21 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
|
22 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
|
23 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
|
24 | + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
|
25 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
|
26 | + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
|
27 | + * THE SOFTWARE. |
|
28 | + * |
|
29 | + * @package CodeIgniter |
|
30 | + * @author EllisLab Dev Team |
|
31 | + * @copyright Copyright (c) 2008 - 2014, EllisLab, Inc. (http://ellislab.com/) |
|
32 | + * @copyright Copyright (c) 2014 - 2015, British Columbia Institute of Technology (http://bcit.ca/) |
|
33 | + * @license http://opensource.org/licenses/MIT MIT License |
|
34 | + * @link http://codeigniter.com |
|
35 | + * @since Version 1.3.0 |
|
36 | + * @filesource |
|
37 | + */ |
|
38 | 38 | defined('BASEPATH') OR exit('No direct script access allowed'); |
39 | 39 | |
40 | 40 | /** |
@@ -1,40 +1,40 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * CodeIgniter |
|
4 | - * |
|
5 | - * An open source application development framework for PHP |
|
6 | - * |
|
7 | - * This content is released under the MIT License (MIT) |
|
8 | - * |
|
9 | - * Copyright (c) 2014 - 2015, British Columbia Institute of Technology |
|
10 | - * |
|
11 | - * Permission is hereby granted, free of charge, to any person obtaining a copy |
|
12 | - * of this software and associated documentation files (the "Software"), to deal |
|
13 | - * in the Software without restriction, including without limitation the rights |
|
14 | - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
|
15 | - * copies of the Software, and to permit persons to whom the Software is |
|
16 | - * furnished to do so, subject to the following conditions: |
|
17 | - * |
|
18 | - * The above copyright notice and this permission notice shall be included in |
|
19 | - * all copies or substantial portions of the Software. |
|
20 | - * |
|
21 | - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
|
22 | - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
|
23 | - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
|
24 | - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
|
25 | - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
|
26 | - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
|
27 | - * THE SOFTWARE. |
|
28 | - * |
|
29 | - * @package CodeIgniter |
|
30 | - * @author EllisLab Dev Team |
|
31 | - * @copyright Copyright (c) 2008 - 2014, EllisLab, Inc. (http://ellislab.com/) |
|
32 | - * @copyright Copyright (c) 2014 - 2015, British Columbia Institute of Technology (http://bcit.ca/) |
|
33 | - * @license http://opensource.org/licenses/MIT MIT License |
|
34 | - * @link http://codeigniter.com |
|
35 | - * @since Version 2.0.0 |
|
36 | - * @filesource |
|
37 | - */ |
|
3 | + * CodeIgniter |
|
4 | + * |
|
5 | + * An open source application development framework for PHP |
|
6 | + * |
|
7 | + * This content is released under the MIT License (MIT) |
|
8 | + * |
|
9 | + * Copyright (c) 2014 - 2015, British Columbia Institute of Technology |
|
10 | + * |
|
11 | + * Permission is hereby granted, free of charge, to any person obtaining a copy |
|
12 | + * of this software and associated documentation files (the "Software"), to deal |
|
13 | + * in the Software without restriction, including without limitation the rights |
|
14 | + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
|
15 | + * copies of the Software, and to permit persons to whom the Software is |
|
16 | + * furnished to do so, subject to the following conditions: |
|
17 | + * |
|
18 | + * The above copyright notice and this permission notice shall be included in |
|
19 | + * all copies or substantial portions of the Software. |
|
20 | + * |
|
21 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
|
22 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
|
23 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
|
24 | + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
|
25 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
|
26 | + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
|
27 | + * THE SOFTWARE. |
|
28 | + * |
|
29 | + * @package CodeIgniter |
|
30 | + * @author EllisLab Dev Team |
|
31 | + * @copyright Copyright (c) 2008 - 2014, EllisLab, Inc. (http://ellislab.com/) |
|
32 | + * @copyright Copyright (c) 2014 - 2015, British Columbia Institute of Technology (http://bcit.ca/) |
|
33 | + * @license http://opensource.org/licenses/MIT MIT License |
|
34 | + * @link http://codeigniter.com |
|
35 | + * @since Version 2.0.0 |
|
36 | + * @filesource |
|
37 | + */ |
|
38 | 38 | defined('BASEPATH') OR exit('No direct script access allowed'); |
39 | 39 | |
40 | 40 | /** |
@@ -1,40 +1,40 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * CodeIgniter |
|
4 | - * |
|
5 | - * An open source application development framework for PHP |
|
6 | - * |
|
7 | - * This content is released under the MIT License (MIT) |
|
8 | - * |
|
9 | - * Copyright (c) 2014 - 2015, British Columbia Institute of Technology |
|
10 | - * |
|
11 | - * Permission is hereby granted, free of charge, to any person obtaining a copy |
|
12 | - * of this software and associated documentation files (the "Software"), to deal |
|
13 | - * in the Software without restriction, including without limitation the rights |
|
14 | - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
|
15 | - * copies of the Software, and to permit persons to whom the Software is |
|
16 | - * furnished to do so, subject to the following conditions: |
|
17 | - * |
|
18 | - * The above copyright notice and this permission notice shall be included in |
|
19 | - * all copies or substantial portions of the Software. |
|
20 | - * |
|
21 | - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
|
22 | - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
|
23 | - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
|
24 | - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
|
25 | - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
|
26 | - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
|
27 | - * THE SOFTWARE. |
|
28 | - * |
|
29 | - * @package CodeIgniter |
|
30 | - * @author EllisLab Dev Team |
|
31 | - * @copyright Copyright (c) 2008 - 2014, EllisLab, Inc. (http://ellislab.com/) |
|
32 | - * @copyright Copyright (c) 2014 - 2015, British Columbia Institute of Technology (http://bcit.ca/) |
|
33 | - * @license http://opensource.org/licenses/MIT MIT License |
|
34 | - * @link http://codeigniter.com |
|
35 | - * @since Version 3.0.0 |
|
36 | - * @filesource |
|
37 | - */ |
|
3 | + * CodeIgniter |
|
4 | + * |
|
5 | + * An open source application development framework for PHP |
|
6 | + * |
|
7 | + * This content is released under the MIT License (MIT) |
|
8 | + * |
|
9 | + * Copyright (c) 2014 - 2015, British Columbia Institute of Technology |
|
10 | + * |
|
11 | + * Permission is hereby granted, free of charge, to any person obtaining a copy |
|
12 | + * of this software and associated documentation files (the "Software"), to deal |
|
13 | + * in the Software without restriction, including without limitation the rights |
|
14 | + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
|
15 | + * copies of the Software, and to permit persons to whom the Software is |
|
16 | + * furnished to do so, subject to the following conditions: |
|
17 | + * |
|
18 | + * The above copyright notice and this permission notice shall be included in |
|
19 | + * all copies or substantial portions of the Software. |
|
20 | + * |
|
21 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
|
22 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
|
23 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
|
24 | + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
|
25 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
|
26 | + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
|
27 | + * THE SOFTWARE. |
|
28 | + * |
|
29 | + * @package CodeIgniter |
|
30 | + * @author EllisLab Dev Team |
|
31 | + * @copyright Copyright (c) 2008 - 2014, EllisLab, Inc. (http://ellislab.com/) |
|
32 | + * @copyright Copyright (c) 2014 - 2015, British Columbia Institute of Technology (http://bcit.ca/) |
|
33 | + * @license http://opensource.org/licenses/MIT MIT License |
|
34 | + * @link http://codeigniter.com |
|
35 | + * @since Version 3.0.0 |
|
36 | + * @filesource |
|
37 | + */ |
|
38 | 38 | defined('BASEPATH') OR exit('No direct script access allowed'); |
39 | 39 | |
40 | 40 | /** |
@@ -1,40 +1,40 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * CodeIgniter |
|
4 | - * |
|
5 | - * An open source application development framework for PHP |
|
6 | - * |
|
7 | - * This content is released under the MIT License (MIT) |
|
8 | - * |
|
9 | - * Copyright (c) 2014 - 2015, British Columbia Institute of Technology |
|
10 | - * |
|
11 | - * Permission is hereby granted, free of charge, to any person obtaining a copy |
|
12 | - * of this software and associated documentation files (the "Software"), to deal |
|
13 | - * in the Software without restriction, including without limitation the rights |
|
14 | - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
|
15 | - * copies of the Software, and to permit persons to whom the Software is |
|
16 | - * furnished to do so, subject to the following conditions: |
|
17 | - * |
|
18 | - * The above copyright notice and this permission notice shall be included in |
|
19 | - * all copies or substantial portions of the Software. |
|
20 | - * |
|
21 | - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
|
22 | - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
|
23 | - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
|
24 | - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
|
25 | - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
|
26 | - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
|
27 | - * THE SOFTWARE. |
|
28 | - * |
|
29 | - * @package CodeIgniter |
|
30 | - * @author EllisLab Dev Team |
|
31 | - * @copyright Copyright (c) 2008 - 2014, EllisLab, Inc. (http://ellislab.com/) |
|
32 | - * @copyright Copyright (c) 2014 - 2015, British Columbia Institute of Technology (http://bcit.ca/) |
|
33 | - * @license http://opensource.org/licenses/MIT MIT License |
|
34 | - * @link http://codeigniter.com |
|
35 | - * @since Version 1.0.0 |
|
36 | - * @filesource |
|
37 | - */ |
|
3 | + * CodeIgniter |
|
4 | + * |
|
5 | + * An open source application development framework for PHP |
|
6 | + * |
|
7 | + * This content is released under the MIT License (MIT) |
|
8 | + * |
|
9 | + * Copyright (c) 2014 - 2015, British Columbia Institute of Technology |
|
10 | + * |
|
11 | + * Permission is hereby granted, free of charge, to any person obtaining a copy |
|
12 | + * of this software and associated documentation files (the "Software"), to deal |
|
13 | + * in the Software without restriction, including without limitation the rights |
|
14 | + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
|
15 | + * copies of the Software, and to permit persons to whom the Software is |
|
16 | + * furnished to do so, subject to the following conditions: |
|
17 | + * |
|
18 | + * The above copyright notice and this permission notice shall be included in |
|
19 | + * all copies or substantial portions of the Software. |
|
20 | + * |
|
21 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
|
22 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
|
23 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
|
24 | + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
|
25 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
|
26 | + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
|
27 | + * THE SOFTWARE. |
|
28 | + * |
|
29 | + * @package CodeIgniter |
|
30 | + * @author EllisLab Dev Team |
|
31 | + * @copyright Copyright (c) 2008 - 2014, EllisLab, Inc. (http://ellislab.com/) |
|
32 | + * @copyright Copyright (c) 2014 - 2015, British Columbia Institute of Technology (http://bcit.ca/) |
|
33 | + * @license http://opensource.org/licenses/MIT MIT License |
|
34 | + * @link http://codeigniter.com |
|
35 | + * @since Version 1.0.0 |
|
36 | + * @filesource |
|
37 | + */ |
|
38 | 38 | defined('BASEPATH') OR exit('No direct script access allowed'); |
39 | 39 | |
40 | 40 | /** |