當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。