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


PHP Sites::getname方法代码示例

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


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

示例1: explode

<?php

$objecttype = $this->request->parameters['yg_type'];
$ygid = $this->request->parameters['yg_id'];
$refresh = $this->request->parameters['refresh'];
$data = explode('-', $ygid);
$object = $data[0];
$siteID = $data[1];
$icons = new Icons();
$siteMgr = new Sites();
$sitename = $siteMgr->getname($siteID);
$sites = $siteMgr->getList();
$user = new User(sUserMgr()->getCurrentUserID());
$tagMgr = new Tags();
$filetypeMgr = new Filetypes();
$userinfo = $user->get();
$userinfo['PROPS'] = $user->properties->getValues(sUserMgr()->getCurrentUserID());
switch ($objecttype) {
    case 'user':
        $no_traceline = true;
        $autosave = true;
        if ($object) {
            $currentUser = new User($object);
            $currentUserInfo = $currentUser->get();
            $password = $currentUserInfo['PASSWORD'];
            $object_properties = sUserMgr()->properties->getList('LISTORDER');
            $object_permissions = array();
            $object_permissions['RWRITE'] = sUsergroups()->permissions->check(sUserMgr()->getCurrentUserID(), 'RUSERS');
            if (sUserMgr()->getAnonymousID() == (int) $object) {
                $object_permissions['RWRITE'] = 0;
            }
开发者ID:nrueckmann,项目名称:yeager,代码行数:31,代码来源:properties.php

示例2: sCblockMgr

     $outgoing[$oc]["VIANAME"] = $cblockInfo["NAME"];
     $outgoing[$oc]["EMBEDDED"] = $cblockInfo["EMBEDDED"];
     $cop = sCblockMgr()->getParents($oref[$i]["CBID"]);
     array_pop($cop);
     $outgoing[$oc]["PARENTS"] = $cop;
     $viacnt = 0;
     $refcohash[$hash] = $oc;
 } else {
     $viacnt = count($outgoing[$refcohash[$hash]]["VIATARGETS"]);
 }
 if ($oref[$i]["TGTTYPE"] == REFTYPE_PAGE) {
     $lThePageMgr = new PageMgr($oref[$i]["TGTAID"]);
     $siteInfo = $siteMgr->get($oref[$i]["TGTAID"]);
     if ($siteInfo['ID'] == $oref[$i]["TGTAID"]) {
         $pr = $lThePageMgr->getParents($oref[$i]["TGTOID"]);
         $pr[count($pr) - 1][0]['NAME'] = $siteMgr->getname($oref[$i]["TGTAID"]);
         $outgoing[$refcohash[$hash]]["VIATARGETS"][$viacnt]["PARENTS"] = $pr;
         $refPage = $lThePageMgr->getPage($oref[$i]["TGTOID"]);
         if ($refPage) {
             $refPageVersion = $refPage->getPublishedVersion(true);
             //$refPage = $lThePageMgr->getPage($oref[$i]["TGTOID"], $refPageVersion);
             $refPage = $lThePageMgr->getPage($oref[$i]["TGTOID"]);
             $refinfo = $refPage->get();
             $refinfo['RWRITE'] = $refPage->permissions->checkInternal(sUserMgr()->getCurrentUserID(), $oref[$i]["TGTOID"], "RWRITE");
             $refinfo['RDELETE'] = $refPage->permissions->checkInternal(sUserMgr()->getCurrentUserID(), $oref[$i]["TGTOID"], "RWRITE");
             $outgoing[$refcohash[$hash]]["VIATARGETS"][$viacnt]["SITEID"] = $oref[$i]["TGTAID"];
             $iconData = getIconForPage($refinfo);
             $outgoing[$refcohash[$hash]]["VIATARGETS"][$viacnt]["ICON"] = $iconData['iconclass'];
             $outgoing[$refcohash[$hash]]["VIATARGETS"][$viacnt]["STYLE"] = $iconData['style'];
             $outgoing[$refcohash[$hash]]["VIATARGETS"][$viacnt]["HASCHANGED"] = $refinfo['HASCHANGED'];
             if ($refinfo["OBJECTID"] < 1) {
开发者ID:nrueckmann,项目名称:yeager,代码行数:31,代码来源:links.php


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