本文整理汇总了PHP中wfSetVar函数的典型用法代码示例。如果您正苦于以下问题:PHP wfSetVar函数的具体用法?PHP wfSetVar怎么用?PHP wfSetVar使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了wfSetVar函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
示例16: forUpdate
/**
* General accessor to get/set whether SELECT FOR UPDATE should be used
*/
function forUpdate($update = NULL)
{
return wfSetVar($this->mForUpdate, $update);
}
开发者ID:k-hasan-19,项目名称:wiki,代码行数:7,代码来源:LinkCache.php
示例17: scrollableCursor
/**
* Called in the installer and updater.
* Probably doesn't need to be called anywhere else in the codebase.
* @param bool|null $value
* @return bool|null
*/
public function scrollableCursor($value = null)
{
return wfSetVar($this->mScrollableCursor, $value);
}
开发者ID:biribogos,项目名称:wikihow-src,代码行数:10,代码来源:DatabaseMssql.php
示例18: errorCount
/**
* Number of errors logged, only useful when errors are ignored
*/
function errorCount($count = NULL)
{
return wfSetVar($this->mErrorCount, $count);
}
开发者ID:puring0815,项目名称:OpenKore,代码行数:7,代码来源:Database.php
示例19: prevents
/**
* Get/set whether the Block prevents a given action
* @param string $action
* @param bool $x
* @return bool
*/
public function prevents($action, $x = null)
{
switch ($action) {
case 'edit':
# For now... <evil laugh>
return true;
case 'createaccount':
return wfSetVar($this->mCreateAccount, $x);
case 'sendemail':
return wfSetVar($this->mBlockEmail, $x);
case 'editownusertalk':
return wfSetVar($this->mDisableUsertalk, $x);
default:
return null;
}
}
开发者ID:whysasse,项目名称:kmwiki,代码行数:22,代码来源:Block.php
示例20: forUpdate
/**
* Read/write accessor to select FOR UPDATE
*
* @param $x Mixed: FIXME
*/
function forUpdate($x = NULL)
{
return wfSetVar($this->mForUpdate, $x);
}
开发者ID:negabaro,项目名称:alfresco,代码行数:9,代码来源:Article.php
注:本文中的wfSetVar函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论