Source of file LabelAwareInterface.php
Size: 2,375 Bytes - Last Modified: 2014-03-12T23:21:18+01:00
/home/theseer/Downloads/ZendFramework-2.3.0/library/Zend/Form/LabelAwareInterface.php
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 | <?php /** * Zend Framework (http://framework.zend.com/) * * @link http://github.com/zendframework/zf2 for the canonical source repository * @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License */ namespace Zend\Form; interface LabelAwareInterface { /** * Set the label (if any) used for this element * * @param $label * @return ElementInterface */ public function setLabel($label); /** * Retrieve the label (if any) used for this element * * @return string */ public function getLabel(); /** * Set the attributes to use with the label * * @param array $labelAttributes * @return self */ public function setLabelAttributes(array $labelAttributes); /** * Get the attributes to use with the label * * @return array */ public function getLabelAttributes(); /** * Set many label options at once * * Implementation will decide if this will overwrite or merge. * * @param array|Traversable $arrayOrTraversable * @return self */ public function setLabelOptions($arrayOrTraversable); /** * Get label specific options * * @return array */ public function getLabelOptions(); /** * Set a single label optionn * * @param string $key * @param mixed $value * @return Element|ElementInterface */ public function setLabelOption($key, $value); /** * Retrieve a single label option * * @param $key * @return mixed|null */ public function getLabelOption($key); /** * Remove a single label option * * @param string $key * @return ElementInterface */ public function removeLabelOption($key); /** * Does the element has a specific label option ? * * @param string $key * @return bool */ public function hasLabelOption($key); /** * Remove many attributes at once * * @param array $keys * @return ElementInterface */ public function removeLabelOptions(array $keys); /** * Clear all label options * * @return Element|ElementInterface */ public function clearLabelOptions(); } |