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


PHP Domain::A方法代码示例

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


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

示例1: getHTML

 function getHTML($id)
 {
     $gui = new HTMLGUI();
     $gui->VersionCheck("mWebsite");
     $Dom = new anyC();
     $Dom->setCollectionOf("Domain");
     $U = new mUserdata();
     $U = $U->getUDValue("selectedDomain");
     if ($U == null) {
         $html = "\n\t\t\t<ul>";
         while ($d = $Dom->getNextEntry()) {
             $html .= "\n\t\t\t\t<li>" . $d->A("title") . "</li>";
         }
         $html .= "\n\t\t\t</ul>";
         return $html;
     }
     $D = new Domain($U);
     $html = "\n\t\t<script type=\"text/javascript\">Website.init();</script>";
     $html .= "\n\t\t\t<div style=\"border-left-width:1px;border-left-style:solid;padding-left:10px;\" class=\"borderColor1\">\n\t\t\t<p>\n\t\t\t\t<b>" . $D->A("title") . "</b>\n\t\t\t</p>\n\t\t\t<ul style=\"list-style-image:none;list-style-type:none;\" >\n\t\t\t\t<li><img style=\"float:left;margin-right:10px;\" src=\"./images/i2/new.gif\" onclick=\"contentManager.newClassButton('Navigation','');\" class=\"mouseoverFade\"/> Neues Menüelement erstellen</li>\n\t\t\t</ul>" . $this->getNav(0, $U) . "</div>";
     $html .= "\n\t\t<script type=\"text/javascript\">Website.start();</script>";
     return $html;
 }
开发者ID:nemiah,项目名称:projectMankind,代码行数:22,代码来源:mWebsiteGUI.class.php

示例2: getList

 private function getList($pid, $SeiteID, $DomainID)
 {
     $html = "";
     $Dom = new Domain($DomainID);
     $multiLang = false;
     try {
         $test = new MultiLanguage(-1);
         $userLang = CCMultiLanguage::getUserLanguage();
         if ($userLang != null and $userLang->getID() != null and $userLang->getID() != $Dom->A("DomainDefaultSpracheID")) {
             $multiLang = true;
         }
     } catch (ClassNotFoundException $e) {
     }
     while ($C = $this->getNextEntry()) {
         if ($multiLang) {
             $mL = MultiLanguage::getTranslation($userLang->getID(), "Navigation", $C->getID(), "name");
             if ($mL == null) {
                 continue;
             }
             $C->changeA("name", $mL);
         }
         $CA = $C->getA();
         if ($this->domainURL == "") {
             $D = new Domain($C->A("DomainID"));
             $this->domainURL = $D->getA()->url;
             if ($this->domainURL == "") {
                 $this->domainURL = "none";
             }
         }
         $sub = new mNavigationGUI();
         $sub->addOrderV3("sort", "ASC");
         $sub->addAssocV3("parentID", "=", $C->getID());
         $sub->addAssocV3("t1.DomainID", "=", $DomainID);
         $sub->addAssocV3("hidden", "=", "0");
         $sub->addJoinV3("Template", "activeTemplateID", "=", "TemplateID");
         $sub->addJoinV3(" Template", "inactiveTemplateID", "=", "TemplateID");
         $sub->addJoinV3("Seite", "SeiteID", "=", "SeiteID");
         $sub->setFieldsV3(array("t2.html as activeHTML", "t3.html as inactiveHTML", "t1.name", "t1.DomainID", "t1.SeiteID", "linkURL", "linkType", "displaySub", "t4.permalink", "httpsLink"));
         $sub->lCV3();
         $sub->subNavigation($this->isSubNavigation, $this->isSubNavigationRoot);
         $subOpened = new mNavigation();
         $subOpened->addAssocV3("parentID", "=", $C->getID());
         $subOpened->addAssocV3("SeiteID", "=", $SeiteID);
         $subOpened->lCV3();
         if ($CA->linkType == "separator") {
             $html .= "<div class=\"separator\">" . $CA->name . "</div>";
         }
         /*.= "
         			<li class=\"hld\" style=\"cursor:pointer;\" onclick=\"dd('naviul_".$C->getID()."');\"><img id=\"naviul_".$C->getID()."Img\" class=\"sslico\" src=\"./$this->domainURL/images/dd.gif\" title=\"Menü ausklappen\" />".$CA->name."</li>";
         		*/
         $rootDomain = "http" . ($CA->httpsLink == "1" ? "s" : "") . "://{$_SERVER['HTTP_HOST']}";
         if ($this->isSubNavigationRoot != null) {
             $rootDomain = $this->isSubNavigationRoot;
         }
         if ($CA->linkType == "cmsPage") {
             if (!isset($CA->permalink) or $CA->permalink == "") {
                 $link = "{$rootDomain}/index.php?p=" . $CA->SeiteID . "" . (isset($_GET["d"]) ? "&d={$_GET['d']}" : "") . "";
             } else {
                 $link = $rootDomain . "/" . ($this->isSubNavigation ? "" : $Dom->A("permalinkPrefix")) . $CA->permalink;
             }
             $html .= ($CA->SeiteID == $SeiteID or $subOpened->numLoaded() > 0) ? str_replace("%%%LINK%%%", "<a href=\"{$link}\">" . $CA->name . "</a>", $CA->activeHTML) : str_replace("%%%LINK%%%", "<a href=\"{$link}\">" . $CA->name . "</a>", $CA->inactiveHTML);
             #if(!isset($CA->permalink) OR $CA->permalink == "")
             $html = str_replace("%%%URL%%%", "?p=" . $CA->SeiteID . "" . (isset($_GET["d"]) ? "&d={$_GET['d']}" : "") . "", $html);
             #else
             #	$html = str_replace("%%%URL%%%", "page-".$CA->permalink, $html);
             $html = str_replace("%%%TEXT%%%", $CA->name, $html);
         }
         if ($CA->linkType == "url") {
             $html .= str_replace("%%%LINK%%%", "<a href=\"" . $CA->linkURL . "\">" . $CA->name . "</a>", $CA->inactiveHTML);
             #"<li class=\"hl\"><a href=\"".$CA->linkURL."\">".$CA->name."</a></li>";
             $html = str_replace("%%%URL%%%", $CA->linkURL, $html);
             $html = str_replace("%%%TEXT%%%", $CA->name, $html);
         }
         if ($CA->linkType == "HTML") {
             $html .= str_replace("%%%LINK%%%", "<a href=\"" . $CA->linkURL . "\">" . $CA->name . "</a>", $CA->activeHTML);
             #"<li class=\"hl\"><a href=\"".$CA->linkURL."\">".$CA->name."</a></li>";
             $html = str_replace("%%%URL%%%", $CA->linkURL, $html);
             $html = str_replace("%%%TEXT%%%", $CA->name, $html);
         }
         if ($sub->numLoaded() > 0) {
             if ($C->A("displaySub") == "1" or $subOpened->numLoaded() > 0 or $C->A("SeiteID") == $SeiteID) {
                 if ($Dom->A("horizontalNav") == "0") {
                     $html .= "<div class=\"subcategory\">" . $sub->getCMSHTML($C->getID(), $SeiteID, $DomainID) . "</div>";
                 } else {
                     $this->horizontalNav .= "<div class=\"subcategory\">" . $sub->getCMSHTML($C->getID(), $SeiteID, $DomainID) . "</div>";
                 }
             }
         }
     }
     return $html;
 }
开发者ID:nemiah,项目名称:projectMankind,代码行数:91,代码来源:mNavigationGUI.class.php

示例3: getCMSHTML

 public function getCMSHTML($startseite = 0, $DomainID = null)
 {
     $this->loadMe();
     try {
         $test = new MultiLanguage(-1);
         $Dom = new Domain($DomainID);
         $contentLanguage = $Dom->A("DomainDefaultSpracheID");
         $userLang = CCMultiLanguage::getUserLanguage();
         if ($userLang != null and $userLang->getID() != null and $userLang->getID() != $Dom->A("DomainDefaultSpracheID")) {
             $contentLanguage = $userLang->getID();
             $mL = MultiLanguage::getTranslation($userLang->getID(), "Seite", $this->getID(), "header");
             if ($mL != null) {
                 $this->changeA("header", $mL);
             }
         }
     } catch (ClassNotFoundException $e) {
     }
     try {
         new Tracker(-1);
         Tracker::trackUser($this->ID, $this->A->DomainID, "page");
         Tracker::trackPage($this->ID, $this->A->DomainID);
     } catch (ClassNotFoundException $e) {
     }
     $Template = new Template($this->A->TemplateID);
     $html = $Template->getA()->html;
     $html = str_replace("%%%HEADER%%%", $this->A("header"), $html);
     $html = str_replace("%%%DOMAIN%%%", strtolower($_SERVER["HTTP_HOST"]), $html);
     $html = SeiteGUI::replaceFunctionCalls($html, $this);
     $Contents = new mContentGUI();
     $Contents->addOrderV3("sort", "ASC");
     $Contents->addAssocV3("SeiteID", "=", $this->ID);
     $Contents->addAssocV3("ContentSpracheID", "=", "0", "AND", "2");
     if (isset($contentLanguage)) {
         $Contents->addAssocV3("ContentSpracheID", "=", $contentLanguage, "OR", "2");
     }
     $Contents->lCV3();
     $content = "";
     while ($C = $Contents->getNextEntry()) {
         $CGUI = $C->getGUIClass();
         $content .= $CGUI->getCMSHTML($this);
     }
     if (!isset($_GET["contentOnly"])) {
         $html = str_replace("%%%CONTENT%%%", $content, $html);
     } else {
         $html = $content;
     }
     if ($Contents->numLoaded() == 0) {
         $nS = new SeiteGUI($startseite);
     }
     return $Contents->numLoaded() != 0 ? $html : $nS->getCMSHTML();
 }
开发者ID:nemiah,项目名称:projectMankind,代码行数:51,代码来源:SeiteGUI.class.php


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