本文整理汇总了PHP中Ajax::getReloadCommand方法的典型用法代码示例。如果您正苦于以下问题:PHP Ajax::getReloadCommand方法的具体用法?PHP Ajax::getReloadCommand怎么用?PHP Ajax::getReloadCommand使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Ajax
的用法示例。
在下文中一共展示了Ajax::getReloadCommand方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Frontend
* Window: user table
* @package Runalyze\Plugins\Panels
*/
require '../../inc/class.Frontend.php';
use Runalyze\Activity\Duration;
use Runalyze\Activity\Weight;
$Frontend = new Frontend();
$Factory = new PluginFactory();
$Plugin = $Factory->newInstance('RunalyzePluginPanel_Sportler');
$Fields = array('time' => 'date', 'weight' => '', 'sleep_duration' => ' <small>h</small>');
$FieldsPulse = array('pulse_rest' => ' <small>bpm</small>', 'pulse_max' => ' <small>bpm</small>');
$FieldsFat = array('fat' => ' %', 'water' => ' %', 'muscles' => ' %');
$Data = array_reverse(UserData::getFullArray());
if (Request::param('reload') == 'true') {
Ajax::setReloadFlag(Ajax::$RELOAD_ALL);
echo Ajax::getReloadCommand();
}
?>
<div class="panel-heading">
<div class="panel-menu"><ul><li><?php
echo $Plugin->addLink();
?>
</li></ul></div>
<h1><?php
_e('Body values');
?>
</h1>
</div>
<div class="panel-content">
<table id="sportlerTable" class="zebra-style">
<thead>
示例2: handleGetPostRequest
/**
* Handle Get/Post-data and update database
*/
private function handleGetPostRequest()
{
if (isset($_GET['active'])) {
$this->setActive((int) $_GET['active']);
Ajax::setReloadFlag(Ajax::$RELOAD_ALL);
echo Ajax::getReloadCommand();
}
}
示例3: displayImportFinish
/**
* Display form: import finished
*/
protected function displayImportFinish()
{
require_once __DIR__ . '/class.RunalyzeBulkInsert.php';
require_once __DIR__ . '/class.RunalyzeJsonImporterResults.php';
require_once __DIR__ . '/class.RunalyzeJsonImporter.php';
$fileName = '../data/DbBackup/import/' . $_POST['file'];
$Importer = new RunalyzeJsonImporter($fileName);
$Importer->importData();
Filesystem::deleteFile($fileName);
Ajax::setReloadFlag(Ajax::$RELOAD_ALL);
$Fieldset = new FormularFieldset(__('Import data'));
$Fieldset->addText(__('All data have been imported.'));
$Fieldset->addText(__('It is recommended to use the <em>Database cleanup</em> tool.'));
$Fieldset->addInfo($Importer->resultsAsString());
$Fieldset->addBlock(Ajax::getReloadCommand());
$Formular = new Formular();
$Formular->setId('import-finished');
$Formular->addFieldset($Fieldset);
$Formular->display();
}
示例4: display
/**
* Display tabs
*/
public function display()
{
if (Request::param('form') == 'true') {
$this->Tabs[$this->getCurrentKey()]->parsePostData();
$SubmitInfo = '<p class="okay"><em>' . __('The settings have been saved.') . '</em></p>';
if (!empty(self::$Messages)) {
$SubmitInfo .= implode('', self::$Messages);
}
echo '<div class="panel-heading" id="submit-info">' . $SubmitInfo . '</div>';
echo Ajax::getReloadCommand();
}
if ($this->hasToShowDiv()) {
echo '<div class="panel-menu panel-menu-floated">';
$this->displayNavigation();
echo '</div>';
echo '<div id="' . self::$TABS_ID . '">';
}
$this->displayCurrentTab();
if ($this->hasToShowDiv()) {
echo '</div>';
}
}
示例5: setReloadCommand
/**
* Set reload command
*/
protected function setReloadCommand()
{
Ajax::setPluginIDtoReload($this->Plugin->id());
Ajax::setReloadFlag(Ajax::$RELOAD_PLUGINS);
echo Ajax::getReloadCommand();
}