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


PHP Div::updateId方法代码示例

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


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

示例1: render

 public function render()
 {
     $borderStyle = 'border-bottom-left-none';
     $mainPathDiv = new Div();
     $mainPathDiv->addStyleClass("main-path");
     if (array_key_exists(UrlParameters::PAGE_NAME, $_GET)) {
         $pageName = Utils::getFromGET(UrlParameters::PAGE_NAME);
         /*log::temp('path-link render 1');*/
         if (array_key_exists(UrlParameters::KEY, $_GET)) {
             /*log::temp('path-link render 2');*/
             $navKeys = new DBNavKeyType();
             if ($pageName == UrlParameters::PAGE__SINGLE_ITEM) {
                 /*log::temp('path-link render 3');*/
                 $div = new Div();
                 $div->addStyleClasses(array($borderStyle, "font_arial", "float_left", "path_link_item", "text_non_select", "cursor_pointer"));
                 $div->updateId("path_link");
                 $div->addAttribute(TagLabels::ON_CLICK, Utils::getWindowOnclickValue(URLBuilder::getPathLinkSingleItem()));
                 $div->addChild($navKeys->getNameByKey(Utils::getFromGET(UrlParameters::KEY)) . " стр. " . Utils::getFromGET(UrlParameters::PAGE));
                 $mainPathDiv->addChild($div);
                 $divContainer = new Div();
                 $divContainer->updateId('store_mode_container');
                 $div1 = new Div();
                 $div1->updateId('path_');
                 $divContainer->addChild($div1);
                 $div2 = new Div();
                 $div2->updateId('path__');
                 $divContainer->addChild($div2);
                 $mainPathDiv->addChild($divContainer);
             }
             echo $mainPathDiv->getHtml();
         }
     }
 }
开发者ID:gingerP,项目名称:shop,代码行数:33,代码来源:PathLinks.php

示例2: createBottomTreeDom

 private function createBottomTreeDom()
 {
     $mainDiv = new Div();
     $mainDiv->addStyleClass("bottom_panel");
     $div01 = new Div();
     $mainDiv->addChild($div01);
     $div01->addStyleClasses(["bottom_panel_window"]);
     $container = new Div();
     $container->addStyleClasses(["bottom_panel_item", "w-31p"]);
     $container->updateId("bottom_catalog_tree");
     $containerChild = new Div();
     $containerChild->addStyleClasses(["catalog"]);
     $container->addChild($containerChild);
     $div01->addChildList([$container]);
     $mainTitle = new A();
     $mainTitle->addChild("Каталог");
     $mainTitle->addAttribute("href", Labels::$TOP_NAVIGATION_LINKS["catalog"]);
     $mainTitle->addStyleClasses(["f-16", "title"]);
     $containerChild->addChild($mainTitle);
     $treeContainer = new Div();
     $treeContainer->addStyleClass("content");
     $containerChild->addChild($treeContainer);
     $this->treeProcessBottom($this->mainTree, $treeContainer);
     return $mainDiv;
 }
开发者ID:gingerP,项目名称:shop,代码行数:25,代码来源:BottomPanel.php

示例3: getMap

 private function getMap()
 {
     $mainTag = new Div();
     $mainTag->addStyleClass("map_viewport");
     $map = new Div();
     $map->updateId("google_map");
     return $mainTag->addChild($map);
 }
开发者ID:gingerP,项目名称:shop,代码行数:8,代码来源:ContactsPage.php

示例4: createTopNavigationLinks

 public function createTopNavigationLinks()
 {
     $topNavigationLinks = new TopNavigationLinks();
     $mainDiv = new Div();
     $mainDiv->addStyleClass("top_panel");
     $linkToHome = new A();
     $linkToHome->addAttribute("href", "/");
     $linkToHome->addStyleClass("logo");
     $backGround = new Div();
     $backGround->addStyleClass("top_panel_background");
     $div11 = new Div();
     $div11->addStyleClasses(array("top_bar", "border-round-7px"));
     $div111 = new Div();
     $div111->updateId("top_panel_fixed");
     $div111->addChildList([$backGround, $linkToHome]);
     //TagUtils::createShadow($div111);
     $div1111 = new Div();
     $div1111->addStyleClass("top_bar_relative");
     $mainDiv->addChildList([$div11->addChild($div111->addChild($div1111))]);
     $div1111->addChild($topNavigationLinks->getDOM());
     return $mainDiv;
 }
开发者ID:gingerP,项目名称:shop,代码行数:22,代码来源:APagesCreator.php


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