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


PHP WebPage::That方法代码示例

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


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

示例1: Save

	function Save($editor)
	{
		$comment = $editor->Text;
		$editor->Leave();
		$this->Controls->Clear();
		$this->Controls->Add(new MarkupRegion($comment, 0, 0, '100%', '100%'));
		WebPage::That()->Controls->Add(new BlogComment())	
			->Layout = Layout::Relative;
	}
开发者ID:noloh,项目名称:TinyMCE,代码行数:9,代码来源:Example3.php

示例2: Track

 /**
  * Begins tracking this page, that is, reporting to Google servers activity associated with a particular account.
  * @param string $accountNumber This is a number given to you by Google that uniquely associates you with your account.
  */
 static function Track($accountNumber)
 {
     // URL to download Google Analytics API JavaScripts. Note that there is a http and a https version.
     $url = (isset($_SERVER['HTTPS']) ? 'https://ssl.' : 'http://www.') . 'google-analytics.com/ga.js';
     // Add those scripts.
     ClientScript::AddSource($url, false);
     // The code to report this use of the page to Google servers.
     ClientScript::RaceQueue(WebPage::That(), '_gat', "pageTracker = _gat._getTracker('{$accountNumber}');pageTracker._trackPageview();");
     // Report back to Google servers every time tokens are changed too.
     URL::SetTracker(new RaceClientEvent('pageTracker', 'pageTracker._trackPageview', URL::Tokens));
 }
开发者ID:noloh,项目名称:GoogleAnalytics,代码行数:15,代码来源:GoogleAnalytics.php

示例3: ContentSlider

	function ContentSlider($content=null, $left, $top, $width, $height)
	{
		parent::Panel($left, $top, $width, $height);
		WebPage::That()->CSSFiles->Add(GetRelativePath(getcwd(), dirname(__FILE__)) . '/Styles/default.css');
		$this->CSSClasses->Add('ContentSlider');
		$this->SlideHolder = new Panel(0, 0, '100%', '100%');
		$this->Slides = new Group();
		$this->Slides->Change = new ServerEvent($this, 'SlideContent');
		$this->SlideHolder->Controls->Add($this->Slides);
		if($content)
			$this->SetContent($content);
		$this->Controls->Add($this->SlideHolder);
		$this->SetPrevious();
		$this->SetNext();
	}
开发者ID:noloh,项目名称:ContentSlider,代码行数:15,代码来源:ContentSlider.php

示例4: Show

 /**
  * Do not call manually! Override of default Show(). Triggers when SyntaxHighlighter instance is initially shown.
  */
 function Show()
 {
     parent::Show();
     $relativePath = System::GetRelativePath(getcwd(), dirname(__FILE__));
     //Add Non-Minified Version of shCore.js for debugging
     //		ClientScript::AddSource($relativePath . '/src/shCore.js', false);
     ClientScript::AddSource($relativePath . '/scripts/shCore.js', false);
     ClientScript::AddSource($relativePath . '/scripts/shBrush' . $this->Language . '.js', false);
     WebPage::That()->CSSFiles->Add($relativePath . '/styles/shCore.css');
     WebPage::That()->CSSFiles->Add($relativePath . '/styles/shThemeDefault.css');
 }
开发者ID:noloh,项目名称:SyntaxHighlighter,代码行数:14,代码来源:SyntaxHighlighter.php

示例5: CreateToolbar

 /**
  * Create a new global Toolbar that can be used across all CKEditor instances.
  * 
  * After CreateToolbar() is used, you can then set your CKEditor instances to use your new toolbar via $object->Toolbar = $name;.
  * 
  * @param string $name
  * @param array|array(arrays) $strips
  */
 static function CreateToolbar($name, $strips)
 {
     ClientScript::RaceQueue(WebPage::That(), 'CKEDITOR.status == "loaded"', 'CKEDITOR.on("toolbar", function(e)' . '{CKEDITOR.config.toolbar_' . $name . '=' . ClientEvent::ClientFormat($strips) . ';});', null, false, Priority::High);
 }
开发者ID:noloh,项目名称:CKEditor,代码行数:12,代码来源:CKEditor.php

示例6: Show

 /**
  * Do not call manually! Override of default Show(). Triggers when FullCalendar instance is initially shown.
  */
 function Show()
 {
     parent::Show();
     $relativePath = System::GetRelativePath(getcwd(), dirname(__FILE__));
     //Add FullCalendar CSS
     WebPage::That()->CSSFiles->Add($relativePath . '/Vendor/' . self::$CalendarPath . '/fullcalendar/fullcalendar.css');
     //Add FullCalendar script files
     ClientScript::AddSource($relativePath . 'Vendor/' . self::$CalendarPath . '/jquery/' . 'jquery-1.7.2.min.js', false);
     ClientScript::AddSource($relativePath . 'Vendor/' . self::$CalendarPath . '/jquery/' . 'jquery-1.7.2.min.js', false);
     ClientScript::RaceAddSource('jQuery', $relativePath . 'Vendor/' . self::$CalendarPath . '/fullcalendar/' . 'fullcalendar.min.js');
     $this->Refresh(true);
 }
开发者ID:noloh,项目名称:FullCalendar,代码行数:15,代码来源:FullCalendar.php


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