当前位置: 首页>>代码示例>>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;未经允许,请勿转载。