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 / FormInterface.php
blob1163bc1e37751093f679052889507c49a2966a25
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;
12 use Zend\InputFilter\InputFilterInterface;
14 interface FormInterface extends FieldsetInterface
16 const BIND_ON_VALIDATE = 0x00;
17 const BIND_MANUAL = 0x01;
18 const VALIDATE_ALL = 0x10;
19 const VALUES_NORMALIZED = 0x11;
20 const VALUES_RAW = 0x12;
21 const VALUES_AS_ARRAY = 0x13;
23 /**
24 * Set data to validate and/or populate elements
26 * Typically, also passes data on to the composed input filter.
28 * @param array|\ArrayAccess $data
29 * @return FormInterface
31 public function setData($data);
33 /**
34 * Bind an object to the element
36 * Allows populating the object with validated values.
38 * @param object $object
39 * @param int $flags
40 * @return mixed
42 public function bind($object, $flags = FormInterface::VALUES_NORMALIZED);
44 /**
45 * Whether or not to bind values to the bound object when validation succeeds
47 * @param int $bindOnValidateFlag
48 * @return void
50 public function setBindOnValidate($bindOnValidateFlag);
52 /**
53 * Set input filter
55 * @param InputFilterInterface $inputFilter
56 * @return FormInterface
58 public function setInputFilter(InputFilterInterface $inputFilter);
60 /**
61 * Retrieve input filter
63 * @return InputFilterInterface
65 public function getInputFilter();
67 /**
68 * Validate the form
70 * Typically, will proxy to the composed input filter.
72 * @return bool
74 public function isValid();
76 /**
77 * Retrieve the validated data
79 * By default, retrieves normalized values; pass one of the VALUES_*
80 * constants to shape the behavior.
82 * @param int $flag
83 * @return array|object
85 public function getData($flag = FormInterface::VALUES_NORMALIZED);
87 /**
88 * Set the validation group (set of values to validate)
90 * Typically, proxies to the composed input filter
92 * @return FormInterface
94 public function setValidationGroup();