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


PHP AbstractForm::assignVariables方法代码示例

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


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

示例1: assignVariables

 /**
  * @see Page::assignVariables()
  */
 public function assignVariables()
 {
     global $game_config;
     parent::assignVariables();
     WCF::getTPL()->assign(array('maxSpeed' => $this->fleetQueue->getSpeed(), 'capacity' => $this->fleetQueue->getCapacity(), 'speedFactor' => $game_config['fleet_speed'] / 2500, 'fleetQueue' => $this->fleetQueue, 'specs' => $this->specs));
     //TODO: integrate this in wcf eventlistener assignVariables@FleetStartCoordinatesForm
     WCF::getTPL()->assign('navalFormations', NavalFormation::getByUserID(WCF::getUser()->userID));
 }
开发者ID:sonicmaster,项目名称:RPG,代码行数:11,代码来源:FleetStartCoordinatesForm.class.php

示例2: assignVariables

 /**
  * @see Page::assignVariables()
  */
 public function assignVariables()
 {
     parent::assignVariables();
     WCF::getTPL()->assign('captchaID', $this->captchaID);
 }
开发者ID:joaocustodio,项目名称:EmuDevstore-1,代码行数:8,代码来源:CaptchaForm.class.php

示例3: assignVariables

 /**
  * @see Page::assignVariables()
  */
 public function assignVariables()
 {
     AbstractForm::assignVariables();
     WCF::getTPL()->assign(array('staticParameters' => $this->staticParameters, 'matchExactly' => $this->matchExactly, 'options' => $this->options, 'optionCategories' => $this->categories, 'hasFriends' => MembersListPage::hasFriends()));
 }
开发者ID:joaocustodio,项目名称:EmuDevstore-1,代码行数:8,代码来源:MembersSearchForm.class.php

示例4: assignVariables

 /**
  * @see Page::assignVariables()
  */
 public function assignVariables()
 {
     parent::assignVariables();
     WCF::getTPL()->assign(array('group' => $this->group, 'groupID' => $this->groupID, 'reason' => $this->reason, 'enableNotification' => $this->enableNotification));
 }
开发者ID:joaocustodio,项目名称:EmuDevstore-1,代码行数:8,代码来源:UserGroupApplyForm.class.php

示例5: assignVariables

 /**
  * @see Page::assignVariables()
  */
 public function assignVariables()
 {
     parent::assignVariables();
     WCF::getTPL()->assign(array('boards' => $this->boardList, 'unignoredBoardIDArray' => $this->unignoredBoardIDArray));
 }
开发者ID:joaocustodio,项目名称:EmuDevstore-1,代码行数:8,代码来源:BoardIgnoreForm.class.php

示例6: assignVariables

 /**
  * @see Page::assignVariables()
  */
 public function assignVariables()
 {
     parent::assignVariables();
     WCF::getTPL()->assign(array('application' => $this->user->ally_request_text, 'user' => $this->user, 'answerText' => $this->answerText));
 }
开发者ID:sonicmaster,项目名称:RPG,代码行数:8,代码来源:AllianceApplicationViewForm.class.php

示例7: assignVariables

 /**
  * @see Page::assignVariables()
  */
 public function assignVariables()
 {
     parent::assignVariables();
     WCF::getTPL()->assign(array('alliance' => $this->alliance, 'leader' => new LWUser($this->alliance->ally_owner)));
 }
开发者ID:sonicmaster,项目名称:RPG,代码行数:8,代码来源:AllianceAdministrationForm.class.php

示例8: assignVariables

 /**
  * @see Page::assignVariables()
  */
 public function assignVariables()
 {
     global $lang, $resource;
     parent::assignVariables();
     includeLang('tech');
     includeLang('combat');
     WCF::getTPL()->assign(array('resource' => $resource, 'shipTypeNames' => $lang['tech'], 'attackerFleets' => $this->attackerFleets, 'defenderFleets' => $this->defenderFleets, 'reportID' => $this->reportID, 'units' => $this->units, 'debris' => $this->debris, 'booty' => $this->booty, 'minUnits' => $this->minUnits, 'minDebris' => $this->minDebris, 'minBooty' => $this->minBooty, 'maxUnits' => $this->maxUnits, 'maxDebris' => $this->maxDebris, 'maxBooty' => $this->maxBooty, 'roundNo' => $this->roundNo, 'winner' => $this->winner));
 }
开发者ID:sonicmaster,项目名称:RPG,代码行数:11,代码来源:SimulatorForm.class.php

示例9: assignVariables

 /**
  * @see	Page::assignVariables()
  */
 public function assignVariables()
 {
     parent::assignVariables();
     WCF::getTPL()->assign(array('errors' => $this->errors, 'filename' => $this->filename, 'packages' => $this->packages, 'preSelection' => $this->preSelection, 'saveSelection' => $this->saveSelection, 'source' => $this->source));
 }
开发者ID:ZerGabriel,项目名称:PackageBuilder,代码行数:8,代码来源:PreferredPackageForm.class.php

示例10: assignVariables

 /**
  * @see Page::assignVariables()
  */
 public function assignVariables()
 {
     parent::assignVariables();
     WCF::getTPL()->assign(array('alliance' => $this->alliance, 'interrelations' => $this->interrelations));
 }
开发者ID:sonicmaster,项目名称:RPG,代码行数:8,代码来源:AllianceDiplomacyPage.class.php

示例11: assignVariables

 /**
  * @see Page::assignVariables()
  */
 public function assignVariables()
 {
     parent::assignVariables();
     if (!empty($this->applicationText)) {
         $applicationTemplate = $this->applicationText;
     } else {
         $applicationTemplate = $this->alliance->ally_request;
     }
     WCF::getTPL()->assign(array('allianceID' => $this->allianceID, 'allianceTag' => $this->alliance->ally_tag, 'applicationText' => $this->applicationText, 'textLength' => self::APPLICATION_TEXT_LENGTH, 'applicationTemplate' => $applicationTemplate));
 }
开发者ID:sonicmaster,项目名称:RPG,代码行数:13,代码来源:AllianceApplyForm.class.php

示例12: assignVariables

 /**
  * @see Page::assignVariables()
  */
 public function assignVariables()
 {
     parent::assignVariables();
     WCF::getTPL()->assign(array('userID' => $this->userID, 'lostPasswordKey' => $this->lostPasswordKey));
 }
开发者ID:joaocustodio,项目名称:EmuDevstore-1,代码行数:8,代码来源:NewPasswordForm.class.php

示例13: assignVariables

 /**
  * @see Page::assignVariables()
  */
 public function assignVariables()
 {
     parent::assignVariables();
     WCF::getTPL()->assign(array('email' => $this->email, 'checkbox' => $this->checkbox));
 }
开发者ID:CaribeSoy,项目名称:Newsletter-System,代码行数:8,代码来源:NewsletterRegisterGuestForm.class.php

示例14: assignVariables

 /**
  * @see Page::assignVariables()
  */
 public function assignVariables()
 {
     parent::assignVariables();
     WCF::getTPL()->assign(array('username' => $this->username, 'password' => $this->password, 'url' => $this->url));
 }
开发者ID:CaribeSoy,项目名称:contest-wcf,代码行数:8,代码来源:LoginForm.class.php

示例15: assignVariables

 /**
  * @see Page::assignVariables()
  */
 public function assignVariables()
 {
     parent::assignVariables();
     $sql = "SELECT 'Total' AS ctryCode, MAX(ihelID) AS cnt" . "\n  FROM wcf" . WCF_N . "_ics_holiday_exporter_log" . "\n UNION" . "\nSELECT ihelCtryCode AS ctryCode, COUNT(*) AS cnt" . "\n  FROM wcf" . WCF_N . "_ics_holiday_exporter_log" . "\n GROUP BY ihelCtryCode" . "\n ORDER BY cnt DESC";
     $this->exports = WCF::getDB()->getResultList($sql);
     $this->ctryCodes = $this->getCountryCodes();
     WCF::getTPL()->assign(array('icsheVersion' => $this->version, 'fromYear' => $this->fromYear, 'toYear' => $this->toYear, 'country' => $this->country, 'years' => $this->years, 'ctryCodes' => $this->ctryCodes, 'exports' => $this->exports));
 }
开发者ID:Maggan22,项目名称:wbb3addons,代码行数:11,代码来源:IcsHolidayExporterForm.class.php


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