Extends Zend_Form_SubForm to be aware of our prefix/elementPrefix paths.
More...
List of all members.
Public Member Functions |
| __construct ($options=null) |
| Extend Zend_Dojo_Form's constructor to provide our own decorators.
|
| getIdPrefix () |
| Get the string used to prefix element ids.
|
| render (Zend_View_Interface $view=null) |
| Add id prefixes, then render the form.
|
| setIdPrefix ($prefix) |
| Set a string to prefix element ids with.
|
Protected Attributes |
| $_idPrefix |
Detailed Description
Extends Zend_Form_SubForm to be aware of our prefix/elementPrefix paths.
- Copyright:
- 2011-2012 Perforce Software. All rights reserved
- License:
- Please see LICENSE.txt in top-level folder of this distribution.
- Version:
- 2012.2/486814
Constructor & Destructor Documentation
P4Cms_Form_SubForm::__construct |
( |
$ |
options = null | ) |
|
Extend Zend_Dojo_Form's constructor to provide our own decorators.
- Parameters:
-
array | Zend_Config | null | $options | Zend provides no documentation for this param. |
- Returns:
- void
{
$prefixPaths = P4Cms_Form::getLibraryPathRegistry() + P4Cms_Form::getPrefixPathRegistry();
foreach ($prefixPaths as $prefixPath) {
extract($prefixPath);
if ($type === static::ELEMENT || $type === static::DECORATOR) {
$this->addPrefixPath($prefix, $path, $type);
}
if ($type !== static::ELEMENT) {
$this->addElementPrefixPath($prefix, $path, $type);
}
if ($type === static::DECORATOR) {
$this->addDisplayGroupPrefixPath($prefix, $path);
}
}
parent::__construct($options);
}
Member Function Documentation
P4Cms_Form_SubForm::getIdPrefix |
( |
| ) |
|
Get the string used to prefix element ids.
- Returns:
- string the string used to prefix element ids.
{
return $this->_idPrefix;
}
P4Cms_Form_SubForm::render |
( |
Zend_View_Interface $ |
view = null | ) |
|
Add id prefixes, then render the form.
- Parameters:
-
Zend_View_Interface | $view | The Zend View Interface to render. |
- Returns:
- string
Reimplemented in Workflow_Form_EditContent.
P4Cms_Form_SubForm::setIdPrefix |
( |
$ |
prefix | ) |
|
Set a string to prefix element ids with.
- Parameters:
-
string | $prefix | the string to prefix element ids with. |
- Returns:
- P4Cms_Form_SubForm provides fluent interface.
{
$this->_idPrefix = (string) $prefix;
return $this;
}
Member Data Documentation
P4Cms_Form_SubForm::$_idPrefix [protected] |
The documentation for this class was generated from the following file: