当前位置: 首页>>代码示例>>PHP>>正文


PHP AbstractPage::readData方法代码示例

本文整理汇总了PHP中AbstractPage::readData方法的典型用法代码示例。如果您正苦于以下问题:PHP AbstractPage::readData方法的具体用法?PHP AbstractPage::readData怎么用?PHP AbstractPage::readData使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在AbstractPage的用法示例。


在下文中一共展示了AbstractPage::readData方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: readData

 /**
  * @see Page::readData()
  */
 public function readData()
 {
     parent::readData();
     $sql = "SELECT *\n\t\t\t\tFROM ugml_archive_fleet\n\t\t\t\tWHERE fleetID = " . $this->fleetID;
     $row = WCF::getDB()->getFirstRow($sql);
     $this->fleetData = unserialize(LWUtil::unserialize($row['data']));
 }
开发者ID:sonicmaster,项目名称:RPG,代码行数:10,代码来源:FleetViewPage.class.php

示例2: readData

 public function readData()
 {
     parent::readData();
     $this->photoList = new UserGalleryPhotoList();
     $this->photoList->sqlConditions .= 'user_gallery.albumID = ' . intval($this->album->albumID);
     $this->photoList->readObjects();
 }
开发者ID:NetzwergX,项目名称:WCF-Small-Plugins,代码行数:7,代码来源:UserGalleryPhotosXMLListPage.class.php

示例3: readData

 /**
  * @see Page::readData
  */
 public function readData()
 {
     parent::readData();
     //echo ".";
     $this->fleetQueue = new FleetQueue(0);
     $this->readTarget();
     $this->specs = Spec::getBySpecType(3);
     $this->fleets = Fleet::getByUserID(WCF::getUser()->userID);
     foreach ($this->fleets as $fleetID => $fleet) {
         $this->fleets[$fleetID]->navalFormation = NavalFormation::getByFleetID($fleetID);
     }
     // backlink
     if (isset($_REQUEST['backlink'])) {
         $this->backlink = StringUtil::trim($_REQUEST['backlink']);
     }
     $array = array();
     preg_match('/^(https?:\\/\\/[^\\/]*\\/)?(.*)$/i', $this->backlink, $array);
     $this->fleetQueue->backlink = $this->backlink = isset($array[2]) ? $array[2] : '';
     //echo ".";
     // TODO: clean this one up
     $sql = "DELETE FROM ugml_galactic_jump_queue\n\t\t\t\tWHERE userID = " . WCF::getUser()->userID;
     WCF::getDB()->registerShutdownUpdate($sql);
     $sql = "INSERT INTO ugml_galactic_jump_queue (userID, startPlanetID, state, time)\n\t\t\t\tVALUES(" . WCF::getUser()->userID . ", " . LWCore::getPlanet()->planetID . ", 1, " . TIME_NOW . ")";
     WCF::getDB()->registerShutdownUpdate($sql);
 }
开发者ID:sonicmaster,项目名称:RPG,代码行数:28,代码来源:FleetStartShipsPage.class.php

示例4: readData

 /**
  * @see Page::readData()
  */
 public function readData()
 {
     parent::readData();
     $this->os = PHP_OS;
     if (isset($_SERVER['SERVER_SOFTWARE'])) {
         $this->webserver = $_SERVER['SERVER_SOFTWARE'];
     }
     $this->sqlVersion = WCF::getDB()->getVersion();
     $this->sqlType = WCF::getDB()->getDBType();
     $this->readLoad();
     $this->readStat();
     // updates
     if (WCF::getUser()->getPermission('admin.system.package.canUpdatePackage')) {
         require_once WCF_DIR . 'lib/acp/package/update/PackageUpdate.class.php';
         $this->updates = PackageUpdate::getAvailableUpdates();
     }
     // news
     if (false) {
         $this->news = FeedReaderSource::getEntries(5);
         foreach ($this->news as $key => $news) {
             $this->news[$key]['description'] = preg_replace('/href="(.*?)"/e', '\'href="' . RELATIVE_WCF_DIR . 'acp/dereferrer.php?url=\'.rawurlencode(\'$1\').\'" class="externalURL"\'', $news['description']);
         }
     } else {
         $this->news = array();
     }
 }
开发者ID:CaribeSoy,项目名称:contest-wcf,代码行数:29,代码来源:IndexPage.class.php

示例5: readData

 public function readData()
 {
     parent::readData();
     $this->entry = new ViewableBashEntry($this->entryID);
     // check for the entry
     if (!$this->entry->entryID) {
         throw new IllegalLinkException();
     }
     // check for permissions
     $throwPermissionDeniedException = false;
     if ($this->entry->isDisabled) {
         // guest
         if (!WCF::getUser()->userID) {
             $throwPermissionDeniedException = true;
         }
         // check for author (the author of the entry can see this entry)
         if (!$throwPermissionDeniedException and WCF::getUser()->userID != $this->entry->authorID) {
             $throwPermissionDeniedException = true;
         }
         // check for a moderator (a moderator can see this entry)
         if (!$throwPermissionDeniedException and WCF::getUser()->userID != $this->entry->authorID and !WCF::getUser()->getPermission('mod.bash.moderatorPermissions')) {
             $throwPermissionDeniedException = true;
         }
     }
     // throw a permission denied exception
     if ($throwPermissionDeniedException) {
         throw new PermissionDeniedException();
     }
     // init sidebars
     $this->sidebarFactory = new MessageSidebarFactory($this);
     $this->sidebarFactory->create($this->entry);
     $this->sidebarFactory->init();
 }
开发者ID:Evil-Co-Legacy,项目名称:Bash-Database,代码行数:33,代码来源:BashEntryPage.class.php

示例6: readData

 /**
  * @see Page::readData()
  */
 public function readData()
 {
     parent::readData();
     if (!empty($this->allianceID)) {
         $this->alliance = new Alliance($this->allianceID);
     } else {
         $this->alliance = Alliance::getByUserID(WCF::getUser()->userID);
     }
     // no such alliance
     if ($this->alliance === null || $this->alliance->id <= 0) {
         require_once WCF_DIR . 'lib/system/exception/NamedUserException.class.php';
         //$_SERVER['HTTP_ACCEPT'] = str_replace('platzhalter', 'application/xhtml+xml', $_SERVER['HTTP_ACCEPT']);
         // user has no alliance
         if (empty($this->allianceID)) {
             // waiting for a answer to the application
             if (WCF::getUser()->ally_request) {
                 $alliance = new Alliance(WCF::getUser()->ally_request);
                 throw new NamedUserException(WCF::getLanguage()->get('wot.alliance.waitingForApplicationAnswer', array('allianceID' => $alliance->allianceID, 'allianceTag' => $alliance->ally_tag, 'userID' => WCF::getUser()->userID)));
             }
             throw new NamedUserException(WCF::getLanguage()->get('wot.alliance.notMember'));
         }
         // requested alliance does not exist
         throw new NamedUserException(WCF::getLanguage()->get('wot.alliance.notExisting'));
     }
     // applications
     if ($this->alliance->getRank(true, 3)) {
         $sql = "SELECT COUNT(*) AS count\n\t\t\t\t\tFROM ugml_users\n\t\t\t\t\tWHERE ally_request = " . $this->alliance->allianceID;
         $result = WCF::getDB()->getFirstRow($sql);
         $this->applicationsCount = $result['count'];
     }
 }
开发者ID:sonicmaster,项目名称:RPG,代码行数:34,代码来源:AlliancePage.class.php

示例7: readData

 /**
  * @see Page::readData()
  */
 public function readData()
 {
     parent::readData();
     $this->server = new Server($this->serverID);
     if ($this->server->serverID == 0) {
         throw new IllegalLinkException();
     }
 }
开发者ID:Evil-Co-Legacy,项目名称:Bash-Database,代码行数:11,代码来源:ServerDetailPage.class.php

示例8: readData

 /**
  * @see Page::readData()
  */
 public function readData()
 {
     parent::readData();
     $this->readMemberships();
     $this->readOpenGroups();
     $this->readApplications();
     $this->readGroupLeaders();
 }
开发者ID:joaocustodio,项目名称:EmuDevstore-1,代码行数:11,代码来源:UserGroupsPage.class.php

示例9: readData

 /**
  * @see Page::readData()
  */
 public function readData()
 {
     parent::readData();
     $sql = "SELECT username,\n\t\t\t\t\tugml_planets.galaxy,\n\t\t\t\t\tugml_planets.system,\n\t\t\t\t\tugml_planets.planet,\n\t\t\t\t\tugml_planets.name\n\t\t\t\tFROM ugml_users\n\t\t\t\tLEFT JOIN ugml_planets\n\t\t\t\t\tON ugml_users.id_planet = ugml_planets.id\n\t\t\t\tWHERE username LIKE '" . escapeString($this->input) . "%'";
     $result = WCF::getDB()->sendQuery($sql);
     while ($row = WCF::getDB()->fetchArray($result)) {
         $this->users[] = array($row['username'], $row['name'], '[' . $row['galaxy'] . ':' . $row['system'] . ':' . $row['planet'] . ']', $row['galaxy'], $row['system']);
     }
 }
开发者ID:Biggerskimo,项目名称:WOT-Game,代码行数:12,代码来源:MessageUserSuggestPage.class.php

示例10: readData

 /**
  * @see AbstractPage::readData()
  */
 public function readData()
 {
     parent::readData();
     //gets current version
     $sql = 'SELECT packageVersion
     		FROM wcf' . WCF_N . "_package\n        \t\tWHERE package = 'de.plugins-zum-selberbauen.newsletter'";
     $row = WCF::getDB()->getFirstRow($sql);
     $this->version = $row['packageVersion'];
 }
开发者ID:CaribeSoy,项目名称:Newsletter-System,代码行数:12,代码来源:NewsletterAboutPage.class.php

示例11: readData

 /**
  * @see Page::readData()
  */
 public function readData()
 {
     parent::readData();
     $this->ovents = Ovent::getByConditions(array('userID' => WCF::getUser()->userID, 'checked' => 0));
     $this->hovents = Ovent::getByConditions(array('userID' => WCF::getUser()->userID, 'checked' => 1));
     // news
     WCF::getCache()->addResource('news-' . PACKAGE_ID, WCF_DIR . 'cache/cache.news-' . PACKAGE_ID . '.php', LW_DIR . 'lib/system/cache/CacheBuilderNews.class.php');
     $this->news = WCF::getCache()->get('news-' . PACKAGE_ID);
 }
开发者ID:sonicmaster,项目名称:RPG,代码行数:12,代码来源:OverviewPage.class.php

示例12: readData

 /**
  * @see Page::readData()
  */
 public function readData()
 {
     parent::readData();
     // Lade Content
     $uwp = new UserWantedPosterData($this->userID);
     $this->uwpData = $uwp->readEntry();
     // Wandle BBCode um und newlines
     if (isset($this->uwpData['text'])) {
         $bbcode = new MessageParser();
         $this->uwpData['text'] = $bbcode->parse($this->uwpData['text'], $this->uwpData['enableSmilies'], $this->uwpData['enableHtml'], $this->uwpData['enableBBCodes']);
     }
 }
开发者ID:Maggan22,项目名称:wbb3addons,代码行数:15,代码来源:UserWantedPosterPage.class.php

示例13: readData

 /**
  * @see	Page::readData()
  */
 public function readData()
 {
     parent::readData();
     $this->entry = new UserGuestbookEntry($this->entryID);
     $this->verifyData();
     $this->verifyPermissions();
     if (!USER_GUESTBOOK_SHOW_DELETED_ENTRY_NOTE || !$this->modPermissions['canReadDeletedEntry']) {
         $this->entry->getCommentList()->sqlConditions .= ', comment.isDeleted = 0';
     }
     $this->entry->getCommentList()->sqlOrderBy .= "comment.time ASC, comment.commentID ASC";
     $this->comments = $this->entry->getComments();
 }
开发者ID:0xLeon,项目名称:com.leon.wcf.user.guestbook,代码行数:15,代码来源:UserGuestbookCommentXMLListPage.class.php

示例14: readData

 /**
  * @see Page::readData()
  */
 public function readData()
 {
     parent::readData();
     // read warnings
     $this->userWarningList->sqlLimit = 50;
     $this->userWarningList->sqlOrderBy = 'user_warning.expires DESC';
     $this->userWarningList->readObjects();
     // read suspensions
     $this->userSuspensionList->sqlLimit = 50;
     $this->userSuspensionList->sqlOrderBy = 'user_suspension.expires DESC';
     $this->userSuspensionList->readObjects();
 }
开发者ID:joaocustodio,项目名称:EmuDevstore-1,代码行数:15,代码来源:UserWarningOverviewPage.class.php

示例15: readData

 /**
  * @see Page::readData()
  */
 public function readData()
 {
     parent::readData();
     $this->countDeletedThreads();
     $this->countHiddenThreads();
     $this->countMarkedThreads();
     $this->countDeletedPosts();
     $this->countHiddenPosts();
     $this->countMarkedPosts();
     $this->countReports();
     WCF::getSession()->unregister('outstandingModerations');
 }
开发者ID:joaocustodio,项目名称:EmuDevstore-1,代码行数:15,代码来源:ModerationOverviewPage.class.php


注:本文中的AbstractPage::readData方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。