本文整理汇总了PHP中Modules::getModuleProperty方法的典型用法代码示例。如果您正苦于以下问题:PHP Modules::getModuleProperty方法的具体用法?PHP Modules::getModuleProperty怎么用?PHP Modules::getModuleProperty使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Modules
的用法示例。
在下文中一共展示了Modules::getModuleProperty方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: t
<?php
/**
* Welcome page description of the status module.
*
* @license GPL
*
* @package MythWeb
*
**/
// Open with a div and an image
echo '<div id="info_backend_log">', '<p>', '<a href="', root_url, Modules::getModuleProperty('backend_log', 'path'), '">', '<img src="', skin_url, '/img/backend_log.png" class="module_icon" border="0" />', '<h2>', Modules::getModuleProperty('backend_log', 'name'), '</h2></a>', '</p>', t('welcome: backend_log'), "</div>\n";
示例2: t
<?php
/**
* Welcome page description of the Settings module.
*
* @license GPL
*
* @package MythWeb
* @subpackage Settings
*
**/
// Open with a div and an image
echo '<div id="info_settings">', '<p>', '<a href="', root_url, Modules::getModuleProperty('settings', 'path'), '">', '<img src="', skin_url, '/img/settings.png" class="module_icon" border="0" />', '<h2>', Modules::getModuleProperty('settings', 'name'), '</h2></a>', '</p>', t('welcome: settings'), '<ul>';
foreach (Modules::getModuleProperty('settings', 'links') as $link => $name) {
echo ' <li><a href="', root_url, Modules::getModuleProperty('settings', 'path'), '/', $link, '">', html_entities($name), "</a></li>\n";
}
echo '</ul>', "</div>\n";
示例3: t
<?php
/**
* Welcome page description of the status module.
*
* @license GPL
*
* @package MythWeb
* @subpackage Stats
*
/**/
// Open with a div and an image
echo '<div id="info_stats">', '<p>', '<a href="', Modules::getModuleProperty('stats', 'path'), '">', '<img src="', skin_url, '/img/stats.png" class="module_icon" border="0" />', '<h2>', Modules::getModuleProperty('stats', 'name'), '</h2></a>', '</p>', t('welcome: stats'), "</div>\n";
示例4: unset
}
unset($_SESSION['remote']['frontends'][$_REQUEST['ping']]);
echo 0;
exit;
} elseif ($_REQUEST['unping']) {
unset($_SESSION['remote']['frontends'][$_REQUEST['unping']]);
echo 1;
exit;
}
// Use the new directory structure?
if (empty($_REQUEST['type'])) {
$_REQUEST['type'] = $Path[1] ? $Path[1] : $_SESSION['remote']['type'];
}
// Unknown send type? Use the first one found
if (empty($_REQUEST['type']) || !array_key_exists($_REQUEST['type'], Modules::getModuleProperty('remote', 'links'))) {
$_REQUEST['type'] = reset(array_keys(Modules::getModuleProperty('remote', 'links')));
} elseif (isset($_REQUEST['command'])) {
if (is_array($_SESSION['remote']['frontends']) && count($_SESSION['remote']['frontends'])) {
foreach (array_keys($_SESSION['remote']['frontends']) as $host) {
$frontend = $Frontends[$host];
switch ($_REQUEST['type']) {
case 'keys':
if ($frontend->send_key($_REQUEST['command'])) {
echo "{$host}:1\n";
} else {
echo "{$host}:0\n";
}
break;
case 'jump':
if ($frontend->send_jump($_REQUEST['command'])) {
echo "{$host}:1\n";
示例5: html_entities
if ($link == $_REQUEST['type']) {
echo ' class="x-selected"';
}
echo '>', html_entities($name), '</a></li>';
}
?>
</ul>
</td>
</tr><tr>
<td class="x-content" colspan="2" valign="top">
<?php
require_once tmpl_dir . '/' . $_REQUEST['type'] . '.php';
?>
</td>
</tr><tr>
<td class="x-screenshots" colspan="2">
<ul style="list-style-type: none"><?php
foreach (array_keys($Frontends) as $host) {
if (!$_SESSION['remote']['frontends'][$host]) {
next;
}
echo '<li><img id="hostscreen_', $host, '" class="x-screenshot"', ' src="', root, html_entities(Modules::getModuleProperty('remote', 'path') . '/screenshot?format=jpg&width=960&host=' . urlencode($host)), '" /></li>';
}
?>
</ul>
</td>
</tr>
</table>
<?php
// Print the page footer
require 'modules/_shared/tmpl/' . tmpl . '/footer.php';
示例6: t
<?php
/**
* Welcome page description of the Remote Control module.
*
* @license GPL
*
* @package MythWeb
* @subpackage Remote
*
**/
// Open with a div and an image
echo '<div id="info_remote" class="hidden">', '<img src="', skin_url, 'img/tv.png" class="module_icon" alt="">', t('welcome: remote'), '<ul>';
foreach (Modules::getModuleProperty('remote', 'links') as $link => $name) {
echo ' <li><a href="', Modules::getModuleProperty('remote', 'path'), '/', $link, '">', html_entities($name), "</a></li>\n";
}
echo '</ul>', "</div>\n";