pageObj->mobileTemplateMode() ? 'width: 35%;' :'width: 115px;';
$ctrlsMap = $this->getExtraControlMap();
$this->pageObj->fillControlsMap($ctrlsMap,true);
return XTempl::create_function_assignment( "xt_buildeditcontrol", $parameters );
}
/**
* Get the extra search control's map array
* @return Array
*/
protected function getExtraControlMap()
{
$ctrlsMap = array("controls" => array());
$ctrlsMap["controls"]["skipDependencies"] = true;
return $ctrlsMap;
}
function simpleSearchFieldCombo($fNamesArr, $selOpt)
{
$options = "";
if (sizeof($this->pSet->getGoogleLikeFields()) != 0)
$options = '';
foreach($fNamesArr as $fName)
{
$fLabel = GetFieldLabel(GoodFieldName($this->tName), GoodFieldName($fName));
$options .= '';
}
return $options;
}
/**
* @return String
*/
function getCtrlSearchTypeOptions($fName, $selOpt, $not, $flexible, $both = false)
{
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);
}
}
?>