当前位置: 首页>>代码示例>>PHP>>正文


PHP Wikia::successmsg方法代码示例

本文整理汇总了PHP中Wikia::successmsg方法的典型用法代码示例。如果您正苦于以下问题:PHP Wikia::successmsg方法的具体用法?PHP Wikia::successmsg怎么用?PHP Wikia::successmsg使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Wikia的用法示例。


在下文中一共展示了Wikia::successmsg方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1:

?>
</a> <a href="<?php 
echo $emailChangeUrl;
?>
" class="wikia-button secondary">change email</a></dd>

	<dt>Email confirmation date</dt>
	<dd><?php 
echo $emailConfirmationDate;
?>
</dd>

	<dt>Subscription status</dt>
	<dd>
		<?php 
echo $emailSubscriptionStatus ? Wikia::successmsg('subscribed') : Wikia::errormsg('not subscribed');
?>
		<?php 
if (!$emailSubscriptionStatus) {
    ?>
<a href="<?php 
    echo $emailChangeSubscriptionUrl;
    ?>
" class="wikia-button secondary">re-subscribe</a><?php 
}
?>
	</dd>

	<dt>Last email delivery</dt>
	<dd><?php 
echo $emailLastDelivery;
开发者ID:Tjorriemorrie,项目名称:app,代码行数:31,代码来源:SpecialUserManagement_index.php

示例2: axWFactoryRemoveVariable

/**
 * axWFactoryRemoveVariable
 *
 * Ajax call, remove
 *
 * @access public
 * @author eloy@wikia
 *
 * @return string: json string with array of variables
 */
function axWFactoryRemoveVariable()
{
    global $wgUser, $wgRequest;
    $error = 0;
    $return = "";
    if (!$wgUser->isAllowed('wikifactory')) {
        $error++;
        $return = Wikia::errormsg("You are not allowed to change variable value");
    } else {
        $cv_id = $wgRequest->getVal('varId');
        $city_id = $wgRequest->getVal('cityid');
        $tag_name = $wgRequest->getVal('tagName');
        $tag_wiki_count = 0;
        $form_id = $wgRequest->getVal("formId", null);
        $reason = $wgRequest->getVal("reason", null);
        if (!WikiFactory::removeVarById($cv_id, $city_id, $reason)) {
            $error++;
            $return = Wikia::errormsg("Variable not removed because of problems with database. Try again.");
        } else {
            $return = Wikia::successmsg(" Value of variable was removed ");
            if (!empty($tag_name)) {
                // apply changes to all wikis with given tag
                $tagsQuery = new WikiFactoryTagsQuery($tag_name);
                foreach ($tagsQuery->doQuery() as $tagged_wiki_id) {
                    if (WikiFactory::removeVarByID($cv_id, $tagged_wiki_id)) {
                        $tag_wiki_count++;
                    }
                }
                $return .= Wikia::successmsg(" ({$tag_wiki_count} wikis affected)");
            }
        }
    }
    if (empty($form_id)) {
        $div_name = "wf-variable-parse";
    } else {
        $div_name = "wf-variable-parse-{$form_id}";
    }
    return json_encode(array("div-body" => $return, "is-error" => $error, "tag-name" => $tag_name, "tag-wikis" => $tag_wiki_count, "div-name" => $div_name));
}
开发者ID:schwarer2006,项目名称:wikia,代码行数:49,代码来源:SpecialWikiFactory_ajax.php

示例3: doUpdateDomains

 /**
  * doUpdateDomains
  *
  * Store changes connected with domains
  *
  * @access private
  * @author eloy@wikia
  *
  * @return mixed	info when change, null when not changed
  */
 private function doUpdateDomains(&$request)
 {
     $action = $request->getText("wpAction", null);
     $reason = $request->getText("wpReason", wfMsg('wikifactory-public-status-change-default-reason'));
     $message = "";
     switch ($action) {
         case "status":
             $status = $request->getVal("wpWikiStatus", 0);
             WikiFactory::setPublicStatus($status, $this->mWiki->city_id, $reason);
             $this->mWiki->city_public = $status;
             WikiFactory::clearCache($this->mWiki->city_id);
             $message = "Status of this wiki was changed to " . $this->mStatuses[$status];
         case "protect":
             $protect = $request->getCheck("wpProtected", false);
             if ($protect) {
                 $message = "Wiki protected";
                 WikiFactory::setFlags($this->mWiki->city_id, WikiFactory::FLAG_PROTECTED, false, $reason);
             } else {
                 $message = "Wiki un-protected";
                 WikiFactory::resetFlags($this->mWiki->city_id, WikiFactory::FLAG_PROTECTED, false, $reason);
             }
             break;
     }
     return Wikia::successmsg($message);
 }
开发者ID:Tjorriemorrie,项目名称:app,代码行数:35,代码来源:SpecialWikiFactory_body.php

示例4: wfMessage

print $returnURL;
?>
">Return</a><?php 
echo wfMessage('pipe-separator')->escaped() . $logLink;
?>
</small>
<?php 
if (!is_null($status)) {
    ?>
<fieldset>
	<legend><?php 
    echo wfMessage('editaccount-status')->escaped();
    ?>
</legend>
	<?php 
    echo $status ? Wikia::successmsg($statusMsg) : Wikia::errormsg($statusMsg);
    ?>
	<?php 
    if (!empty($statusMsg2)) {
        echo Wikia::errormsg($statusMsg2);
    }
    ?>
</fieldset>
<?php 
}
?>
<fieldset>
	<legend><?php 
echo wfMessage('editaccount-frame-account', $user)->escaped();
?>
</legend>
开发者ID:Tjorriemorrie,项目名称:app,代码行数:31,代码来源:displayuser.tmpl.php

示例5: doUpdateDomains

 /**
  * doUpdateDomains
  *
  * Store changes connected with domains
  *
  * @access private
  * @author eloy@wikia
  *
  * @return mixed	info when change, null when not changed
  */
 private function doUpdateDomains(&$request)
 {
     $action = $request->getText("wpAction", null);
     $reason = $request->getText("wpReason", wfMsg('wikifactory-public-status-change-default-reason'));
     $message = "";
     switch ($action) {
         case "status":
             $status = $request->getVal("wpWikiStatus", 0);
             WikiFactory::setPublicStatus($status, $this->mWiki->city_id, $reason);
             $this->mWiki->city_public = $status;
             WikiFactory::clearCache($this->mWiki->city_id);
             $message = "Status of this wiki was changed to " . $this->mStatuses[$status];
             break;
     }
     return Wikia::successmsg($message);
 }
开发者ID:schwarer2006,项目名称:wikia,代码行数:26,代码来源:SpecialWikiFactory_body.php


注:本文中的Wikia::successmsg方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。