本文整理汇总了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"));
}