Browse
For agents
About
Tutor LMS – eLearning and online course solution
/
2.0.1
Tutor LMS – eLearning and online course solution
v2.0.1
Switch version
4.0.7
4.0.6
4.0.5
4.0.4
4.0.3
4.0.2
4.0.1
4.0.0
3.9.15
3.9.14
3.9.13
3.9.12
3.9.11
trunk
1.0.0
1.0.0-alpha
1.0.1
1.0.2
1.0.3
1.0.4
1.0.5
1.0.6
1.0.7
1.0.8
1.0.9
All 191 releases
Overview
Code
tutor
/
classes
/
Custom_Validation.php
Custom_Validation.php
in Tutor LMS – eLearning and online course solution 2.0.1, at classes/Custom_Validation.php
21 lines
270 B
Find file
t
No matching file
Up and down to move
Enter to open
Esc to close
Raw
Download
Zip
View raw
1
<
?
php
2
namespace
TUTOR
;
3
4
trait
Custom_Validation
5
{
6
7
/*
8
*check whether order is asc or desc
9
*/
10
public
function
validate_order
(
$
order
)
11
{
12
13
if
(
$
order
===
'
ASC
'
OR
$
order
===
'
DESC
'
OR
$
order
===
'
asc
'
OR
$
order
===
'
desc
'
)
14
{
15
return
true
;
16
}
17
return
false
;
18
19
}
20
}
21
?
>