當前位置: 首頁>>代碼示例>>PHP>>正文


PHP PageLayout::getMessages方法代碼示例

本文整理匯總了PHP中PageLayout::getMessages方法的典型用法代碼示例。如果您正苦於以下問題:PHP PageLayout::getMessages方法的具體用法?PHP PageLayout::getMessages怎麽用?PHP PageLayout::getMessages使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在PageLayout的用法示例。


在下文中一共展示了PageLayout::getMessages方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: store_action

 public function store_action($version)
 {
     $body = Request::get('body');
     if (Request::isXhr()) {
         $body = studip_utf8decode($body);
     }
     submitWikiPage($this->keyword, $version, $body, $GLOBALS['user']->id, $this->range_id);
     $latest_version = getLatestVersion($this->keyword, $this->range_id);
     if (Request::isXhr()) {
         $this->render_json(array('version' => $latest_version['version'], 'body' => $latest_version['body'], 'messages' => implode(PageLayout::getMessages()) ?: false, 'zusatz' => getZusatz($latest_version)));
     } else {
         // Yeah, wait for the whole trailification of the wiki...
     }
 }
開發者ID:ratbird,項目名稱:hope,代碼行數:14,代碼來源:wiki.php

示例2: foreach

<?php

foreach (PageLayout::getMessages() as $message) {
    ?>
    <?php 
    echo $message;
}
?>
<form action="<?php 
echo $controller->url_for('presenting/follow_release/' . $release->getId());
?>
" method="post" data-dialog class="default">
    <p class="info">
        <?php 
echo _("Immer aktuell bleiben mit automatischen Updates! Sie finden in Ihrem eigenen Stud.IP in der Pluginverwaltung rechts neben dem Plugin ein Icon, das Sie zu einem Popup führt. Geben Sie dort die unten stehende Download-URL ein und geben Sie hier die URL ein, die Sie danach dort in Ihrer Pluginverwaltung sehen. Sind beide Systeme korrekt konfiguriert, wird der Marktplatz dann eine jede neue Version dieses Releases automatisch in ihrem Stud.IP installieren.");
?>
    </p>
    <fieldset>
        <legend><?php 
echo _("Konfigurieren Sie Ihr Stud.IP");
?>
</legend>
        <label>
            <?php 
echo _("Download-URL - geben Sie diese URL in Ihrem Stud.IP in der Pluginverwaltung ein");
?>
            <input type="text" readonly value="<?php 
echo $controller->absolute_url_for('presenting/download/' . $release->getId());
?>
">
        </label>
開發者ID:studip,項目名稱:PluginMarket,代碼行數:31,代碼來源:follow_release.php

示例3: if

<? if (Request::isXhr()) : ?>
    <? foreach (PageLayout::getMessages() as $messagebox) : ?>
        <?php 
echo $messagebox;
?>
    <? endforeach ?>
<? endif ?>
開發者ID:ratbird,項目名稱:hope,代碼行數:7,代碼來源:send.php

示例4: foreach

<? foreach(PageLayout::getMessages() as $pm) : ?>
    <?php 
echo $pm;
?>
<? endforeach; ?>
<?php 
echo $form->getFormStart($controller->url_for('resources/helpers/resource_message/' . $resource->getId()), array('data-dialog' => ''));
?>
<div style="font-weight:bold;padding-top:5px;">
<?php 
echo $form->getFormFieldCaption('start_day');
?>
:
</div>
<div>
<?php 
echo $form->getFormField('start_day');
?>
</div>
<div style="font-weight:bold;padding-top:5px;">
<?php 
echo $form->getFormFieldCaption('end_day');
?>
:
</div>
<div>
<?php 
echo $form->getFormField('end_day');
?>
</div>
開發者ID:ratbird,項目名稱:hope,代碼行數:30,代碼來源:resource_message.php

示例5: implode

<?php

echo implode(PageLayout::getMessages());
echo $content_for_layout;
開發者ID:ratbird,項目名稱:hope,代碼行數:4,代碼來源:dialog.php

示例6: Navigation

    $navigation = new Navigation(_('Anpassen'));
    $navigation->addSubNavigation('edit_types', new Navigation(_('Typen verwalten'), 'resources.php', array('view' => 'edit_types')));
    $navigation->addSubNavigation('edit_properties', new Navigation(_('Eigenschaften verwalten'), 'resources.php', array('view' => 'edit_properties')));
    $navigation->addSubNavigation('edit_settings', new Navigation(_('globale Einstellungen verwalten'), 'resources.php', array('view' => 'edit_settings')));

    if ($perm->have_perm('root')) {
        $navigation->addSubNavigation('edit_perms', new Navigation(_('globale Rechte verwalten'), 'resources.php', array('view' => 'edit_perms')));
    }

    $resources_nav->addSubNavigation('settings', $navigation);
}

//load content, text, pictures and stuff
include ("$RELATIVE_PATH_RESOURCES/views/page_intros.inc.php");
//save messages from
$pmessages = PageLayout::getMessages();
ob_start();
?>
<script type="text/javascript">
function check_opener(obj){
    if (window.opener && obj.href){
        window.opener.location.href = obj.href;
        window.opener.focus();
        return false;
    }
    return true;
}
</script>
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<? if (!Request::get('print_view')): ?>
    <tr>
開發者ID:ratbird,項目名稱:hope,代碼行數:31,代碼來源:resourcesControl.inc.php


注:本文中的PageLayout::getMessages方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。