mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-18 08:19:05 +01:00
LSsearch : make purgeParams() and purgeCache() methods static
This commit is contained in:
parent
887b054328
commit
a577417b69
1 changed files with 3 additions and 8 deletions
|
@ -106,7 +106,7 @@ class LSsearch {
|
|||
}
|
||||
}
|
||||
else {
|
||||
$this -> purgeParams();
|
||||
$this -> purgeParams($LSobject);
|
||||
$this -> loadDefaultParameters();
|
||||
}
|
||||
|
||||
|
@ -192,10 +192,7 @@ class LSsearch {
|
|||
*
|
||||
* @retval void
|
||||
*/
|
||||
public function purgeParams($LSobject=NULL) {
|
||||
if (is_null($LSobject)) {
|
||||
$LSobject = $this -> LSobject;
|
||||
}
|
||||
public static function purgeParams($LSobject) {
|
||||
unset($_SESSION['LSsession']['LSsearch'][$LSobject]['params']);
|
||||
}
|
||||
|
||||
|
@ -204,9 +201,7 @@ class LSsearch {
|
|||
*
|
||||
* @retval void
|
||||
*/
|
||||
public function purgeCache($LSobject=NULL) {
|
||||
if (is_null($LSobject))
|
||||
$LSobject = $this -> LSobject;
|
||||
public static function purgeCache($LSobject) {
|
||||
unset($_SESSION['LSsession']['LSsearch'][$LSobject]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue