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


PHP WebPage::inst方法代码示例

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


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

示例1: basePageHref

function basePageHref($basePageCode, $image)
{
    $basePage = WebPage::inst($basePageCode);
    $sprites = CssSpritesManager::getDirSprite(CssSpritesManager::DIR_HEADER, $image, true);
    $href = $basePage->getHref($sprites . $basePage->getName());
    echo PsHtml::html2('li', array('class' => WebPages::getCurPage()->isMyBasePage($basePage) ? 'current' : null), $href);
}
开发者ID:ilivanoff,项目名称:www,代码行数:7,代码来源:function.header_links.php

示例2: __construct

 public function __construct($title, $showCover = true, $hrefOrPageCode = null, array $smartyParams = array(), $jsParams = null)
 {
     $this->title = $title;
     $this->cover = !!$showCover;
     $this->href = is_numeric($hrefOrPageCode) ? WebPage::inst($hrefOrPageCode)->getUrl() : $hrefOrPageCode;
     $this->smartyParams = $smartyParams;
     $this->jsParams = $jsParams;
 }
开发者ID:ilivanoff,项目名称:www,代码行数:8,代码来源:ClientBoxFilling.php

示例3: doProcess

 protected function doProcess(PageContext $ctxt, RequestArrayAdapter $requestParams, ArrayAdapter $buildParams)
 {
     $this->PPM = PopupPagesManager::inst();
     //Проверим, что в случае открытия popup страницы все параметры переданы корректно
     if (!$this->PPM->isValidPageRequested()) {
         WebPage::inst(PAGE_POPUP)->redirectHere();
     }
     $this->popupPage = $this->PPM->getCurPage();
     $this->popupPage->checkAccess();
     $this->popupPage->doProcess($requestParams);
 }
开发者ID:ilivanoff,项目名称:ps-sdk-dev,代码行数:11,代码来源:popup.php

示例4: smarty_block_page_href

function smarty_block_page_href($params, $content, Smarty_Internal_Template &$smarty)
{
    if (isEmpty($content)) {
        return;
    }
    $code = value_Array('code', $params);
    $code = $code ? $code : BASE_PAGE_INDEX;
    $sub = value_Array('sub', $params);
    $title = value_Array('title', $params);
    $classes = value_Array('class', $params);
    $blank = !isEmptyInArray('blank', $params);
    $http = !isEmptyInArray('http', $params);
    $urlParams = array();
    foreach ($params as $key => $val) {
        if (starts_with($key, 'p_')) {
            $urlParams[substr($key, 2)] = $val;
        }
    }
    $content = trim($content);
    $content = $content == '.' ? null : $content;
    return WebPage::inst($code)->getHref($content, $blank, $classes, $http, $urlParams, $sub, $title);
}
开发者ID:ilivanoff,项目名称:www,代码行数:22,代码来源:block.page_href.php

示例5: pageUrl

 public function pageUrl($page, array $getParams = null)
 {
     $getParams = to_array($getParams);
     $getParams[GET_PARAM_PAGE] = $this->getPage($page)->getPageIdent();
     return WebPage::inst(PAGE_ADMIN)->getUrl(false, $getParams);
 }
开发者ID:ilivanoff,项目名称:ps-sdk-dev,代码行数:6,代码来源:AdminPagesManager.php

示例6: getClientBoxFilling

 protected function getClientBoxFilling()
 {
     $page = WebPage::inst(PAGE_HELPUS);
     return new ClientBoxFilling($page->getName(), true, $page->getUrl());
 }
开发者ID:ilivanoff,项目名称:www,代码行数:5,代码来源:helpus.php

示例7: writeToUsHref

 public function writeToUsHref($content = 'Напишите нам', $blank = false, $http = false, $classes = 'write_to_us')
 {
     return WebPage::inst(BASE_PAGE_FEEDBACK)->getHref($content, $blank, $classes, $http, null, 'feed');
 }
开发者ID:ilivanoff,项目名称:www,代码行数:4,代码来源:FeedbackManager.php

示例8: getPostPage

 public function getPostPage()
 {
     return WebPage::inst(PAGE_LESSON);
 }
开发者ID:ilivanoff,项目名称:www,代码行数:4,代码来源:TrainManager.php

示例9: getPageUrl

 /**
  * Ссылки на popup-страницы
  */
 public function getPageUrl($page, array $params = array())
 {
     $ident = $page instanceof BasePopupPage ? $page->getIdent() : $page;
     $this->assertExistsEntity($ident);
     $params[POPUP_WINDOW_PARAM] = $ident;
     return WebPage::inst(PAGE_POPUP)->getUrl(false, $params);
 }
开发者ID:ilivanoff,项目名称:www,代码行数:10,代码来源:PopupPagesManager.php

示例10: getPostPage

 public function getPostPage()
 {
     return WebPage::inst(PAGE_ISSUE);
 }
开发者ID:ilivanoff,项目名称:www,代码行数:4,代码来源:MagManager.php

示例11: toArray

 /**
  * Преобразует элемент навигации в структуру, пригодную для разбора в javascript.
  * При этом преобразует как себя, так и дерево потомков.
  */
 public function toArray()
 {
     if ($this->pageCode !== null && !WebPage::inst($this->pageCode)->hasAccess()) {
         return null;
     }
     $data = $this->extraData;
     $data['href'] = $this->href;
     //$data['url'] = $this->url;
     //$data['name'] = $this->name;
     /* @var $child NavigationItem */
     foreach ($this->childsList as $child) {
         $item = $child->toArray();
         if ($item) {
             $data['chlist'][] = $item;
         }
     }
     if (array_key_exists('chlist', $data)) {
         $data['chname'] = $this->childsName;
     }
     return $data;
 }
开发者ID:ilivanoff,项目名称:www,代码行数:25,代码来源:NavigationItem.php

示例12: getPostPage

 public function getPostPage()
 {
     return WebPage::inst(PAGE_POST);
 }
开发者ID:ilivanoff,项目名称:www,代码行数:4,代码来源:BlogManager.php


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