Commit Graph

123 Commits

Author SHA1 Message Date
kj
2c7938a0c3 Set default fetch mode to fetch assoc. 2022-07-24 00:29:34 -04:00
kj
c57ca191b1 Rename limit() variables with better names and add description. 2022-07-19 12:08:22 -04:00
kj
f4eabe6d54 Minor fixes.
- Add some uses.
- Fix typo and order error con docl block.
2022-07-14 22:39:38 -04:00
kj
0db6e4a021 rework to change from MySQLi to PDO. 2022-07-14 21:41:48 -04:00
kj
afb4c914a1 Fix error on where_in with string values. 2022-07-10 12:10:01 -04:00
kj
4c4fe6f1f7 Change View to work as instance and render text and json. 2022-06-25 21:11:11 -04:00
kj
b6555ee039 Fix docblocks. 2022-06-07 23:06:37 -04:00
kj
a641248453 Add middleware priorities. 2022-06-07 23:05:49 -04:00
kj
eb27acf68e Add middleware lib. 2022-05-18 12:29:27 -04:00
kj
f38c6610fb Allow multiple middlewares. 2022-05-18 12:29:07 -04:00
kj
4003a88f66 Insignificant change: Rename some variables. 2022-04-14 12:52:52 -04:00
kj
01927ec946 Normalize header comments to phpdoc compatibility. 2022-04-12 15:56:50 -04:00
kj
a23e795f5c Fix error on getVars when get not set properties. 2022-04-05 17:12:30 -04:00
kj
9689ac82cf Fix wrong result type on getById. 2022-03-30 14:09:08 -04:00
kj
fe61d14713 Fix error on save. 2022-03-28 21:55:29 -04:00
kj
97380b2bee Change ModelMySQL atributes to strong typed. 2022-03-22 04:30:47 -04:00
kj
4cd7850931 fix result type on ModelMySQL::query. 2022-03-17 22:38:10 -04:00
kj
4240b048fd add missing use for mysqli_result. 2022-03-17 22:31:47 -04:00
kj
f43028d72d Migrate to strong typed (compatible only with PHP 7.0+). 2022-03-17 17:22:04 -04:00
kj
503efef448 Update comments to phpdoc compatible format. 2022-02-23 20:53:36 -04:00
kj
81f2d4d665 Disable th usade of "-" on {pseudovariables} 2022-01-27 11:17:35 -04:00
kj
4b1585fe6d Change URI to Path. 2022-01-25 09:46:04 -04:00
kj
83c9d28526 Change URI to Path. 2022-01-25 09:42:16 -04:00
kj
a303f28f88 - Change $notFoundCallBack to $notFoundCallback
- Minor fixed on comments.
2022-01-24 11:06:39 -04:00
kj
94f1857653 Change not found callback. 2021-11-27 19:21:13 -04:00
kj
6fbf9a2a72 Change indentation. 2021-10-21 23:34:49 -04:00
kj
790930771f Add directories default estructure. 2021-10-15 17:52:14 -04:00
kj
184d03a214 Fix error on undefined param. 2021-10-15 17:41:47 -04:00
kj
e1fe93a04c - Change middleware for accept any callable function as param.
- $notFoundCallback now has a function as default value (the normal 404 page as before).
- Change the way to manipulate the {pseudoVars} on uri, now it go into the same Neuron onject that "post", "get", and "json" and not more as separate params into the callback (the callback now only receive one param by default).
- $notFoundCallback now receive the $req, as param.
2021-10-15 17:23:20 -04:00
kj
68bc906ecf Add default value for argument in Neuron constructor. 2021-10-15 17:22:53 -04:00
kj
b8b1a1c8f9 Enable to use limit funtion on count function instead send limit directly. 2021-09-11 20:02:23 -04:00
kj
182635bc9c - Remove option for use non-optimized count.
- Add option for limit count.
2021-09-11 19:04:54 -04:00
kj
b80ab19d7e Add option for use non-optimized count. 2021-09-11 18:27:15 -04:00
kj
405cf1cb34 Fix count on not resetQuery. 2021-08-14 17:46:14 -04:00
kj
8069fb28a1 Ignore orderby on count. 2021-08-14 17:45:23 -04:00
kj
e3b97601e2 - Add option for reset query or not at get, getFirts, buildQuery and count
- Add sql_calc_found_rows method.
- Add found_rows method.
- Improve count method usind sql_calc_found_rows and found_rows.
2021-08-14 17:30:03 -04:00
kj
e424139072 Remove unused use. 2021-06-21 16:08:29 -04:00
kj
d23ecfbde6 Add a 404 custom controller option on Router. 2021-03-25 12:02:50 -04:00
kj
8d418c8eb9 Change private functions to protected. 2021-01-12 21:29:23 -04:00
kj
69c982b3e9 Fix join orden on query. 2020-12-03 11:13:30 -04:00
kj
0613ecb373 Fix variable name in search method. 2020-12-03 11:05:34 -04:00
kj
cbd59c217f Added setNull method to ModelMysql. 2020-10-24 04:47:39 -04:00
kj
831dd7ad47 Fix error on middleware set for DELETE method. 2020-08-11 18:52:35 -04:00
kj
8a46d9a3c9 Fix error with join and PHP 7.4. 2020-08-08 02:24:11 -04:00
kj
fe98d94692 Fix count when there is a "group by" in the query (do not delete actual select). 2020-07-22 10:52:40 -04:00
kj
a7cb44a04b Don't save undefined atributes. 2020-07-22 10:25:51 -04:00
kj
5679bbf2c5 Don't save undefined atributes. 2020-07-17 21:54:17 -04:00
kj
02c0dbef50 - Params renamed to Neuron
- add path atribute to Router req
- add viewPath param to View
2020-06-11 06:25:41 -04:00
kj
3d18ede54d Replaced tabs to spaces. 2020-05-11 03:21:47 -04:00
kj
7aa5877492 Replaced tabs to spaces. 2020-05-11 03:13:32 -04:00
kj
c9f6887d5b Change protected attrs to static protected. 2020-05-11 03:11:11 -04:00
kj
2ba6079f17 Fix typo error (again). 2020-05-02 14:04:49 -04:00
kj
28ada2810d fix typo error. 2020-05-01 19:17:47 -04:00
kj
9d31dc1c24 Add '?>' to Router.php at end. 2020-04-21 18:57:01 -04:00
kj
27fe81c634 change resetQuery to protected. 2020-04-18 14:22:21 -04:00
kj
5d2612214d Remove deprecated create_function and use ReflectionClass instead. 2020-04-09 18:22:47 -04:00
kj
a2503adba2 Fix error when call non-static funtion 'getInstance' as static on ModelMysql. 2020-04-09 17:39:45 -04:00
kj
a036d0e1be Change to . 2020-04-03 18:00:48 -04:00
kj
8f1c00ebdf Allow where table1.colum=table2.colum on ModelMySQL. 2020-03-27 10:47:00 -04:00
kj
2d377eb803 Allow change from on ModelMySQL. 2020-03-27 10:25:40 -04:00
kj
f6c82c7a8c Add inner join to ModelMySQL. 2020-03-27 08:50:33 -04:00
kj
c929a3a454 Change self to static in ModelMysql. 2020-03-24 19:37:39 -04:00
kj
682452efc1 Fix error in search method. 2020-03-17 13:53:48 -04:00
kj
28880347a4 add comments to Libs. 2020-03-17 13:46:16 -04:00
kj
23704b3fb6 remove unnecessary init.php. 2020-03-17 13:45:38 -04:00
kj
cca5cb26ec Improve Params. 2020-03-17 09:20:58 -04:00
kj
b07333f3c8 Improve params. 2020-03-16 22:54:12 -04:00
kj
255ef0a75d change from object to param class. 2020-03-16 16:35:19 -04:00
kj
856557405e fix and/or concatenation. 2020-03-16 14:50:27 -04:00
kj
708cce70eb remove urldecode on getter of Params class. 2020-03-14 19:54:57 -04:00
kj
b8d4f92ddc Fix Params class at empty values. 2020-03-13 22:41:48 -04:00
kj
f5967591e1 add left and right join to ModelMysql. 2020-03-12 00:57:15 -04:00
kj
9539b43212 First commit. 2020-03-07 23:37:19 -04:00