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


PHP comment::nonjs方法代码示例

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


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

示例1: js

 /**
  * Print required YUI libraries, must be called before html head printed
  * @return boolean
  */
 public static function js()
 {
     global $PAGE, $CFG;
     // setup variables for non-js interface
     self::$nonjs = optional_param('nonjscomment', '', PARAM_ALPHA);
     self::$comment_itemid = optional_param('comment_itemid', '', PARAM_INT);
     self::$comment_context = optional_param('comment_context', '', PARAM_INT);
     self::$comment_area = optional_param('comment_area', '', PARAM_ALPHAEXT);
     $PAGE->requires->yui_lib('yahoo')->in_head();
     $PAGE->requires->yui_lib('dom')->in_head();
     $PAGE->requires->yui_lib('event')->in_head();
     $PAGE->requires->yui_lib('animation')->in_head();
     $PAGE->requires->yui_lib('json')->in_head();
     $PAGE->requires->yui_lib('connection')->in_head();
     $PAGE->requires->js('comment/comment.js')->in_head();
     $PAGE->requires->string_for_js('addcomment', 'moodle');
     $PAGE->requires->string_for_js('deletecomment', 'moodle');
 }
开发者ID:ajv,项目名称:Offline-Caching,代码行数:22,代码来源:commentlib.php

示例2: init

 /**
  * Receive nonjs comment parameters
  *
  * @param moodle_page $page The page object to initialise comments within
  *                          If not provided the global $PAGE is used
  */
 public static function init(moodle_page $page = null)
 {
     global $PAGE;
     if (empty($page)) {
         $page = $PAGE;
     }
     // setup variables for non-js interface
     self::$nonjs = optional_param('nonjscomment', '', PARAM_ALPHANUM);
     self::$comment_itemid = optional_param('comment_itemid', '', PARAM_INT);
     self::$comment_context = optional_param('comment_context', '', PARAM_INT);
     self::$comment_page = optional_param('comment_page', '', PARAM_INT);
     self::$comment_area = optional_param('comment_area', '', PARAM_AREA);
     $page->requires->string_for_js('addcomment', 'moodle');
     $page->requires->string_for_js('deletecomment', 'moodle');
     $page->requires->string_for_js('comments', 'moodle');
     $page->requires->string_for_js('commentsrequirelogin', 'moodle');
 }
开发者ID:EmmanuelYupit,项目名称:educursos,代码行数:23,代码来源:lib.php

示例3: init

 /**
  * Receive nonjs comment parameters
  */
 public static function init()
 {
     global $PAGE, $CFG;
     // setup variables for non-js interface
     self::$nonjs = optional_param('nonjscomment', '', PARAM_ALPHA);
     self::$comment_itemid = optional_param('comment_itemid', '', PARAM_INT);
     self::$comment_context = optional_param('comment_context', '', PARAM_INT);
     self::$comment_page = optional_param('comment_page', '', PARAM_INT);
     self::$comment_area = optional_param('comment_area', '', PARAM_ALPHAEXT);
     $PAGE->requires->string_for_js('addcomment', 'moodle');
     $PAGE->requires->string_for_js('deletecomment', 'moodle');
     $PAGE->requires->string_for_js('comments', 'moodle');
     $PAGE->requires->string_for_js('commentsrequirelogin', 'moodle');
 }
开发者ID:nfreear,项目名称:moodle,代码行数:17,代码来源:lib.php


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