Zend Framework  3.0
Namespaces | Classes | Functions | Variables
Zend\Form Namespace Reference

for the canonical source repository Copyright (c) 2005-2016 Zend Technologies USA Inc. More...

Namespaces

namespace  Annotation
 Zend Framework (http://framework.zend.com/)
 
namespace  Element
 Zend Framework (http://framework.zend.com/)
 
namespace  Exception
 Zend Framework (http://framework.zend.com/)
 
namespace  FormElementManager
 for the canonical source repository Copyright (c) 2005-2016 Zend Technologies USA Inc.
 
namespace  View
 Zend Framework (http://framework.zend.com/)
 

Classes

class  ConfigProvider
 
class  Element
 
interface  ElementAttributeRemovalInterface
 
class  ElementFactory
 Factory for instantiating form elements. More...
 
interface  ElementInterface
 
interface  ElementPrepareAwareInterface
 
class  Factory
 
class  Fieldset
 
interface  FieldsetInterface
 
interface  FieldsetPrepareAwareInterface
 Deprecated by https://github.com/zendframework/zf2/pull/5636. More...
 
class  Form
 
class  FormAbstractServiceFactory
 
class  FormElementManagerFactory
 
interface  FormFactoryAwareInterface
 
interface  FormInterface
 
class  InputFilterProviderFieldset
 
interface  LabelAwareInterface
 
class  Module
 

Functions

 setFormFactory (Factory $factory)
 Compose a form factory into the object.
 
 setLabelAttributes (array $labelAttributes)
 Set the attributes to use with the label.
 
 getLabelAttributes ()
 Get the attributes to use with the label.
 
 setLabelOptions ($arrayOrTraversable)
 Set many label options at once.
 
 getLabelOptions ()
 Get label specific options.
 
 clearLabelOptions ()
 Clear all label options.
 
 removeLabelOptions (array $keys)
 Remove many attributes at once.
 
 setLabelOption ($key, $value)
 Set a single label optionn.
 
 getLabelOption ($key)
 Retrieve a single label option.
 
 removeLabelOption ($key)
 Remove a single label option.
 
 hasLabelOption ($key)
 Does the element has a specific label option ?
 

Variables

trait FormFactoryAwareTrait
 
trait LabelAwareTrait
 
 $labelOptions = []
 

Detailed Description

for the canonical source repository Copyright (c) 2005-2016 Zend Technologies USA Inc.

Zend Framework (http://framework.zend.com/)

(http://www.zend.com) http://framework.zend.com/license/new-bsd New BSD License

for the canonical source repository Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) http://framework.zend.com/license/new-bsd New BSD License http://github.com/zendframework/zf2 for the canonical source repository Copyright (c) 2016 Zend Technologies USA Inc. (http://www.zend.com) http://framework.zend.com/license/new-bsd New BSD License

Function Documentation

Zend\Form\clearLabelOptions ( )

Clear all label options.

Returns
Element|ElementInterface
Zend\Form\getLabelAttributes ( )

Get the attributes to use with the label.

Returns
array
Zend\Form\getLabelOption (   $key)

Retrieve a single label option.

Parameters
$key
Returns
mixed|null
Zend\Form\getLabelOptions ( )

Get label specific options.

Returns
array
Zend\Form\hasLabelOption (   $key)

Does the element has a specific label option ?

Parameters
string$key
Returns
bool
Zend\Form\removeLabelOption (   $key)

Remove a single label option.

Parameters
string$key
Returns
ElementInterface
Zend\Form\removeLabelOptions ( array  $keys)

Remove many attributes at once.

Parameters
array$keys
Returns
ElementInterface
Zend\Form\setFormFactory ( Factory  $factory)

Compose a form factory into the object.

Parameters
Factory$factory
Returns
mixed
Zend\Form\setLabelAttributes ( array  $labelAttributes)

Set the attributes to use with the label.

Parameters
array$labelAttributes
Returns
LabelAwareInterface
Zend\Form\setLabelOption (   $key,
  $value 
)

Set a single label optionn.

Parameters
string$key
mixed$value
Returns
Element|ElementInterface
Zend\Form\setLabelOptions (   $arrayOrTraversable)

Set many label options at once.

Implementation will decide if this will overwrite or merge.

Parameters
array | Traversable$arrayOrTraversable
Returns
Element|ElementInterface
Exceptions
Exception\InvalidArgumentException

Variable Documentation

$labelOptions = []
trait FormFactoryAwareTrait
Initial value:
{
protected $factory = null
trait LabelAwareTrait
Initial value:
{
protected $labelAttributes