Search
 
SCRIPT & CODE EXAMPLE
 

PHP

php getUserStateFromRequest

public function getUserStateFromRequest($key, $request, $default = null, $type = 'none', $resetPage = true) { $app = JFactory::getApplication(); $input = $app->input; $old_state = $app->getUserState($key); $cur_state = $old_state !== null ? $old_state : $default; $new_state = $input->get($request, null, $type);// BC for Search Tools which uses different naming if ($new_state === null && strpos($request, 'filter_') === 0) { $name = substr($request, 7); $filters = $app->input->get('filter', array(), 'array');if (isset($filters[$name])) { $new_state = $filters[$name]; } }if ($cur_state != $new_state && $new_state !== null && $resetPage) { $input->set('limitstart', 0); }// Save the new value only if it is set in this request. if ($new_state !== null) { $app->setUserState($key, $new_state); } else { $new_state = $cur_state; }return $new_state; }
Comment

PREVIOUS NEXT
Code Example
Php :: propel find index 
Php :: php shell_exec must be connected to a terminal 
Php :: wp-query 
Php :: woocommerce validar campos personalizados en el checkout 
Php :: laravel blade all syntex description 
Php :: comparison of two tables in laravel using model 
Php :: jump to line phpstorm 
Php :: php division without round 
Php :: add attachment to the invoice laravel 
Php :: nl2br is not working for database in php 
Php :: php increase response time 
Php :: How to Filter Your Posts & Pages by Custom Field in WordPress Dashboard 
Php :: remove public laravel 
Php :: laravel download file from storage with progress bar 
Php :: convert php code to html online 
Php :: laravel creating_table_name 
Php :: php pesos en letras rutina 
Php :: how to convert array into json php 
Php :: function id codeigniter 3 
Php :: crypt (PHP 4, PHP 5, PHP 7, PHP 8) crypt — One-way string hashing 
Php :: avoid web crawling in Laravel 
Php :: plesk change php version 
Php :: php cut after first sentence 
Php :: Donut chart in PHP 
Php :: redirect back in codeignitor 
Php :: Remove values from select list based on condition 
Php :: cakephp Not Found error handle in pagination 
Php :: tina4 create route 
Php :: how to type casting and overriding in php 
Php :: how to count number of rows in sql using php 
ADD CONTENT
Topic
Content
Source link
Name
7+8 =