7ea2d9ab05a6786fbcf9b430eb86e89c3e302a53
[GitHub/WoltLab/WCF.git] /
1 <?php
2 namespace wcf\system\form\builder\field\dependency;
3
4 /**
5 * Represents a dependency that requires the value of a field not to be empty.
6 *
7 * @author Matthias Schmidt
8 * @copyright 2001-2018 WoltLab GmbH
9 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
10 * @package WoltLabSuite\Core\System\Form\Builder\Field\Dependency
11 * @since 3.2
12 */
13 class NonEmptyFormFieldDependency extends AbstractFormFieldDependency {
14 /**
15 * @inheritDoc
16 */
17 protected $templateName = '__nonEmptyFormFieldDependency';
18
19 /**
20 * @inheritDoc
21 */
22 public function checkDependency() {
23 return !empty($this->getField()->getValue());
24 }
25 }