本文整理汇总了PHP中wfSetVar函数的典型用法代码示例。如果您正苦于以下问题:PHP wfSetVar函数的具体用法?PHP wfSetVar怎么用?PHP wfSetVar使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了wfSetVar函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setTOCEnabled
function setTOCEnabled( $flag ) { return wfSetVar( $this->mTOCEnabled, $flag ); }
示例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);
}
示例3: setTimestamp
function setTimestamp($x)
{
return wfSetVar($this->mTimestamp, $x);
}
示例4: setIsPrintable
public function setIsPrintable($x)
{
return wfSetVar($this->mIsPrintable, $x);
}
示例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);
}
示例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 );
}
示例7: setListed
/**
* Set whether this page is listed in Special:Specialpages, at run-time
*/
function setListed($listed)
{
return wfSetVar($this->mListed, $listed);
}
示例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);
}
示例9: setTOCHTML
function setTOCHTML($tochtml)
{
return wfSetVar($this->mTOCHTML, $tochtml);
}
示例10: setIndexPolicy
function setIndexPolicy($policy)
{
return wfSetVar($this->mIndexPolicy, $policy);
}
示例11: setTitleText
function setTitleText($t)
{
return wfSetVar($this->mTitleText, $t);
}
示例12: setShowItem
/**
* Set whether the item the comment is about is to be printed.
*/
public function setShowItem( $value = true ) {
return wfSetVar( $this->mShowItem, $value );
}
示例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;
}
示例14: setExternalLinkTarget
function setExternalLinkTarget($x)
{
return wfSetVar($this->mExternalLinkTarget, $x);
}
示例15: waitTimeout
function waitTimeout($value = NULL)
{
return wfSetVar($this->mWaitTimeout, $value);
}