本文整理汇总了PHP中Zend_Dojo_Form_Element_FilteringSelect::setLabel方法的典型用法代码示例。如果您正苦于以下问题:PHP Zend_Dojo_Form_Element_FilteringSelect::setLabel方法的具体用法?PHP Zend_Dojo_Form_Element_FilteringSelect::setLabel怎么用?PHP Zend_Dojo_Form_Element_FilteringSelect::setLabel使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Zend_Dojo_Form_Element_FilteringSelect
的用法示例。
在下文中一共展示了Zend_Dojo_Form_Element_FilteringSelect::setLabel方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getForm
public function getForm()
{
$db = $this->db;
$form = new Zend_Form();
$form->setAction('/Account');
$form->setMethod('get');
$form->setName('search');
$accountName = $form->createElement('text', 'name');
$accountName->setLabel('Name');
$city = $form->createElement('text', 'city');
$city->setLabel('City');
$state = $form->createElement('text', 'state');
$state->setLabel('State');
$country = $form->createElement('text', 'country');
$country->setLabel('Country');
$assignedTo = new Zend_Dojo_Form_Element_FilteringSelect('assignedTo');
$assignedTo->setLabel('Accounts assigned to')->setAutoComplete(true)->setStoreId('accountStore')->setStoreType('dojo.data.ItemFileReadStore')->setStoreParams(array('url' => '/user/jsonstore'))->setAttrib("searchAttr", "email")->setRequired(false);
$branchId = new Zend_Dojo_Form_Element_FilteringSelect('branchId');
$branchId->setLabel('Accounts Of Branch')->setAutoComplete(true)->setStoreId('branchStore')->setStoreType('dojo.data.ItemFileReadStore')->setStoreParams(array('url' => '/jsonstore/branch'))->setAttrib("searchAttr", "branch_name")->setRequired(false);
$submit = $form->createElement('submit', 'submit')->setLabel('Search')->setAttrib("class", "submit_button");
$form->addElements(array($name, $city, $assignedTo, $branchId, $submit));
return $form;
}