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 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
|
<?
// Run session
session_start() ;
// include libraries
include "../../include.php";
include "Search.class.php";
include "../User.class.php";
// Instanciate UserList Object Scenario
$O_Search = new Search() ;
if ( isset( $_GET[ "act" ] ) && $_GET[ "act" ] == "End" ) {
// Finish scenario
$O_Search->End() ;
} else if ( isset( $_GET[ "act" ] ) && $_GET[ "act" ] == "UpdateStatus" ) {
// Finish scenario
$O_Search->UpdateStatus() ;
} else {
// Run scenario
$O_Search->Begin( true ) ;
}
?>
-------------------- Méthodes de la classe -------------------------
public function End() {
error_log("end\n", 3, 'log.txt');
parent::End( true ) ;
$s_TplMap = $this->TplMap() ;
try {
// no result found ?
$this->_AltNoResult() ;
} catch ( ModelException $O_TplException ) {
$s_TplMap = $O_TplException->getTplMap() ;
} catch ( TechnicException $O_TplException ) {
$s_TplMap = $O_TplException->getTplMap() ;
}
$O_TplDisplay = new TplDisplay( new Tpl( $s_TplMap , true ) , BUFFER_ON ) ;
$O_TplDisplay->Display() ;
} |
Partager