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


PHP wfSetVar函數代碼示例

本文整理匯總了PHP中wfSetVar函數的典型用法代碼示例。如果您正苦於以下問題:PHP wfSetVar函數的具體用法?PHP wfSetVar怎麽用?PHP wfSetVar使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


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

示例1: setTOCEnabled

	function setTOCEnabled( $flag )      { return wfSetVar( $this->mTOCEnabled, $flag ); }
開發者ID:nahoj,項目名稱:mediawiki_ynh,代碼行數:1,代碼來源:ParserOutput.php

示例2: setLoaded

 /**
  * Set mDataLoaded, return previous value
  * Use this to prevent DB access in command-line scripts or similar situations
  */
 function setLoaded($loaded)
 {
     return wfSetVar($this->mDataLoaded, $loaded);
 }
開發者ID:k-hasan-19,項目名稱:wiki,代碼行數:8,代碼來源:User.php

示例3: setTimestamp

 function setTimestamp($x)
 {
     return wfSetVar($this->mTimestamp, $x);
 }
開發者ID:BackupTheBerlios,項目名稱:shoutwiki-svn,代碼行數:4,代碼來源:ParserOptions.php

示例4: setIsPrintable

 public function setIsPrintable($x)
 {
     return wfSetVar($this->mIsPrintable, $x);
 }
開發者ID:ErdemA,項目名稱:mediawiki,代碼行數:4,代碼來源:ParserOptions.php

示例5: Options

 /**
  * Accessor/mutator for the ParserOptions object
  *
  * @param $x ParserOptions New value or null to just get the current one
  * @return ParserOptions Current ParserOptions object
  */
 function Options($x = null)
 {
     return wfSetVar($this->mOptions, $x);
 }
開發者ID:Tarendai,項目名稱:spring-website,代碼行數:10,代碼來源:Parser.php

示例6: tablePrefix

	/**
	 * Get/set the table prefix.
	 * @param string $prefix The table prefix to set, or omitted to leave it unchanged.
	 * @return string The previous table prefix.
	 */
	public function tablePrefix( $prefix = null ) {
		return wfSetVar( $this->mTablePrefix, $prefix );
	}
開發者ID:nahoj,項目名稱:mediawiki_ynh,代碼行數:8,代碼來源:Database.php

示例7: setListed

 /**
  * Set whether this page is listed in Special:Specialpages, at run-time
  */
 function setListed($listed)
 {
     return wfSetVar($this->mListed, $listed);
 }
開發者ID:negabaro,項目名稱:alfresco,代碼行數:7,代碼來源:SpecialPage.php

示例8: setCacheTime

 /**
  * setCacheTime() sets the timestamp expressing when the page has been rendered.
  * This does not control expiry, see updateCacheExpiry() for that!
  * @param string $t
  * @return string
  */
 public function setCacheTime($t)
 {
     return wfSetVar($this->mCacheTime, $t);
 }
開發者ID:eliagbayani,項目名稱:LiteratureEditor,代碼行數:10,代碼來源:CacheTime.php

示例9: setTOCHTML

 function setTOCHTML($tochtml)
 {
     return wfSetVar($this->mTOCHTML, $tochtml);
 }
開發者ID:rocLv,項目名稱:conference,代碼行數:4,代碼來源:ParserOutput.php

示例10: setIndexPolicy

 function setIndexPolicy($policy)
 {
     return wfSetVar($this->mIndexPolicy, $policy);
 }
開發者ID:ruizrube,項目名稱:spdef,代碼行數:4,代碼來源:ParserOutput.php

示例11: setTitleText

 function setTitleText($t)
 {
     return wfSetVar($this->mTitleText, $t);
 }
開發者ID:Jobava,項目名稱:diacritice-meta-repo,代碼行數:4,代碼來源:ParserOutput.php

示例12: setShowItem

	/**
	 * Set whether the item the comment is about is to be printed.
	 */
	public function setShowItem( $value = true ) {
		return wfSetVar( $this->mShowItem, $value );
	}
開發者ID:realsoc,項目名稱:mediawiki-extensions,代碼行數:6,代碼來源:WikilogComment.php

示例13: prevents

 /**
  * Get/set whether the Block prevents a given action
  *
  * @param string $action Action to check
  * @param bool|null $x Value for set, or null to just get value
  * @return bool|null Null for unrecognized rights.
  */
 public function prevents($action, $x = null)
 {
     global $wgBlockDisablesLogin;
     $res = null;
     switch ($action) {
         case 'edit':
             # For now... <evil laugh>
             $res = true;
             break;
         case 'createaccount':
             $res = wfSetVar($this->mCreateAccount, $x);
             break;
         case 'sendemail':
             $res = wfSetVar($this->mBlockEmail, $x);
             break;
         case 'editownusertalk':
             $res = wfSetVar($this->mDisableUsertalk, $x);
             break;
         case 'read':
             $res = false;
             break;
     }
     if (!$res && $wgBlockDisablesLogin) {
         // If a block would disable login, then it should
         // prevent any action that all users cannot do
         $anon = new User();
         $res = $anon->isAllowed($action) ? $res : true;
     }
     return $res;
 }
開發者ID:paladox,項目名稱:mediawiki,代碼行數:37,代碼來源:Block.php

示例14: setExternalLinkTarget

 function setExternalLinkTarget($x)
 {
     return wfSetVar($this->mExternalLinkTarget, $x);
 }
開發者ID:amjadtbssm,項目名稱:website,代碼行數:4,代碼來源:ParserOptions.php

示例15: waitTimeout

 function waitTimeout($value = NULL)
 {
     return wfSetVar($this->mWaitTimeout, $value);
 }
開發者ID:ui-libraries,項目名稱:TIRW,代碼行數:4,代碼來源:LoadBalancer.php


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