HEX
Server: Apache
System: Linux darrell.nocdirect.com 4.18.0-513.18.2.el8_9.x86_64 #1 SMP Sat Mar 30 06:10:41 EDT 2024 x86_64
User: joderbya (1358)
PHP: 8.0.30
Disabled: NONE
Upload Files
File: /home/joderbya/wlsa.quick-step-ei.com2/classes/advancedsearchcontrol.php
<?php

/**
 * Search control builder class for advanced search
 *
 */
class AdvancedSearchControl extends SearchControl 
{
	function __construct($id, $tName, &$searchClauseObj, &$pageObj) 
	{
		parent::__construct($id, $tName, $searchClauseObj, $pageObj);
		$this->getSrchPanelAttrs['ctrlTypeComboStatus'] = true;
	}
	
	function getCtrlSearchTypeOptions($fName, $selOpt, $not, $flexible = false, $both = false) 
	{
		if( $this->pageObj->getLayoutVersion() == BOOTSTRAP_LAYOUT ) 
		{
			if( !$flexible && ($selOpt == EMPTY_SEARCH || $selOpt == NOT_EMPTY) ) 
				return $this->getControl($fName)->buildSearchOptions(array(EMPTY_SEARCH, NOT_EMPTY), $selOpt, $not, true);
				
			return $this->getControl($fName)->getSearchOptions($selOpt, $not, true); 
		}
		
		$withNot = $both ? $not : false;
		return parent::getCtrlSearchTypeOptions($fName, $selOpt, $withNot, false, $both);
	}
}
?>