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


PHP JHtmlBehavior::keepalive方法代码示例

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


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

示例1: testKeepalive

 /**
  * Tests the keepalive method.
  *
  * @return  void
  *
  * @since   3.1
  */
 public function testKeepalive()
 {
     JHtmlBehavior::keepalive();
     $this->assertEquals(array('JHtmlBehavior::keepalive' => true, 'JHtmlBehavior::core' => true, 'JHtmlBehavior::polyfill' => array(md5(serialize(array('event', 'lt IE 9'))) => true)), JHtmlBehaviorInspector::getLoaded(), 'The keepalive behavior is not loaded with all dependencies');
 }
开发者ID:eshiol,项目名称:joomla-cms,代码行数:12,代码来源:JHtmlBehaviorTest.php

示例2: defined

<?php

/**
 * Part of joomla330 project. 
 *
 * @copyright  Copyright (C) 2011 - 2014 SMS Taiwan, Inc. All rights reserved.
 * @license    GNU General Public License version 2 or later; see LICENSE
 */
// No direct access
defined('_JEXEC') or die;
JHtmlBehavior::formvalidation();
JHtmlBehavior::keepalive();
JHtmlBootstrap::tooltip();
$data = $this->data;
?>
<script type="text/javascript">
	Joomla.submitbutton = function(task)
	{
		if (task == 'user.cancel' || document.formvalidator.isValid(document.id('user-form'))) {
			Joomla.submitform(task, document.getElementById('user-form'));
		}
		else {
			alert('<?php 
echo $this->escape(JText::_('JGLOBAL_VALIDATION_FORM_FAILED'));
?>
');
		}
	}

	window.addEvent('domready', function(){
		$$('#toolbar-apply a').addClass('btn btn-primary');
开发者ID:ForAEdesWeb,项目名称:AEW3,代码行数:31,代码来源:edit.php

示例3: testKeepalive

 /**
  * Tests the keepalive method.
  *
  * @return  void
  *
  * @since   3.1
  */
 public function testKeepalive()
 {
     JHtmlBehavior::keepalive();
     $this->assertEquals(array('JHtmlBehavior::keepalive' => true), JHtmlBehaviorInspector::getLoaded(), 'The keepalive behavior is not loaded with all dependencies');
 }
开发者ID:joomla-projects,项目名称:media-manager-improvement,代码行数:12,代码来源:JHtmlBehaviorTest.php


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