| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <?php defined('BX_DOL') or die('hack attempt');
- /**
- * Copyright (c) UNA, Inc - https://una.io
- * MIT License - https://opensource.org/licenses/MIT
- *
- * @defgroup UnaBaseView UNA Base Representation Classes
- * @{
- */
- /**
- * Extended Search Form.
- *
- * @see BxDolSearchExtended
- */
- class BxBaseSearchExtendedForm extends BxTemplFormView
- {
- public function __construct($aInfo, $oTemplate = false)
- {
- parent::__construct($aInfo, $oTemplate);
- }
- function getCleanValue ($sName)
- {
- if(isset($this->aInputs[$sName]['type']) && $this->aInputs[$sName]['type'] == 'location')
- return BxDolMetatags::locationsRetrieveFromForm($sName, $this);
- return parent::getCleanValue($sName);
- }
- public function genInputLocation(&$aInput)
- {
- $aInput['manual_input'] = true;
- return parent::genInputLocation($aInput);
- }
- protected function genCustomInputAuthor($aInput)
- {
- $aInput['ajax_get_suggestions'] = BX_DOL_URL_ROOT . 'searchExtended.php?action=get_authors';
- return $this->genCustomInputUsernamesSuggestions($aInput);
- }
- }
- /** @} */
|