modules/Employees/EmployeesSearchForm.php
\EmployeesSearchForm
New EditView
- Parent(s)
- \SearchForm < \EditView
Properties

$action= ''index''
'index'Details- Type
- n/a
- Inherited_from
- \SearchForm::$$action

$customFieldDefs= ''
- Type
- n/a
- Inherited_from
- \SearchForm::$$customFieldDefs

$displaySavedSearch= 'true'
trueDetails- Type
- n/a
- Inherited_from
- \SearchForm::$$displaySavedSearch

$displayType= ''searchView''
'searchView'Details- Type
- n/a
- Inherited_from
- \SearchForm::$$displayType

$displayView= ''basic_search''
'basic_search'Details- Type
- n/a
- Inherited_from
- \SearchForm::$$displayView

$fieldDefs= ''
- Type
- n/a
- Inherited_from
- \SearchForm::$$fieldDefs

$footerTpl= ''
- Type
- n/a
- Inherited_from
- \EditView::$$footerTpl
- Inherited_from
- \SearchForm::$$footerTpl

$formData= ''
- Type
- n/a
- Inherited_from
- \SearchForm::$$formData

$formName= ''''
''Details- Type
- n/a
- Inherited_from
- \EditView::$$formName
- Inherited_from
- \SearchForm::$$formName

$formatFields= 'true'
trueDetails- Type
- n/a
- Inherited_from
- \EditView::$$formatFields
- Inherited_from
- \SearchForm::$$formatFields

$headerTpl= ''
- Type
- n/a
- Inherited_from
- \EditView::$$headerTpl
- Inherited_from
- \SearchForm::$$headerTpl

$isDuplicate= ''
- Type
- n/a
- Inherited_from
- \EditView::$$isDuplicate
- Inherited_from
- \SearchForm::$$isDuplicate

$listViewDefs= 'array()'
array()Details- Type
- n/a
- Inherited_from
- \SearchForm::$$listViewDefs

$lv= ''
- Type
- n/a
- Inherited_from
- \SearchForm::$$lv

$metadataFile= ''
- Type
- n/a
- Inherited_from
- \EditView::$$metadataFile
- Inherited_from
- \SearchForm::$$metadataFile

$module= ''''
''Details- Type
- n/a
- Inherited_from
- \SearchForm::$$module

$moduleTitleKey= ''
- Type
- n/a
- Inherited_from
- \EditView::$$moduleTitleKey
- Inherited_from
- \SearchForm::$$moduleTitleKey

$nbTabs= '0'
0Details- Type
- n/a
- Inherited_from
- \SearchForm::$$nbTabs

$offset= '0'
0Details- Type
- n/a
- Inherited_from
- \EditView::$$offset
- Inherited_from
- \SearchForm::$$offset

array
$options= ''
- Type
- array
- Inherited_from
- \SearchForm::$$options

$parsedView= ''basic''
'basic'Details- Type
- n/a
- Inherited_from
- \SearchForm::$$parsedView

$populateBean= 'true'
trueDetails- Type
- n/a
- Inherited_from
- \EditView::$$populateBean
- Inherited_from
- \SearchForm::$$populateBean

$quickSearchCode= ''
- Type
- n/a
- Inherited_from
- \EditView::$$quickSearchCode
- Inherited_from
- \SearchForm::$$quickSearchCode

$returnAction= ''
- Type
- n/a
- Inherited_from
- \EditView::$$returnAction
- Inherited_from
- \SearchForm::$$returnAction

$returnId= ''
- Type
- n/a
- Inherited_from
- \EditView::$$returnId
- Inherited_from
- \SearchForm::$$returnId

$returnModule= ''
- Type
- n/a
- Inherited_from
- \EditView::$$returnModule
- Inherited_from
- \SearchForm::$$returnModule

$searchFields= ''
- Type
- n/a
- Inherited_from
- \SearchForm::$$searchFields

$searchdefs= 'array()'
array()Details- Type
- n/a
- Inherited_from
- \SearchForm::$$searchdefs

$sectionPanels= ''
- Type
- n/a
- Inherited_from
- \EditView::$$sectionPanels
- Inherited_from
- \SearchForm::$$sectionPanels

$seed= 'null'
nullDetails- Type
- n/a
- Inherited_from
- \SearchForm::$$seed

$showAdvanced= 'true'
trueDetails- Type
- n/a
- Inherited_from
- \SearchForm::$$showAdvanced

$showBasic= 'true'
trueDetails- Type
- n/a
- Inherited_from
- \SearchForm::$$showBasic

$showCustom= 'false'
falseDetails- Type
- n/a
- Inherited_from
- \SearchForm::$$showCustom

$showDetailData= 'true'
trueDetails- Type
- n/a
- Inherited_from
- \EditView::$$showDetailData
- Inherited_from
- \SearchForm::$$showDetailData

$showSavedSearchesOptions= 'true'
trueDetails- Type
- n/a
- Inherited_from
- \SearchForm::$$showSavedSearchesOptions

$showSectionPanelsTitles= 'true'
trueDetails- Type
- n/a
- Inherited_from
- \EditView::$$showSectionPanelsTitles
- Inherited_from
- \SearchForm::$$showSectionPanelsTitles

$showVCRControl= 'true'
trueDetails- Type
- n/a
- Inherited_from
- \EditView::$$showVCRControl
- Inherited_from
- \SearchForm::$$showVCRControl

$tabs= ''
- Type
- n/a
- Inherited_from
- \SearchForm::$$tabs

$th= ''
- Type
- n/a
- Inherited_from
- \SearchForm::$$th

$tpl= ''
- Type
- n/a
- Inherited_from
- \SearchForm::$$tpl

$view= ''SearchForm''
'SearchForm'Details- Type
- n/a
- Inherited_from
- \SearchForm::$$view

$viewObject= 'null'
nullDetails- Type
- n/a
- Inherited_from
- \EditView::$$viewObject
- Inherited_from
- \SearchForm::$$viewObject
Methods

SearchForm(
$seed, $module, $action
=
'index', $options
=
array()
)
:
void| Name | Type | Description |
|---|---|---|
| $seed | ||
| $module | ||
| $action | ||
| $options |

__construct(
$oldSearchForm
)
:
voidThis builds an EmployeesSearchForm from a classic search form.
| Name | Type | Description |
|---|---|---|
| $oldSearchForm |

_displayTabs(
string $currentKey
)
:
string
| Name | Type | Description |
|---|---|---|
| $currentKey | string | key in $this->tabs to show as the current tab |
| Type | Description |
|---|---|
| string | html |

display(
$header
=
true
)
:
\HTMLdisplay This method makes the Smarty variable assignments and then displays the generated view.
Inherited from: \SearchForm::display()| Name | Type | Description |
|---|---|---|
| $header |
| Type | Description |
|---|---|
| \HTML | display for view as String |

displaySavedSearchSelect(
)
:
void
enableFormatting(
\$format $format
=
true
)
:
voidenableFormatting This method is used to manually turn on/off the field formatting
Inherited from: \EditView::enableFormatting()\SearchForm::enableFormatting()| Name | Type | Description |
|---|---|---|
| $format | \$format | boolean value to turn on/off field formatting |

generateSearchWhere(
bool $add_custom_fields
=
false, string $module
=
''
)
:
stringgenerateSearchWhere
This function serves as the central piece of SearchForm2.php It is responsible for creating the WHERE clause for a given search operation
| Name | Type | Description |
|---|---|---|
| $add_custom_fields | bool | boolean indicating whether or not custom fields should be added |
| $module | string | Module to search against |
| Type | Description |
|---|---|
| string | the SQL WHERE clause based on the arguments supplied in SearchForm2 instance |

getPanelWithFillers(
array $panel
)
:
arrayAdds fillers to each row if required
Inherited from: \EditView::getPanelWithFillers()\SearchForm::getPanelWithFillers()Panel alignment will be off if the panel doesn't have a row with the max column It will not be aligned to the other panels so we fill out the columns in the last row
| Name | Type | Description |
|---|---|---|
| $panel | array |
| Type | Description |
|---|---|
| array |

getTemplateHandler(
)
:
\TemplateHandlerGet template handler object
Inherited from: \EditView::getTemplateHandler()\SearchForm::getTemplateHandler()| Type | Description |
|---|---|
| \TemplateHandler |

getValueFromRequest(
\request $request, \name $name
)
:
StringgetValueFromRequest This is a helper method to extract a value from the request Array. We do some special processing for fields that start with 'date_' by checking to see if they also include time and meridiem values
Inherited from: \EditView::getValueFromRequest()\SearchForm::getValueFromRequest()| Name | Type | Description |
|---|---|---|
| $request | \request | The request Array |
| $name | \name | The field name to extract value for |
| Type | Description |
|---|---|
| String | value for given name |

isEmptyDropdownField(
\$value $name
=
'', $value
=
array()
)
:
void
This function checks to see if a blank dropdown field was supplied. This scenario will occur where a dropdown select is in single selection mode
| Name | Type | Description |
|---|---|---|
| $name | \$value | Mixed dropdown value |
| $value |

locateFile(
string $file
)
:
bool | stringLocate a file in the custom or stock folders. Look in the custom folders first.
Inherited from: \SearchForm::locateFile()| Name | Type | Description |
|---|---|---|
| $file | string | The file we are looking for |
| Type | Description |
|---|---|
| bool | string | If the file is found return the path, False if not |

parseDateExpression(
string $operator, string $db_field, string $field_type
=
''
)
:
voidParse date expression and return WHERE clause
Inherited from: \SearchForm::parseDateExpression()| Name | Type | Description |
|---|---|---|
| $operator | string | Date expression operator |
| $db_field | string | DB field name |
| $field_type | string | DB field type |

populateFromArray(
array $array, string $switchVar
=
null, bool $addAllBeanFields
=
true
)
:
void
| Name | Type | Description |
|---|---|---|
| $array | array | array to search through |
| $switchVar | string | variable to use in switch statement |
| $addAllBeanFields | bool | true to process at all bean fields |

populateFromRequest(
string $switchVar
=
null, bool $addAllBeanFields
=
true
)
:
voidPopulate the searchFields from $_REQUEST
Inherited from: \SearchForm::populateFromRequest()| Name | Type | Description |
|---|---|---|
| $switchVar | string | variable to use in switch statement |
| $addAllBeanFields | bool | true to process at all bean fields |

process(
$checkFormName
=
false, $formName
=
''
)
:
void
| Name | Type | Description |
|---|---|---|
| $checkFormName | ||
| $formName |

requiredFirst(
)
:
voidEnter description here ...
Inherited from: \EditView::requiredFirst()\SearchForm::requiredFirst()
retrieveSearchDefs(
$module
)
:
voidReturn the search defs for a particular module.
Inherited from: \SearchForm::retrieveSearchDefs()| Name | Type | Description |
|---|---|---|
| $module |
- Static

setOptions(
array $options
=
null
)
:
\SearchForm2
| Name | Type | Description |
|---|---|---|
| $options | array |
| Type | Description |
|---|---|
| \SearchForm2 |

setup(
$searchdefs, $searchFields
=
array(), \$metadataFile $tpl, $displayView
=
'basic_search', $listViewDefs
=
array()
)
:
voidEditView constructor This is the EditView constructor responsible for processing the new Meta-Data framework
Inherited from: \SearchForm::setup()| Name | Type | Description |
|---|---|---|
| $searchdefs | ||
| $searchFields | ||
| $tpl | \$metadataFile | String value of file location to use in overriding default metadata file |
| $displayView | ||
| $listViewDefs |

showTitle(
$showTitle
=
false
)
:
voidAllow Subviews to overwrite this method to show custom titles.
Inherited from: \EditView::showTitle()\SearchForm::showTitle()Examples: Projects & Project Templates. params: $showTitle: boolean for backwards compatibility.
| Name | Type | Description |
|---|---|---|
| $showTitle |