本文整理汇总了PHP中CheckboxField::setLabel方法的典型用法代码示例。如果您正苦于以下问题:PHP CheckboxField::setLabel方法的具体用法?PHP CheckboxField::setLabel怎么用?PHP CheckboxField::setLabel使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CheckboxField
的用法示例。
在下文中一共展示了CheckboxField::setLabel方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: index
public function index()
{
$language = OW::getLanguage();
$config = OW::getConfig();
OW::getDocument()->setHeading(OW::getLanguage()->text('admin', 'heading_mobile_settings'));
OW::getDocument()->setHeadingIconClass('ow_ic_gear_wheel');
$settingsForm = new Form('mobile_settings');
$disableMobile = new CheckboxField('disable_mobile');
$disableMobile->setLabel($language->text('admin', 'mobile_settings_mobile_context_disable_label'));
$disableMobile->setDescription($language->text('admin', 'mobile_settings_mobile_context_disable_desc'));
$settingsForm->addElement($disableMobile);
$submit = new Submit('save');
$submit->setValue($language->text('admin', 'save_btn_label'));
$settingsForm->addElement($submit);
$this->addForm($settingsForm);
if (OW::getRequest()->isPost()) {
if ($settingsForm->isValid($_POST)) {
$data = $settingsForm->getValues();
$config->saveConfig('base', 'disable_mobile_context', (bool) $data['disable_mobile']);
OW::getFeedback()->info($language->text('admin', 'settings_submit_success_message'));
} else {
OW::getFeedback()->error('Error');
}
$this->redirect();
}
$disableMobile->setValue($config->getValue('base', 'disable_mobile_context'));
}
示例2: __construct
public function __construct()
{
parent::__construct('questions_add');
$language = OW::getLanguage();
$this->setAjax();
$this->setAjaxResetOnSuccess(false);
$field = new Textarea('question');
$field->addAttribute('maxlength', 500);
$field->setRequired();
$field->setHasInvitation(true);
$field->setInvitation($language->text('questions', 'question_add_text_inv'));
$field->addAttribute("inv", $language->text('questions', 'question_add_text_inv'));
$this->addElement($field);
$field = new CheckboxField('allowAddOprions');
$field->addAttribute('checked');
$field->setLabel($language->text('questions', 'question_add_allow_add_opt'));
$this->addElement($field);
$field = new QUESTIONS_OptionsField('answers');
$field->setHasInvitation(true);
$field->setInvitation($language->text('questions', 'question_add_option_inv'));
$this->addElement($field);
$submit = new Submit('save');
$submit->setValue($language->text('questions', 'question_add_save'));
$this->addElement($submit);
if (!OW::getRequest()->isAjax()) {
OW::getLanguage()->addKeyForJs('questions', 'feedback_question_empty');
OW::getLanguage()->addKeyForJs('questions', 'feedback_question_min_length');
OW::getLanguage()->addKeyForJs('questions', 'feedback_question_max_length');
OW::getLanguage()->addKeyForJs('questions', 'feedback_question_two_apt_required');
OW::getLanguage()->addKeyForJs('questions', 'feedback_question_dublicate_option');
OW::getLanguage()->addKeyForJs('questions', 'feedback_option_max_length');
$this->initJsResponder();
}
$this->setAction(OW::getRequest()->buildUrlQueryString(OW::getRouter()->urlFor('QUESTIONS_CTRL_List', 'addQuestion')));
}
示例3: __construct
/**
* Constructor.
*/
public function __construct($ajax = false)
{
parent::__construct();
$form = new Form('sign-in');
$form->setAction("");
$username = new TextField('identity');
$username->setRequired(true);
$username->setHasInvitation(true);
$username->setInvitation(OW::getLanguage()->text('base', 'component_sign_in_login_invitation'));
$form->addElement($username);
$password = new PasswordField('password');
$password->setHasInvitation(true);
$password->setInvitation('password');
$password->setRequired(true);
$form->addElement($password);
$remeberMe = new CheckboxField('remember');
$remeberMe->setValue(true);
$remeberMe->setLabel(OW::getLanguage()->text('base', 'sign_in_remember_me_label'));
$form->addElement($remeberMe);
$submit = new Submit('submit');
$submit->setValue(OW::getLanguage()->text('base', 'sign_in_submit_label'));
$form->addElement($submit);
$this->addForm($form);
if ($ajax) {
$form->setAjaxResetOnSuccess(false);
$form->setAjax();
$form->setAction(OW::getRouter()->urlFor('BASE_CTRL_User', 'ajaxSignIn'));
$form->bindJsFunction(Form::BIND_SUCCESS, 'function(data){if( data.result ){if(data.message){OW.info(data.message);}setTimeout(function(){window.location.reload();}, 1000);}else{OW.error(data.message);}}');
$this->assign('forgot_url', OW::getRouter()->urlForRoute('base_forgot_password'));
}
$this->assign('joinUrl', OW::getRouter()->urlForRoute('base_join'));
}
示例4: __construct
/**
* Class constructor
*
*/
public function __construct()
{
parent::__construct('configSaveForm');
$language = OW::getLanguage();
$field = new TextField('public_key');
$field->addValidator(new ConfigRequireValidator());
$this->addElement($field);
$field = new CheckboxField('billing_enabled');
$this->addElement($field);
// submit
$submit = new Submit('save');
$submit->setValue($language->text('admin', 'save_btn_label'));
$this->addElement($submit);
$promoUrl = new TextField('app_url');
$promoUrl->setRequired();
$promoUrl->addValidator(new UrlValidator());
$promoUrl->setLabel($language->text('skandroid', 'app_url_label'));
$promoUrl->setDescription($language->text('skandroid', 'app_url_desc'));
$promoUrl->setValue(OW::getConfig()->getValue('skandroid', 'app_url'));
$this->addElement($promoUrl);
$smartBanner = new CheckboxField('smart_banner');
$smartBanner->setLabel($language->text('skandroid', 'smart_banner_label'));
$smartBanner->setDescription($language->text('skandroid', 'smart_banner_desc'));
$smartBanner->setValue(OW::getConfig()->getValue('skandroid', 'smart_banner'));
$this->addElement($smartBanner);
}
示例5: __construct
/**
* Class constructor
*/
public function __construct()
{
parent::__construct('update-question-form');
$this->setAction(OW::getRouter()->urlFor('OCSFAQ_CTRL_Admin', 'editQuestion'));
$lang = OW::getLanguage();
$questionId = new HiddenField('questionId');
$questionId->setRequired(true);
$this->addElement($questionId);
$question = new TextField('question');
$question->setRequired(true);
$question->setLabel($lang->text('ocsfaq', 'question'));
$this->addElement($question);
$btnSet = array(BOL_TextFormatService::WS_BTN_IMAGE, BOL_TextFormatService::WS_BTN_VIDEO, BOL_TextFormatService::WS_BTN_HTML);
$answer = new WysiwygTextarea('answer', $btnSet);
$answer->setRequired(true);
$answer->setLabel($lang->text('ocsfaq', 'answer'));
$this->addElement($answer);
$isFeatured = new CheckboxField('isFeatured');
$isFeatured->setLabel($lang->text('ocsfaq', 'is_featured'));
$this->addElement($isFeatured);
$categories = OCSFAQ_BOL_FaqService::getInstance()->getCategories();
if ($categories) {
$category = new Selectbox('category');
foreach ($categories as $cat) {
$category->addOption($cat->id, $cat->name);
}
$category->setLabel($lang->text('ocsfaq', 'category'));
$this->addElement($category);
}
// submit
$submit = new Submit('update');
$submit->setValue($lang->text('ocsfaq', 'btn_save'));
$this->addElement($submit);
}
示例6: __construct
/**
* Class constructor
*
*/
public function __construct($configs)
{
parent::__construct('configSaveForm');
$language = OW::getLanguage();
$field = new RadioField('itunes_mode');
$field->setOptions(array("test" => $language->text("skadateios", "itunes_mode_test"), "live" => $language->text("skadateios", "itunes_mode_live")));
$field->setValue($configs["itunes_mode"]);
$this->addElement($field);
$field = new CheckboxField('billing_enabled');
$field->setValue($configs["billing_enabled"]);
$this->addElement($field);
$field = new TextField('itunes_secret');
$field->addValidator(new ConfigRequireValidator());
$field->setValue($configs["itunes_secret"]);
$this->addElement($field);
$promoUrl = new TextField('app_url');
$promoUrl->setRequired();
$promoUrl->addValidator(new UrlValidator());
$promoUrl->setLabel($language->text('skadateios', 'app_url_label'));
$promoUrl->setDescription($language->text('skadateios', 'app_url_desc'));
$promoUrl->setValue($configs['app_url']);
$this->addElement($promoUrl);
$smartBanner = new CheckboxField('smart_banner');
$smartBanner->setLabel($language->text('skadateios', 'smart_banner_label'));
$smartBanner->setDescription($language->text('skadateios', 'smart_banner_desc'));
$smartBanner->setValue($configs['smart_banner']);
$this->addElement($smartBanner);
// submit
$submit = new Submit('save');
$submit->setValue($language->text('admin', 'save_btn_label'));
$this->addElement($submit);
}
示例7: __construct
public function __construct()
{
parent::__construct('hint-form');
$this->setAjax(TRUE);
$this->setAction(OW::getRouter()->urlForRoute('profileprogressbar.admin_hint'));
$this->setAjaxResetOnSuccess(FALSE);
$this->bindJsFunction('success', 'function(data)
{
$("#profile-progressbar").tipTip({content: data.content});
OW.info("Settings successfully saved");
}');
$checkBox = new CheckboxField('show-hint');
if ((bool) OW::getConfig()->getValue('profileprogressbar', 'show_hint')) {
$checkBox->addAttribute('checked', 'checked');
}
$checkBox->setLabel(OW::getLanguage()->text('profileprogressbar', 'show_hint_label'));
$checkBox->setDescription(OW::getLanguage()->text('profileprogressbar', 'show_hint_desc'));
$this->addElement($checkBox);
$hintText = new WysiwygTextarea('hint-text');
$hintText->setRequired();
$hintText->setSize(WysiwygTextarea::SIZE_L);
$hintText->setValue(OW::getLanguage()->text('profileprogressbar', 'hint_text'));
$hintText->setLabel(OW::getLanguage()->text('profileprogressbar', 'hint_label'));
$hintText->setDescription(OW::getLanguage()->text('profileprogressbar', 'hint_desc'));
$this->addElement($hintText);
$submit = new Submit('save');
$submit->setValue('Save');
$this->addElement($submit);
}
示例8: index
public function index()
{
$language = OW::getLanguage();
$config = OW::getConfig();
$form = new Form('privacy_settings');
$userApprove = new CheckboxField('user_approve');
$userApprove->setLabel($language->text('admin', 'permissions_index_user_approve'));
$form->addElement($userApprove);
$whoCanJoin = new RadioField('who_can_join');
$whoCanJoin->addOptions(array('1' => $language->text('admin', 'permissions_index_anyone_can_join'), '2' => $language->text('admin', 'permissions_index_by_invitation_only_can_join')));
$whoCanJoin->setLabel($language->text('admin', 'permissions_index_who_can_join'));
$form->addElement($whoCanJoin);
$whoCanInvite = new RadioField('who_can_invite');
$whoCanInvite->addOptions(array('1' => $language->text('admin', 'permissions_index_all_users_can_invate'), '2' => $language->text('admin', 'permissions_index_admin_only_can_invate')));
$whoCanInvite->setLabel($language->text('admin', 'permissions_index_who_can_invite'));
$form->addElement($whoCanInvite);
$guestsCanView = new RadioField('guests_can_view');
$guestsCanView->addOptions(array('1' => $language->text('admin', 'permissions_index_yes'), '2' => $language->text('admin', 'permissions_index_no'), '3' => $language->text('admin', 'permissions_index_with_password')));
$guestsCanView->setLabel($language->text('admin', 'permissions_index_guests_can_view_site'));
$guestsCanView->setDescription($language->text('admin', 'permissions_idex_if_not_yes_will_override_settings'));
$form->addElement($guestsCanView);
$password = new TextField('password');
$form->addElement($password);
$submit = new Submit('save');
$submit->setValue($language->text('admin', 'permissions_index_save'));
$form->addElement($submit);
$this->addForm($form);
if (OW::getRequest()->isPost()) {
if ($form->isValid($_POST)) {
$data = $form->getValues();
$config->saveConfig('base', 'who_can_join', (int) $data['who_can_join']);
$config->saveConfig('base', 'who_can_invite', (int) $data['who_can_invite']);
$config->saveConfig('base', 'mandatory_user_approve', (bool) $data['user_approve'] ? 1 : 0);
if ((int) $data['guests_can_view'] === 3 && empty($data['password'])) {
OW::getFeedback()->error($language->text('admin', 'permission_global_privacy_empty_pass_error_message'));
} else {
if ((int) $data['guests_can_view'] === 3 && strlen(trim($data['password'])) < 4) {
OW::getFeedback()->error($language->text('admin', 'permission_global_privacy_pass_length_error_message'));
} else {
$config->saveConfig('base', 'guests_can_view', (int) $data['guests_can_view']);
$config->saveConfig('base', 'guests_can_view_password', trim($data['password']));
}
}
OW::getFeedback()->info($language->text('admin', 'permission_global_privacy_settings_success_message'));
$this->redirect();
}
}
$baseConfigs = $config->getValues('base');
$form->getElement('who_can_join')->setValue($baseConfigs['who_can_join']);
$form->getElement('who_can_invite')->setValue($baseConfigs['who_can_invite']);
$form->getElement('guests_can_view')->setValue($baseConfigs['guests_can_view']);
$form->getElement('user_approve')->setValue($baseConfigs['mandatory_user_approve']);
$form->getElement('password')->setValue($baseConfigs['guests_can_view_password']);
}
示例9: __construct
public function __construct()
{
parent::__construct('settings-form');
$lang = OW::getLanguage();
$canView = new CheckboxField('canView');
$canView->setLabel($lang->text('ocsfavorites', 'can_view_favorites'));
$this->addElement($canView);
// submit
$submit = new Submit('save');
$submit->setValue($lang->text('ocsfavorites', 'btn_save'));
$this->addElement($submit);
}
示例10: __construct
public function __construct()
{
parent::__construct('EQUESTIONS_SetupForm');
$language = OW::getLanguage();
$field = new CheckboxField('copyData');
$field->setValue(true);
$field->setLabel($language->text('equestions', 'admin_setup_copy_data_label'));
$this->addElement($field);
$button = new Submit('upgrade');
$button->setValue($language->text('equestions', 'admin_setup_upgrade_label'));
$this->addElement($button);
}
示例11: __construct
public function __construct($name)
{
parent::__construct($name);
$lang = OW::getLanguage();
$period = new TextField('period');
$period->setRequired(true);
$period->setLabel($lang->text('ocsaffiliates', 'settings_timeout'));
$this->addElement($period);
$status = new Selectbox('status');
$status->setRequired(true);
$status->setHasInvitation(false);
$options = array('active' => $lang->text('ocsaffiliates', 'status_active'), 'unverified' => $lang->text('ocsaffiliates', 'status_unverified'));
$status->addOptions($options);
$status->setLabel($lang->text('ocsaffiliates', 'settings_status'));
$this->addElement($status);
$clickAmount = new TextField('clickAmount');
$clickAmount->setRequired(true);
$clickAmount->setLabel($lang->text('ocsaffiliates', 'settings_click_amount'));
$clickAmount->addValidator(new FloatValidator());
$this->addElement($clickAmount);
$regAmount = new TextField('regAmount');
$regAmount->setRequired(true);
$regAmount->setLabel($lang->text('ocsaffiliates', 'settings_reg_amount'));
$regAmount->addValidator(new FloatValidator());
$this->addElement($regAmount);
$saleCommission = new Selectbox('saleCommission');
$saleCommission->setRequired(true);
$options = array('amount' => $lang->text('ocsaffiliates', 'commission_amount'), 'percent' => $lang->text('ocsaffiliates', 'commission_percent'));
$saleCommission->addOptions($options);
$saleCommission->setLabel($lang->text('ocsaffiliates', 'settings_sale_commission'));
$this->addElement($saleCommission);
$saleAmount = new TextField('saleAmount');
$saleAmount->setLabel($lang->text('ocsaffiliates', 'settings_sale_amount'));
$saleAmount->addValidator(new FloatValidator());
$this->addElement($saleAmount);
$salePercent = new TextField('salePercent');
$salePercent->setLabel($lang->text('ocsaffiliates', 'settings_sale_percent'));
$salePercent->addValidator(new FloatValidator());
$this->addElement($salePercent);
$showRates = new CheckboxField('showRates');
$showRates->setLabel($lang->text('ocsaffiliates', 'show_rates'));
$this->addElement($showRates);
$allowBanners = new CheckboxField('allowBanners');
$allowBanners->setLabel($lang->text('ocsaffiliates', 'allow_banners'));
$this->addElement($allowBanners);
$terms = new CheckboxField('terms');
$terms->setLabel($lang->text('ocsaffiliates', 'enable_terms'));
$this->addElement($terms);
$submit = new Submit('save');
$submit->setLabel($lang->text('ocsaffiliates', 'save'));
$this->addElement($submit);
}
示例12: __construct
public function __construct($configs)
{
parent::__construct('EQUESTIONS_ConfigSaveForm');
$this->configs = $configs;
$language = OW::getLanguage();
$field = new CheckboxField('allow_comments');
$field->setLabel($language->text('equestions', 'admin_allow_comments_label'));
$field->setValue($configs['allow_comments']);
$this->addElement($field);
$field = new CheckboxField('ask_friends');
$field->setLabel($language->text('equestions', 'admin_enable_ask_friends_label'));
$field->setValue($configs['ask_friends']);
$this->addElement($field);
$field = new Selectbox('list_order');
foreach (array(EQUESTIONS_CMP_Feed::ORDER_LATEST, EQUESTIONS_CMP_Feed::ORDER_POPULAR) as $v) {
$field->addOption($v, $language->text('equestions', 'feed_order_' . $v));
}
$field->setHasInvitation(false);
$field->setLabel($language->text('equestions', 'admin_list_order_label'));
$field->setValue($configs['list_order']);
$this->addElement($field);
$field = new CheckboxField('enable_follow');
$field->setLabel($language->text('equestions', 'admin_enable_follow_label'));
$field->setValue($configs['enable_follow']);
$this->addElement($field);
$field = new CheckboxField('allow_popups');
$field->setLabel($language->text('equestions', 'admin_allow_popups_label'));
$field->setValue($configs['allow_popups']);
$this->addElement($field);
$field = new CheckboxField('attachments');
$field->setLabel($language->text('equestions', 'admin_enable_attachments_label'));
$field->setValue($configs['attachments']);
$this->addElement($field);
$field = new CheckboxField('attachments_video');
$field->setLabel($language->text('equestions', 'admin_attachments_video_enable_label'));
$field->setValue($configs['attachments_video']);
$this->addElement($field);
$field = new CheckboxField('attachments_image');
$field->setLabel($language->text('equestions', 'admin_attachments_image_enable_label'));
$field->setValue($configs['attachments_image']);
$this->addElement($field);
$field = new CheckboxField('attachments_link');
$field->setLabel($language->text('equestions', 'admin_attachments_link_enable_label'));
$field->setValue($configs['attachments_link']);
$this->addElement($field);
// submit
$submit = new Submit('save');
$submit->setValue($language->text('equestions', 'admin_save_btn'));
$this->addElement($submit);
}
示例13: __construct
/**
* Constructor.
*
* @param array $itemsList
*/
public function __construct($langId)
{
parent::__construct();
$this->service = BOL_LanguageService::getInstance();
if (empty($langId)) {
$this->setVisible(false);
return;
}
$languageDto = $this->service->findById($langId);
if ($languageDto === null) {
$this->setVisible(false);
return;
}
$language = OW::getLanguage();
$form = new Form('lang_edit');
$form->setAjax();
$form->setAction(OW::getRouter()->urlFor('ADMIN_CTRL_Languages', 'langEditFormResponder'));
$form->setAjaxResetOnSuccess(false);
$labelTextField = new TextField('label');
$labelTextField->setLabel($language->text('admin', 'clone_form_lbl_label'));
$labelTextField->setDescription($language->text('admin', 'clone_form_descr_label'));
$labelTextField->setRequired();
$labelTextField->setValue($languageDto->getLabel());
$form->addElement($labelTextField);
$tagTextField = new TextField('tag');
$tagTextField->setLabel($language->text('admin', 'clone_form_lbl_tag'));
$tagTextField->setDescription($language->text('admin', 'clone_form_descr_tag'));
$tagTextField->setRequired();
$tagTextField->setValue($languageDto->getTag());
if ($languageDto->getTag() == 'en') {
$tagTextField->addAttribute('disabled', 'disabled');
}
$form->addElement($tagTextField);
$rtl = new CheckboxField('rtl');
$rtl->setLabel($language->text('admin', 'lang_edit_form_rtl_label'));
$rtl->setDescription($language->text('admin', 'lang_edit_form_rtl_desc'));
$rtl->setValue((bool) $languageDto->getRtl());
$form->addElement($rtl);
$hiddenField = new HiddenField('langId');
$hiddenField->setValue($languageDto->getId());
$form->addElement($hiddenField);
$submit = new Submit('submit');
$submit->setValue($language->text('admin', 'btn_label_edit'));
$form->addElement($submit);
$form->bindJsFunction(Form::BIND_SUCCESS, "function(data){if(data.result){OW.info(data.message);setTimeout(function(){window.location.reload();}, 1000);}else{OW.error(data.message);}}");
$this->addForm($form);
}
示例14: __construct
public function __construct($name, $mode)
{
parent::__construct($name);
$this->setAction(OW::getRouter()->urlForRoute('ocsaffiliates.action_edit'));
$this->setAjax();
$lang = OW::getLanguage();
$idField = new HiddenField('affiliateId');
$this->addElement($idField);
$modeField = new HiddenField('mode');
$modeField->setValue($mode);
$this->addElement($modeField);
if ($mode == 'admin') {
$emailVerified = new CheckboxField('emailVerified');
$emailVerified->setLabel($lang->text('ocsaffiliates', 'email_verified'));
$this->addElement($emailVerified);
$status = new Selectbox('status');
$status->setLabel($lang->text('ocsaffiliates', 'status'));
$status->setHasInvitation(false);
$status->setRequired(true);
$options = array('active' => $lang->text('ocsaffiliates', 'status_active'), 'unverified' => $lang->text('ocsaffiliates', 'status_unverified'));
$status->setOptions($options);
$this->addElement($status);
}
$affName = new TextField('name');
$affName->setRequired(true);
$affName->setLabel($lang->text('ocsaffiliates', 'affiliate_name'));
$this->addElement($affName);
$email = new TextField('email');
$email->setRequired(true);
$email->setLabel($lang->text('ocsaffiliates', 'email'));
$email->addValidator(new EmailValidator());
$this->addElement($email);
$password = new PasswordField('password');
$password->setLabel($lang->text('ocsaffiliates', 'password'));
$this->addElement($password);
$payment = new Textarea('payment');
$payment->setRequired(true);
$payment->setLabel($lang->text('ocsaffiliates', 'payment_details'));
$this->addElement($payment);
$submit = new Submit('save');
$submit->setValue($lang->text('ocsaffiliates', 'edit'));
$this->addElement($submit);
$this->bindJsFunction(Form::BIND_SUCCESS, "function(data){\n if ( !data.result ) {\n OW.error(data.error);\n }\n else {\n document.location.reload();\n }\n }");
}
示例15: index
public function index()
{
$language = OW::getLanguage();
$config = OW::getConfig();
$adminForm = new Form('adminForm');
$element = new Selectbox('actionMember');
$element->setLabel($language->text('grouprss', 'action_member_label'));
$element->setDescription($language->text('grouprss', 'action_member_desc'));
$element->setValue($config->getValue('grouprss', 'actionMember'));
$element->setRequired();
$element->addOption('admin', $language->text('grouprss', 'site_admin'));
$element->addOption('owner', $language->text('grouprss', 'group_owner'));
$element->addOption('both', $language->text('grouprss', 'both_admin_owner'));
$adminForm->addElement($element);
$element = new Selectbox('postLocation');
$element->setLabel($language->text('grouprss', 'post_location_label'));
$element->setDescription($language->text('grouprss', 'post_location_desc'));
$element->setValue($config->getValue('grouprss', 'postLocation'));
$element->setRequired();
$element->addOption('wall', $language->text('grouprss', 'wall_location'));
$element->addOption('newsfeed', $language->text('grouprss', 'newsfeed_location'));
$adminForm->addElement($element);
$element = new CheckboxField('disablePosting');
$element->setLabel($language->text('grouprss', 'disable_posting_label'));
$element->setDescription($language->text('grouprss', 'disable_posting_desc'));
$element->setValue($config->getValue('grouprss', 'disablePosting'));
$adminForm->addElement($element);
$element = new Submit('saveSettings');
$element->setValue(OW::getLanguage()->text('grouprss', 'admin_save_settings'));
$adminForm->addElement($element);
if (OW::getRequest()->isPost()) {
if ($adminForm->isValid($_POST)) {
$values = $adminForm->getValues();
$config->saveConfig('grouprss', 'actionMember', $values['actionMember']);
$config->saveConfig('grouprss', 'postLocation', $values['postLocation']);
$config->saveConfig('grouprss', 'disablePosting', $values['disablePosting']);
GROUPRSS_BOL_FeedService::getInstance()->addAllGroupFeed();
//OW::getFeedback()->info($language->text('grouprss', 'user_save_success'));
}
}
$this->addForm($adminForm);
}