fix calendar css, take 2. (#213)
[openemr.git] / interface / modules / zend_modules / library / Zend / Form / Annotation / ContinueIfEmpty.php
blob031f58445cc273532197b07b4368b8e286f9bbb2
1 <?php
2 /**
3 * Zend Framework (http://framework.zend.com/)
5 * @link http://github.com/zendframework/zf2 for the canonical source repository
6 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
7 * @license http://framework.zend.com/license/new-bsd New BSD License
8 */
10 namespace Zend\Form\Annotation;
12 use Zend\Filter\Boolean as BooleanFilter;
14 /**
15 * ContinueIfEmpty annotation
17 * Presence of this annotation is a hint that the associated
18 * \Zend\InputFilter\Input should enable the continueIfEmpty flag.
20 * @Annotation
21 * @deprecated 2.4.8 Use `@Validator({"name":"NotEmpty"})` instead.
23 class ContinueIfEmpty
25 /**
26 * @var bool
28 protected $continueIfEmpty = true;
30 /**
31 * Receive and process the contents of an annotation
33 * @param array $data
35 public function __construct(array $data)
37 $continueIfEmpty = (isset($data['value']))
38 ? $data['value']
39 : false;
41 if (! is_bool($continueIfEmpty)) {
42 $filter = new BooleanFilter();
43 $continueIfEmpty = $filter->filter($continueIfEmpty);
46 $this->continueIfEmpty = $continueIfEmpty;
49 /**
50 * Get value of required flag
52 * @return bool
54 public function getContinueIfEmpty()
56 return $this->continueIfEmpty;