本文整理汇总了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));
}
示例2: assignVariables
/**
* @see Page::assignVariables()
*/
public function assignVariables()
{
parent::assignVariables();
WCF::getTPL()->assign('captchaID', $this->captchaID);
}
示例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()));
}
示例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));
}
示例5: assignVariables
/**
* @see Page::assignVariables()
*/
public function assignVariables()
{
parent::assignVariables();
WCF::getTPL()->assign(array('boards' => $this->boardList, 'unignoredBoardIDArray' => $this->unignoredBoardIDArray));
}
示例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));
}
示例7: assignVariables
/**
* @see Page::assignVariables()
*/
public function assignVariables()
{
parent::assignVariables();
WCF::getTPL()->assign(array('alliance' => $this->alliance, 'leader' => new LWUser($this->alliance->ally_owner)));
}
示例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));
}
示例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));
}
示例10: assignVariables
/**
* @see Page::assignVariables()
*/
public function assignVariables()
{
parent::assignVariables();
WCF::getTPL()->assign(array('alliance' => $this->alliance, 'interrelations' => $this->interrelations));
}
示例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));
}
示例12: assignVariables
/**
* @see Page::assignVariables()
*/
public function assignVariables()
{
parent::assignVariables();
WCF::getTPL()->assign(array('userID' => $this->userID, 'lostPasswordKey' => $this->lostPasswordKey));
}
示例13: assignVariables
/**
* @see Page::assignVariables()
*/
public function assignVariables()
{
parent::assignVariables();
WCF::getTPL()->assign(array('email' => $this->email, 'checkbox' => $this->checkbox));
}
示例14: assignVariables
/**
* @see Page::assignVariables()
*/
public function assignVariables()
{
parent::assignVariables();
WCF::getTPL()->assign(array('username' => $this->username, 'password' => $this->password, 'url' => $this->url));
}
示例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));
}