@@ -6,110 +6,110 @@ It's the result of quite some time of studying the PDO class and the new PHP 7.4
6
6
7
7
Let's go for the methods.
8
8
9
- ## addConnection
9
+ ### addConnection
10
10
11
11
Method to define a database connection
12
12
13
- ## useConnection
13
+ ### useConnection
14
14
15
15
This function will set which connection the class should use at the moment
16
16
17
- ## getTotalRequests
17
+ ### getTotalRequests
18
18
19
19
It will return the total amount number of requests that were done to the database
20
20
21
- ## performance
21
+ ### performance
22
22
23
23
It will display a HTML comment on the page, displaying the total amount of time in unix the requisitions had taken
24
24
25
- ## fetch
25
+ ### fetch
26
26
27
27
Will fetch a row. If $simple then only one row and finishes.
28
28
29
- ## fetchAll
29
+ ### fetchAll
30
30
31
31
Will give all results
32
32
33
- ## count
33
+ ### count
34
34
35
35
Will give the number of rows inside the object
36
36
37
- ## empty
37
+ ### empty
38
38
39
39
If the object is empty, returns true
40
40
41
- ## query
41
+ ### query
42
42
43
43
Performns a query
44
44
45
- ## pagedQuery
45
+ ### pagedQuery
46
46
47
47
Breaks the number of results to be shown in a smallest number
48
48
49
- ## setLanguage
49
+ ### setLanguage
50
50
51
51
Define which language the class should work (default: english)
52
52
53
- ## setPaginationWords
53
+ ### setPaginationWords
54
54
55
55
Defines the words inside the pagination HTML when the page method is evoked
56
56
57
- ## getCurrentPage
57
+ ### getCurrentPage
58
58
59
59
Will return the current page according to URL
60
60
61
- ## page
61
+ ### page
62
62
63
63
Will give the pagination HTML
64
64
65
- ## date
65
+ ### date
66
66
67
67
Will give server date
68
68
69
- ## datetime
69
+ ### datetime
70
70
71
71
Will give server datetime
72
72
73
- ## setCollation
73
+ ### setCollation
74
74
75
75
Will generate a SQL to change whole database collation. Returns a string, and can apply it too.
76
76
77
- ## setFriendlyURL
77
+ ### setFriendlyURL
78
78
79
79
Will stablish the FriendlyURL instance
80
80
81
- ## prepare
81
+ ### prepare
82
82
83
83
Will prepare a SQL
84
84
85
- ## set
85
+ ### set
86
86
87
87
Will bind value to a prepared SQL
88
88
89
- ## formatMonney
89
+ ### formatMonney
90
90
91
91
Will make the value a monetary one
92
92
93
- ## insert
93
+ ### insert
94
94
95
95
Will insert $data inside $table. If $additional is given, will transform values
96
96
97
- ## id
97
+ ### id
98
98
99
99
Returns last inserted id
100
100
101
- ## update
101
+ ### update
102
102
103
103
Updates $data in $table using given $rules. $additional is supported too.
104
104
105
- ## delete
105
+ ### delete
106
106
107
107
Will delete whole table if $rules is omitted
108
108
109
- ## URLNormalize
109
+ ### URLNormalize
110
110
111
111
Makes given string url friendly
112
112
113
- ## search
113
+ ### search
114
114
115
115
Simple search engine. It uses the content inside database (so, if database doesn't have much records...)
0 commit comments