Zend_Form 的方法大全,按类分组
By admin
- One minute read - 160 words23.4.8. 方法
下面是 Zend_Form
的方法大全,按类分组:
配置和选项:
setOptions(array $options)
setConfig(Zend_Config $config)
插件加载器和路径:
setPluginLoader(Zend_Loader_PluginLoader_Interface $loader, $type = null)
getPluginLoader($type = null)
addPrefixPath($prefix, $path, $type = null)
addPrefixPaths(array $spec)
addElementPrefixPath($prefix, $path, $type = null)
addElementPrefixPaths(array $spec)
addDisplayGroupPrefixPath($prefix, $path)
元数据:
setAttrib($key, $value)
addAttribs(array $attribs)
setAttribs(array $attribs)
getAttrib($key)
getAttribs()
removeAttrib($key)
clearAttribs()
setAction($action)
getAction()
setMethod($method)
getMethod()
setName($name)
getName()
元素:
addElement($element, $name = null, $options = null)
addElements(array $elements)
setElements(array $elements)
getElement($name)
getElements()
removeElement($name)
clearElements()
setDefaults(array $defaults)
setDefault($name, $value)
getValue($name)
getValues()
getUnfilteredValue($name)
getUnfilteredValues()
setElementFilters(array $filters)
setElementDecorators(array $decorators)
子表单:
addSubForm(Zend_Form $form, $name, $order = null)
addSubForms(array $subForms)
setSubForms(array $subForms)
getSubForm($name)
getSubForms()
removeSubForm($name)
clearSubForms()
setSubFormDecorators(array $decorators)
显示组:
addDisplayGroup(array $elements, $name, $options = null)
addDisplayGroups(array $groups)
setDisplayGroups(array $groups)
getDisplayGroup($name)
getDisplayGroups()
removeDisplayGroup($name)
clearDisplayGroups()
setDisplayGroupDecorators(array $decorators)
校验
populate(array $values)
isValid(array $data)
isValidPartial(array $data)
processAjax(array $data)
persistData()
getErrors($name = null)
getMessages($name = null)
解析:
setView(Zend_View_Interface $view = null)
getView()
addDecorator($decorator, $options = null)
addDecorators(array $decorators)
setDecorators(array $decorators)
getDecorator($name)
getDecorators()
removeDecorator($name)
clearDecorators()
render(Zend_View_Interface $view = null)
I18n:
setTranslator(Zend_Translate_Adapter $translator = null)
getTranslator()
setDisableTranslator($flag)
translatorIsDisabled()