LSsearch: rename method setParamsFormPostData() to setParamsFromRequest()

This commit is contained in:
Benjamin Renard 2021-02-02 20:30:08 +01:00
parent 2544687b27
commit eb8cfbf66a
2 changed files with 6 additions and 6 deletions

View file

@ -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()) {

View file

@ -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);