예제 #1
0
 /**
  * @see \cms\system\content\type\IContentType::getFormTemplate()
  */
 public function getFormTemplate()
 {
     $contentData = RequestHandler::getInstance()->getActiveRequest()->getRequestObject()->contentData;
     if (isset($contentData['fileID'])) {
         $file = new File($contentData['fileID']);
         if ($file->fileID) {
             WCF::getTPL()->assign(array('file' => $file));
         }
     }
     return parent::getFormTemplate();
 }
예제 #2
0
 /**
  * @see \cms\system\content\type\IContentType::getFormTemplate()
  */
 public function getFormTemplate()
 {
     $contentData = RequestHandler::getInstance()->getActiveRequest()->getRequestObject()->contentData;
     if (isset($contentData['imageIDs'])) {
         $imageList = new FileList();
         $imageList->getConditionBuilder()->add('fileID in (?)', array($contentData['imageIDs']));
         $imageList->readObjects();
         WCF::getTPL()->assign(array('imageList' => $imageList));
     }
     return parent::getFormTemplate();
 }
예제 #3
0
 /**
  * @see \cms\system\content\type\IContentType::getFormTemplate()
  */
 public function getFormTemplate()
 {
     $username = '';
     $contentData =& RequestHandler::getInstance()->getActiveRequest()->getRequestObject()->contentData;
     if (isset($contentData['name'])) {
         $username = $contentData['name'];
     } else {
         if (isset($contentData['userID'])) {
             $userID = $contentData['userID'];
             $user = new User($userID);
             if ($user->userID) {
                 $username = $user->username;
             }
         }
     }
     WCF::getTPL()->assign(array('username' => $username));
     return parent::getFormTemplate();
 }
예제 #4
0
 /**
  * @see	\cms\system\content\type\IContentType::getFormTemplate()
  */
 public function getFormTemplate()
 {
     WCF::getTPL()->assign(array('boxList' => DashboardBoxCacheBuilder::getInstance()->getData(array(), 'boxes')));
     return parent::getFormTemplate();
 }