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


PHP message::render方法代码示例

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


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

示例1: fail_login

 private function fail_login($msg)
 {
     if (function_exists('failed_login')) {
         $fail_ret_val = call_user_func('failed_login');
         if ($fail_ret_val) {
             $msg = $fail_ret_val;
         }
     }
     $page = new message($msg);
     $page->render();
     exit(0);
 }
开发者ID:codifyllc,项目名称:phpopenfw,代码行数:12,代码来源:login.class.php

示例2:

<?php

echo $js;
echo $css;
?>

<?php 
message::render();
?>

<?php 
$content = (string) $content;
if (empty($content)) {
    echo 'NO CONTENT';
} else {
    echo $content;
}
?>

<?php 
javascript::renderCodeBlocks();
开发者ID:swk,项目名称:bluebox,代码行数:21,代码来源:ajax.php

示例3: returnQtipAjaxForm

 /**
  * This function will close a qtipAjaxForm with a message and action
  *
  * @param Doctrine_Record The newly created doctrine record
  * @param bool If true this it will force the reply even if no qtipAjaxForm is present
  */
 public function returnQtipAjaxForm($object = NULL, $force = FALSE)
 {
     if (!empty($_REQUEST['qtipAjaxForm']) || $force) {
         if (headers_sent()) {
             kohana::log('error', 'Unable to reply to modal because headers are already sent');
             die;
         }
         $this->template->content = new View('generic/blank');
         header("X-AjaxForm-Status: complete");
         if (method_exists($this, 'qtipAjaxReturn')) {
             $this->qtipAjaxReturn($object);
         }
         message::render(array(), array('growl' => TRUE, 'html' => FALSE));
         $this->_render();
         flush();
         die;
     }
 }
开发者ID:Jaybee-,项目名称:bluebox,代码行数:24,代码来源:bluebox.php

示例4: __

//));
?>
            </div>

            <h2><?php 
echo __($title);
?>
</h2>

            <div class="bluebox_desc">
            <?php 
echo __('Our free software. Your next voip system.');
?>
            </div>
            <?php 
message::render(NULL, array('growl' => FALSE, 'html' => TRUE));
?>
        </div>

        <div class="content">

            <div class="wrapper">

                <div class="main">

                    <?php 
echo form::open(NULL, array('id' => 'installWizard'), array('form_token' => $formToken));
?>

                    <?php 
echo $content;
开发者ID:swk,项目名称:bluebox,代码行数:31,代码来源:layout.php

示例5: _renderRESTfulErrors

 private function _renderRESTfulErrors()
 {
     kohana::$instance->template->content = new View('blank');
     kohana::$instance->template->content->context = 'test';
     message::render(array(), array('growl' => TRUE, 'html' => FALSE));
 }
开发者ID:swk,项目名称:bluebox,代码行数:6,代码来源:jgrid.php

示例6: eslreponse

 public function eslreponse()
 {
     $eslManager = new EslManager();
     $errors = message::render(NULL, array('html' => TRUE, 'htmlTemplate' => '{text}' . "\n", 'growl' => FALSE, 'inline' => FALSE));
     if (!empty($errors['html'])) {
         echo implode('', $errors['html']);
     }
     if (!$eslManager->isConnected()) {
         if (empty($errors['html'])) {
             echo __("Failed to load ESL. Check logs");
         }
         flush();
         die;
     }
     switch ($_POST['type']) {
         case 'status':
             $result = $eslManager->status();
             break;
         case 'version':
             $result = $eslManager->version();
             break;
         case 'reloadacl':
             $result = $eslManager->reloadacl();
             break;
         case 'reloadxml':
             $result = $eslManager->reloadxml();
             break;
         case 'channels':
             $result = $eslManager->channels();
             break;
         case 'calls':
             $result = $eslManager->calls();
             break;
         case 'show_codec':
             $result = $eslManager->show('codec');
             break;
         case 'show_modules':
             $result = $eslManager->show('modules');
             break;
         case 'show_files':
             $result = $eslManager->show('file');
             break;
         case 'nat_status':
             $result = $eslManager->nat('status');
             break;
         case 'nat_reinit':
             $result = $eslManager->nat('reinit');
             break;
         case 'nat_republish':
             $result = $eslManager->nat('republish');
             break;
         case 'reload_sofia':
             $result = $eslManager->reload('mod_sofia');
             break;
         case 'sofia_status':
             $result = $eslManager->sofia('status');
             break;
         case 'sofia_profile':
             $result = $eslManager->sofia('status', 'profile', $_POST['param']);
             break;
         case 'gateway_profile':
             $result = $eslManager->sofia('status', 'gateway', $_POST['param']);
             break;
         case 'recvEvent':
             if (empty($_POST['param'])) {
                 $result = '== HELP ==' . "\n";
                 $result .= __('Please use the text input to enable an event listener that you are interested in.') . "\n";
                 $result .= 'Example: events plain all' . "\n";
                 break;
             }
             $result = $eslManager->sendRecv($_POST['param']);
             $reply = $result->getHeader('Reply-Text');
             if (!strstr($reply, '+OK event listener enabled')) {
                 $result = '== HELP ==' . "\n";
                 $result .= __('The supplied command failed to start an event listener, please ensure you are using the events command.') . "\n";
                 break;
             }
             $result = $eslManager->recvEvent();
             break;
         case 'sendRecv':
             if (empty($_POST['param'])) {
                 $result = '== HELP ==' . "\n";
                 $result .= 'Please use the text input to provide a command to execute.' . "\n";
                 $result .= 'Example: api version' . "\n";
                 break;
             }
             $result = $eslManager->sendRecv($_POST['param']);
             break;
         default:
             $result = $_POST['type'] . __(' command not supported by Bluebox ESL plugin.');
             break;
     }
     $text = $eslManager->getResponse($result);
     echo htmlentities($text);
     flush();
     die;
 }
开发者ID:swk,项目名称:bluebox,代码行数:97,代码来源:esl.php

示例7: array

                echo '>';
                echo html::anchor($options['url'], '<span>' . $label . '</span>');
                echo '</li>';
            }
            echo '</ul>';
        }
        echo '</li>';
    }
}
?>
                    </ul>
                </div>

                <div class="main">
                    <?php 
message::render(array(), array('html' => FALSE, 'growl' => TRUE));
?>
                    <!-- MAIN CONTENT -->
                    <?php 
echo $content;
?>
                    <!-- END MAIN CONTENT -->
                </div>

            </div>
        </div>
        <div class="clear"></div>
        <!-- END OF CONTENT -->

        <div class="footer">
开发者ID:swk,项目名称:bluebox,代码行数:30,代码来源:layout.php


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