コード例 #1
0
ファイル: Forum.php プロジェクト: maitandat1507/Tinhte_XenTag
 public function Tinhte_XenTag_actionSaveAfterTransaction(XenForo_DataWriter_Forum $dw)
 {
     if (!empty($this->_tagger)) {
         unset($GLOBALS[Tinhte_XenTag_Constants::GLOBALS_CONTROLLERADMIN_FORUM_SAVE]);
         if ($dw->isInsert()) {
             $this->_tagger->setContent($dw->get('node_id'), true);
         }
         $this->_tagger->save();
     }
 }
コード例 #2
0
ファイル: Forum.php プロジェクト: Sywooch/forums
 public function bdSocialShare_actionSave(XenForo_DataWriter_Forum $forumDw)
 {
     $threadAutoOverride = $this->_input->filterSingle('bdSocialShare_threadAuto_override', XenForo_Input::UINT);
     if ($threadAutoOverride) {
         $threadAuto = $this->_input->filterSingle('bdSocialShare_threadAuto', XenForo_Input::ARRAY_SIMPLE);
         $forumDw->set('bdsocialshare_threadauto', $threadAuto);
     } else {
         $forumDw->set('bdsocialshare_threadauto', serialize(false));
     }
     unset($GLOBALS[bdSocialShare_Listener::XENFORO_CONTROLLERADMIN_FORUM_SAVE]);
 }
コード例 #3
0
ファイル: Forum.php プロジェクト: Sywooch/forums
 public function Tinhte_XenTag_actionSave(XenForo_DataWriter_Forum $dw)
 {
     $options = $this->_input->filterSingle(Tinhte_XenTag_Constants::FIELD_FORUM_OPTIONS, XenForo_Input::ARRAY_SIMPLE);
     $dw->set(Tinhte_XenTag_Constants::FIELD_FORUM_OPTIONS, $options);
     /* @var $tagModel Tinhte_XenTag_Model_Tag */
     $tagModel = $this->getModelFromCache('Tinhte_XenTag_Model_Tag');
     $tags = $tagModel->processInput($this->_input);
     if ($tags !== false) {
         $dw->Tinhte_XenTag_setTags($tags);
     }
     // just to be safe...
     unset($GLOBALS[Tinhte_XenTag_Constants::GLOBALS_CONTROLLERADMIN_FORUM_SAVE]);
 }
コード例 #4
0
 /**
  *
  * @param XenForo_DataWriter_Forum $dw
  */
 public function processThumbnails(XenForo_DataWriter_Forum $dw)
 {
     $options = $this->_input->filterSingle('options', XenForo_Input::ARRAY_SIMPLE, array('array' => true));
     if (isset($options['waindigo_thumbSources_Thumbnails'])) {
         $thumbSources = $options['waindigo_thumbSources_thumbnails'];
         for ($i = 0; $i <= 5; $i++) {
             if (!isset($thumbSources[$i])) {
                 $thumbSources[$i] = "";
             }
         }
         ksort($thumbSources);
         $thumbSources = implode(",", $thumbSources);
         $dw->set('thumb_sources', $thumbSources);
     }
     $width = $this->_input->filterSingle('thumb_width', XenForo_Input::UINT);
     $dw->set('thumb_width', $width);
     $height = $this->_input->filterSingle('thumb_height', XenForo_Input::UINT);
     $dw->set('thumb_height', $height);
 }