本文整理匯總了PHP中Am_Form_Setup::addSortableMagicSelect方法的典型用法代碼示例。如果您正苦於以下問題:PHP Am_Form_Setup::addSortableMagicSelect方法的具體用法?PHP Am_Form_Setup::addSortableMagicSelect怎麽用?PHP Am_Form_Setup::addSortableMagicSelect使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Am_Form_Setup
的用法示例。
在下文中一共展示了Am_Form_Setup::addSortableMagicSelect方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: _initSetupForm
protected function _initSetupForm(Am_Form_Setup $form)
{
$form->setTitle(___(self::TITLE));
$form->addText('api_key', array('size' => 40))->setLabel(array("API Key", ""))->addRule('required');
$form->addText('api_url', array('size' => 60))->setLabel(array("Full API URL", "eg., http://{your_domain}/{your_install_swm_directory}/api/api.php"))->addRule('required');
if ($this->isConfigured()) {
$form->addSortableMagicSelect('amember_fields')->setLabel("Pass additional fields from aMember")->loadOptions($this->getAmemberOptions());
$form->addSortableMagicSelect('swm_fields')->setLabel("to SWM")->loadOptions($this->getSWMOptions());
$opt = array();
foreach ($this->getLists() as $k => $l) {
$opt[$k] = '#' . $k . ' - ' . $l['title'];
}
$form->addMagicSelect('double_optin')->setLabel("Enabled Double Optin for these lists")->loadOptions($opt);
}
$form->addAdvCheckbox('check_blocklists')->setLabel(array('Check All Emails at Blocklists', "before subscribing"));
$form->addAdvCheckbox('send_pass')->setLabel(array('Send Password to SWM', "it's not safe\npasswords are not stored encrypted at SWM"));
$form->addAdvCheckbox('debud_mode')->setLabel(array('Debug Mode Enabled', "write debug info to logs\nit's recommended enable it at the first time"));
}