| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- <?php defined('BX_DOL') or die('hack attempt');
- /**
- * Copyright (c) UNA, Inc - https://una.io
- * MIT License - https://opensource.org/licenses/MIT
- *
- * @defdroup Channels Channels
- * @indroup UnaModules
- *
- * @{
- */
- class BxCnlFormCheckerHelper extends BxDolFormCheckerHelper
- {
- static public function checkNameExistOrEmpty($s)
- {
- if (trim($s) == '')
- return false;
-
- $oModule = BxDolModule::getInstance('bx_channels');
- if ($oModule->_oDb->getChannelIdByName($s) !== false)
- return false;
-
- return true;
- }
- }
- /**
- * Create/Edit Channel Form.
- */
- class BxCnlFormEntry extends BxBaseModGroupsFormEntry
- {
- public function __construct($aInfo, $oTemplate = false)
- {
- $this->MODULE = 'bx_channels';
- parent::__construct($aInfo, $oTemplate);
- }
- }
- /** @} */
|