BxForumFormSearch.php 827 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php defined('BX_DOL') or die('hack attempt');
  2. /**
  3. * Copyright (c) UNA, Inc - https://una.io
  4. * MIT License - https://opensource.org/licenses/MIT
  5. *
  6. * @defgroup Forum Forum
  7. * @ingroup UnaModules
  8. *
  9. * @{
  10. */
  11. /**
  12. * Search form
  13. */
  14. class BxForumFormSearch extends BxTemplFormView
  15. {
  16. protected $MODULE;
  17. protected $_oModule;
  18. public function __construct($aInfo, $oTemplate = false)
  19. {
  20. $this->MODULE = 'bx_forum';
  21. $this->_oModule = BxDolModule::getInstance($this->MODULE);
  22. parent::__construct($aInfo, $oTemplate);
  23. }
  24. protected function genCustomInputAuthor ($aInput)
  25. {
  26. $aInput['ajax_get_suggestions'] = BX_DOL_URL_ROOT . $this->_oModule->_oConfig->getBaseUri() . "ajax_get_authors";
  27. return $this->genCustomInputUsernamesSuggestions($aInput);
  28. }
  29. }
  30. /** @} */