fix calendar css, take 2. (#213)
[openemr.git] / interface / modules / zend_modules / library / Zend / Form / LabelAwareInterface.php
blob9e3ba8613a24cd93a8176110b9ea7ca92ac21a4d
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;
12 interface LabelAwareInterface
14 /**
15 * Set the label (if any) used for this element
17 * @param $label
18 * @return ElementInterface
20 public function setLabel($label);
22 /**
23 * Retrieve the label (if any) used for this element
25 * @return string
27 public function getLabel();
29 /**
30 * Set the attributes to use with the label
32 * @param array $labelAttributes
33 * @return self
35 public function setLabelAttributes(array $labelAttributes);
37 /**
38 * Get the attributes to use with the label
40 * @return array
42 public function getLabelAttributes();
44 /**
45 * Set many label options at once
47 * Implementation will decide if this will overwrite or merge.
49 * @param array|\Traversable $arrayOrTraversable
50 * @return self
52 public function setLabelOptions($arrayOrTraversable);
54 /**
55 * Get label specific options
57 * @return array
59 public function getLabelOptions();
61 /**
62 * Set a single label optionn
64 * @param string $key
65 * @param mixed $value
66 * @return Element|ElementInterface
68 public function setLabelOption($key, $value);
70 /**
71 * Retrieve a single label option
73 * @param $key
74 * @return mixed|null
76 public function getLabelOption($key);
78 /**
79 * Remove a single label option
81 * @param string $key
82 * @return ElementInterface
84 public function removeLabelOption($key);
86 /**
87 * Does the element has a specific label option ?
89 * @param string $key
90 * @return bool
92 public function hasLabelOption($key);
94 /**
95 * Remove many attributes at once
97 * @param array $keys
98 * @return ElementInterface
100 public function removeLabelOptions(array $keys);
103 * Clear all label options
105 * @return Element|ElementInterface
107 public function clearLabelOptions();