/* ==================
* Handle ITEMS View - used for FILTERING AND SEARCHING
* 1) If we filter then we go to items view - because of javascript we need to know if we are now in items view or not
* because we filter in module so we can be in every possible view
*
* 2) So the javascript for filtering needs to know the items view
*
* 3) Items view can be without ID (category ID) or with ID (category ID)
* If we are in category view or items view we can filter including CATEGORY ID
*
* 4) GetAliasFromId it tool function only to get separated alias and id from SEF url
*/
public static function isItemsView()
{
$app = Factory::getApplication();
$option = $app->input->get('option', '', 'string');
$view = $app->input->get('view', '', 'string');
if ($option == 'com_phocacart' && $view == 'items') {
return true;
}
return false;
}