コード例 #1
0
ファイル: GroupHandler.inc.php プロジェクト: alenoosh/ojs
 function setBoardEnabled($args)
 {
     GroupHandler::validate();
     $journal =& Request::getJournal();
     $boardEnabled = Request::getUserVar('boardEnabled');
     $journalSettingsDao =& DAORegistry::getDAO('JournalSettingsDAO');
     /**Opatan Inc. : change boardEnabled from bool to int**/
     $journalSettingsDao->updateSetting($journal->getJournalId(), 'boardEnabled', $boardEnabled, 'int');
     Request::redirect(null, null, 'groups');
 }
コード例 #2
0
ファイル: GroupHandler.inc.php プロジェクト: Jouper/jouper
 function setBoardEnabled($args)
 {
     GroupHandler::validate();
     $journal =& Request::getJournal();
     $boardEnabled = Request::getUserVar('boardEnabled') == 1 ? true : false;
     $journalSettingsDao =& DAORegistry::getDAO('JournalSettingsDAO');
     $journalSettingsDao->updateSetting($journal->getJournalId(), 'boardEnabled', $boardEnabled);
     Request::redirect(null, null, 'groups');
 }