當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Texy::__construct方法代碼示例

本文整理匯總了PHP中Texy::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP Texy::__construct方法的具體用法?PHP Texy::__construct怎麽用?PHP Texy::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Texy的用法示例。


在下文中一共展示了Texy::__construct方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __construct

 /**
  * Construct
  */
 public function __construct($baseUri)
 {
     parent::__construct();
     // output
     $this->setOutputMode(self::HTML5);
     $this->htmlOutputModule->removeOptional = false;
     self::$advertisingNotice = false;
     // headings
     $this->headingModule->balancing = TexyHeadingModule::FIXED;
     // phrases
     $this->allowed['phrase/ins'] = true;
     // ++inserted++
     $this->allowed['phrase/del'] = true;
     // --deleted--
     $this->allowed['phrase/sup'] = true;
     // ^^superscript^^
     $this->allowed['phrase/sub'] = true;
     // __subscript__
     $this->allowed['phrase/cite'] = true;
     // ~~cite~~
     $this->allowed['deprecated/codeswitch'] = true;
     // `=code
     // images
     $this->imageModule->fileRoot = WWW_DIR . "/files";
     $this->imageModule->root = $baseUri . "/files/";
     // flash, youtube.com, stream.cz, gravatar handlers
     $this->addHandler('image', array($this, 'youtubeHandler'));
     $this->addHandler('image', array($this, 'streamHandler'));
     $this->addHandler('image', array($this, 'flashHandler'));
     $this->addHandler("phrase", array($this, "netteLink"));
     $this->addHandler('image', array($this, 'gravatarHandler'));
 }
開發者ID:darkmoon32,項目名稱:Texyla,代碼行數:35,代碼來源:MyTexy.php

示例2:

 function __construct()
 {
     parent::__construct();
     // some configurations
     $this->alignClasses['left'] = 'left';
     $this->alignClasses['right'] = 'right';
 }
開發者ID:jiripudil,項目名稱:texy,代碼行數:7,代碼來源:mytexy.php

示例3: __construct

 public function __construct()
 {
     parent::__construct();
     // output
     $this->setOutputMode(self::HTML4_TRANSITIONAL);
     $this->htmlOutputModule->removeOptional = false;
     self::$advertisingNotice = false;
     // headings
     $this->headingModule->balancing = TexyHeadingModule::FIXED;
     // phrases
     $this->allowed['phrase/ins'] = true;
     // ++inserted++
     $this->allowed['phrase/del'] = true;
     // --deleted--
     $this->allowed['phrase/sup'] = true;
     // ^^superscript^^
     $this->allowed['phrase/sub'] = true;
     // __subscript__
     $this->allowed['phrase/cite'] = true;
     // ~~cite~~
     $this->allowed['deprecated/codeswitch'] = true;
     // `=code
     // images
     $this->imageModule->fileRoot = __DIR__ . "/images";
     $this->imageModule->root = "images/";
     // přidávání youtube.com, stream.cz videa, flash a gravatar
     $this->addHandler('image', array(__CLASS__, 'youtubeHandler'));
     $this->addHandler('image', array(__CLASS__, 'streamHandler'));
     $this->addHandler('image', array(__CLASS__, 'flashHandler'));
     $this->addHandler('image', array(__CLASS__, 'gravatarHandler'));
 }
開發者ID:darkmoon32,項目名稱:Texyla,代碼行數:31,代碼來源:AdminTexy.php

示例4: __construct

 public function __construct()
 {
     parent::__construct();
     // safe mode
     \TexyConfigurator::safeMode($this);
     // output
     $this->setOutputMode(self::HTML4_TRANSITIONAL);
     $this->htmlOutputModule->removeOptional = false;
     self::$advertisingNotice = false;
     $this->allowed['heading/surrounded'] = false;
     $this->allowed['heading/underlined'] = false;
     $this->allowed['link/definition'] = false;
     $this->allowed['image/definition'] = false;
     $this->mergeLines = false;
     $this->addHandler('phrase', array(__CLASS__, 'linkHandler'));
 }
開發者ID:janmarek,項目名稱:Neuron,代碼行數:16,代碼來源:SafeTexy.php

示例5: __construct

 public function __construct()
 {
     parent::__construct();
     // output
     $this->setOutputMode(self::HTML4_TRANSITIONAL);
     $this->htmlOutputModule->removeOptional = false;
     self::$advertisingNotice = false;
     // safe mode
     TexyConfigurator::safeMode($this);
     $this->allowed['heading/surrounded'] = false;
     $this->allowed['heading/underlined'] = false;
     $this->allowed['link/definition'] = false;
     $this->allowed['image/definition'] = false;
     // spojování textu v odstavcích po enteru
     $this->mergeLines = true;
     // přidání target="_blank" k odkazům
     // $this->addHandler('phrase', array(__CLASS__, 'addTargetHandler'));
 }
開發者ID:darkmoon32,項目名稱:Texyla,代碼行數:18,代碼來源:ForumTexy.php

示例6: __construct

 public function __construct()
 {
     parent::__construct();
     $this->cache = SS_Cache::factory('SS_Texy');
     $this->addHandler('script', array($this, 'scriptHandler'));
 }
開發者ID:helpfulrobot,項目名稱:jnv-silverstripe-texy,代碼行數:6,代碼來源:SS_Texy.php


注:本文中的Texy::__construct方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。