-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtutorialManipulations.php
More file actions
executable file
·27 lines (27 loc) · 1.09 KB
/
Copy pathtutorialManipulations.php
File metadata and controls
executable file
·27 lines (27 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
require "util/TutorialUtils.php";//Importing tutorial printing utils
$tutorialUtils = new TutorialUtils;//Creating tutorial utils object
$action = $_POST['action'];//getting variables from JS
//Loading object method depending on action needed
if($action == "loadTutorialsByKeywords"){//If search tutorials by keywords
$keywords = $_POST['keywords'];
$tutorialUtils->loadTutorialsByKeywords($keywords);
}
else if($action == "loadClientTutorials"){//If search tutorials by keywords
$tutorialUtils->loadClientTutorials();
}
else if($action == "loadPendingTutorials"){//If search tutorials by keywords
$tutorialUtils->loadPendingTutorials();
}
else if($action == "loadConfirmedTutorials"){//If search tutorials by keywords
$tutorialUtils->loadConfirmedTutorials();
}
else if($action == "acpt"){//If search tutorials by keywords
$link = $_POST['link'];
$tutorialUtils->confirmTutorial($link);
}
else if($action == "deny"){//If search tutorials by keywords
$link = $_POST['link'];
$tutorialUtils->rejectTutorial($link);
}
?>