Added the zend framework 2 library, the path is specified in line no.26 in zend_modul...
[openemr.git] / interface / modules / zend_modules / library / Zend / Form / Element / Radio.php
blobbbdd4b52a96d97d10860cd02b4c17fea1e881bc3
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-2013 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\Element;
12 use Zend\Validator\InArray as InArrayValidator;
14 class Radio extends MultiCheckbox
16 /**
17 * Seed attributes
19 * @var array
21 protected $attributes = array(
22 'type' => 'radio'
25 /**
26 * Get validator
28 * @return \Zend\Validator\ValidatorInterface
30 protected function getValidator()
32 if (null === $this->validator) {
33 $this->validator = new InArrayValidator(array(
34 'haystack' => $this->getValueOptionsValues(),
35 'strict' => false,
36 ));
38 return $this->validator;