mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-18 16:19:06 +01:00
LSsearch: rename method setParamsFormPostData() to setParamsFromRequest()
This commit is contained in:
parent
2544687b27
commit
eb8cfbf66a
2 changed files with 6 additions and 6 deletions
|
@ -556,11 +556,11 @@ class LSsearch extends LSlog_staticLoggerClass {
|
|||
}
|
||||
|
||||
/**
|
||||
* Define search parameters by reading Post Data ($_REQUEST)
|
||||
* Define search parameters by reading request data ($_REQUEST)
|
||||
*
|
||||
* @retval void
|
||||
*/
|
||||
public function setParamsFormPostData() {
|
||||
public function setParamsFromRequest() {
|
||||
$data = $_REQUEST;
|
||||
|
||||
if (self::formIsSubmited()) {
|
||||
|
|
|
@ -176,7 +176,7 @@ function handle_global_search($request) {
|
|||
LStemplate :: assign('pagetitle', $object -> getLabel());
|
||||
|
||||
$LSsearch = new LSsearch($LSobject, 'LSview');
|
||||
$LSsearch -> setParamsFormPostData();
|
||||
$LSsearch -> setParamsFromRequest();
|
||||
|
||||
$LSsearch -> run();
|
||||
|
||||
|
@ -433,7 +433,7 @@ function handle_LSobject_search($request) {
|
|||
// Instanciate a LSsearch
|
||||
$LSsearch = new LSsearch($LSobject, 'LSview', null, (isset($_REQUEST['reset'])));
|
||||
$LSsearch -> setParam('extraDisplayedColumns', True);
|
||||
$LSsearch -> setParamsFormPostData();
|
||||
$LSsearch -> setParamsFromRequest();
|
||||
|
||||
// List user available actions for this LSobject type
|
||||
$LSview_actions = array();
|
||||
|
@ -546,7 +546,7 @@ function handle_LSobject_search_customAction($request) {
|
|||
// Instanciate a LSsearch
|
||||
$LSsearch = new LSsearch($LSobject, 'LSview');
|
||||
$LSsearch -> setParam('extraDisplayedColumns', True);
|
||||
$LSsearch -> setParamsFormPostData();
|
||||
$LSsearch -> setParamsFromRequest();
|
||||
|
||||
// Check user right on this search customAction
|
||||
if ( !LSsession :: canExecuteLSsearchCustomAction($LSsearch, $customAction) ) {
|
||||
|
@ -676,7 +676,7 @@ function handle_LSobject_select($request) {
|
|||
$object = new $LSobject();
|
||||
|
||||
// Handle form POST data
|
||||
$LSsearch -> setParamsFormPostData();
|
||||
$LSsearch -> setParamsFromRequest();
|
||||
$LSsearch -> setParam('nbObjectsByPage', NB_LSOBJECT_LIST_SELECT);
|
||||
|
||||
$page = (isset($_REQUEST['page'])?(int)$_REQUEST['page']:0);
|
||||
|
|
Loading…
Reference in a new issue