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


PHP Sigma::get方法代码示例

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


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

示例1: getFeedPage

 function getFeedPage()
 {
     if (isset($_GET['cmd']) && $_GET['cmd'] == "newsML") {
         $this->_showNewsML();
     } else {
         $this->showNews();
     }
     return $this->_objTpl->get();
 }
开发者ID:nahakiole,项目名称:cloudrexx,代码行数:9,代码来源:Feed.class.php

示例2: getPage

 /**
  * Set the backend page
  * @access public
  * @global object $objTemplate
  * @global array $_ARRAYLANG
  */
 function getPage()
 {
     global $objTemplate;
     \Permission::checkAccess(151, 'static');
     $_GET['act'] = isset($_GET['act']) ? $_GET['act'] : '';
     switch ($_GET['act']) {
         case 'settings':
             $this->settings();
             break;
         default:
             $this->setMotives();
     }
     $objTemplate->setVariable(array('CONTENT_OK_MESSAGE' => $this->strOkMessage, 'CONTENT_STATUS_MESSAGE' => $this->strErrMessage, 'ADMIN_CONTENT' => $this->_objTpl->get(), 'CONTENT_TITLE' => $this->_pageTitle));
     $this->act = $_REQUEST['act'];
     $this->setNavigation();
     return $this->_objTpl->get();
 }
开发者ID:nahakiole,项目名称:cloudrexx,代码行数:23,代码来源:EcardManager.class.php

示例3: getPage

 /**
  * Get content page
  * @access public
  */
 function getPage()
 {
     $_GET['cmd'] = isset($_GET['cmd']) ? $_GET['cmd'] : '';
     switch ($_GET['cmd']) {
         case 'preview':
             $this->preview();
             break;
         case 'send':
             $this->send();
             break;
         case 'show':
             $this->showEcard();
             break;
         default:
             //case '':
             $this->showEcards();
             break;
     }
     return $this->_objTpl->get();
 }
开发者ID:nahakiole,项目名称:cloudrexx,代码行数:24,代码来源:Ecard.class.php

示例4: renderOptionField

 /**
  * Render the option field in the backend.
  *
  * @param Sigma $template
  */
 public function renderOptionField($template)
 {
     $subTemplate = new Sigma();
     $subTemplate->loadTemplateFile($this->cx->getCodeBaseCoreModulePath() . '/TemplateEditor/View/Template/Backend/AreaOption.html');
     $subTemplate->setVariable('TEMPLATEEDITOR_OPTION_VALUE', $this->active ? 'checked' : '');
     $subTemplate->setVariable('TEMPLATEEDITOR_OPTION_NAME', $this->name);
     $subTemplate->setVariable('TEMPLATEEDITOR_OPTION_HUMAN_NAME', $this->humanName);
     $template->setVariable('TEMPLATEEDITOR_OPTION', $subTemplate->get());
     $template->setVariable('TEMPLATEEDITOR_OPTION_TYPE', 'area');
     $template->parse('option');
 }
开发者ID:hbdsklf,项目名称:LimeCMS,代码行数:16,代码来源:AreaOption.class.php

示例5: getJobsPage

 /**
  * Do the requested action
  * @return    string    parsed content
  */
 function getJobsPage()
 {
     global $objTemplate;
     if (!isset($_GET['act'])) {
         $_GET['act'] = '';
     }
     switch ($_GET['act']) {
         case 'add':
             $this->add();
             // $this->overview();
             break;
         case 'edit':
             $this->edit();
             break;
         case 'delete':
             $this->delete();
             $this->overview();
             break;
         case 'update':
             $this->update();
             $this->overview();
             break;
         case 'cat':
             $this->manageCategories();
             break;
         case 'loc':
             $this->manageLocations();
             break;
         case 'delcat':
             $this->deleteCat();
             $this->manageCategories();
             break;
         case 'delloc':
             $this->deleteLoc();
             $this->manageLocations();
             break;
         case 'changeStatus':
             $this->changeStatus();
             $this->overview();
             break;
         case 'settings':
             $this->settings();
             break;
         default:
             $this->overview();
     }
     $objTemplate->setVariable(array('CONTENT_TITLE' => $this->pageTitle, 'CONTENT_OK_MESSAGE' => $this->strOkMessage, 'CONTENT_STATUS_MESSAGE' => $this->strErrMessage, 'ADMIN_CONTENT' => $this->_objTpl->get()));
     $this->act = $_REQUEST['act'];
     $this->setNavigation();
 }
开发者ID:Cloudrexx,项目名称:cloudrexx,代码行数:54,代码来源:JobsManager.class.php

示例6: getPage

 /**
  * Reads $_GET['cmd'] and selects (depending on the value) an action
  */
 function getPage()
 {
     if (isset($_GET['act'])) {
         if ($_GET['act'] == "shadowbox") {
             $this->shadowbox();
         }
     }
     if (!isset($_GET['cmd'])) {
         $_GET['cmd'] = '';
     } else {
         $this->curCmd = $_GET['cmd'];
     }
     if (isset($_GET['cid'])) {
         $this->showCategory($_GET['cid']);
     } elseif (isset($_GET['id'])) {
         $this->showDetails($_GET['id']);
     } elseif ($this->curCmd == 'search') {
         $this->showSearch(isset($_POST['term']) ? contrexx_stripslashes($_POST['term']) : '');
     } else {
         $this->showCategoryOverview();
     }
     return $this->_objTpl->get();
 }
开发者ID:nahakiole,项目名称:cloudrexx,代码行数:26,代码来源:Data.class.php

示例7: renderOptionField

 /**
  * Render the option field in the backend.
  *
  * @param Sigma $template
  */
 public function renderOptionField($template)
 {
     global $_ARRAYLANG;
     $subTemplate = new Sigma();
     $subTemplate->loadTemplateFile($this->cx->getCodeBaseCoreModulePath() . '/TemplateEditor/View/Template/Backend/ColorOption.html');
     $subTemplate->setVariable('TEMPLATEEDITOR_OPTION_VALUE', $this->color);
     $subTemplate->setVariable('TEMPLATEEDITOR_OPTION_NAME', $this->name);
     $subTemplate->setVariable('TEMPLATEEDITOR_OPTION_HUMAN_NAME', $this->humanName);
     if ($this->choice) {
         $subTemplate->setVariable('TEMPLATEEDITOR_OPTION_CHOICE', json_encode($this->choice));
     }
     \ContrexxJavascript::getInstance()->setVariable(array('select' => $_ARRAYLANG['TXT_CORE_MODULE_TEMPLATEEDITOR_SELECT'], 'colorError' => $_ARRAYLANG['TXT_CORE_MODULE_TEMPLATEEDITOR_COLOR_WRONG_FORMAT'], 'cancel' => $_ARRAYLANG['TXT_CORE_MODULE_TEMPLATEEDITOR_CANCEL']), 'TemplateEditor');
     $template->setVariable('TEMPLATEEDITOR_OPTION', $subTemplate->get());
     $template->setVariable('TEMPLATEEDITOR_OPTION_TYPE', 'color');
     $template->parse('option');
 }
开发者ID:Cloudrexx,项目名称:cloudrexx,代码行数:21,代码来源:ColorOption.class.php

示例8: renderOptionField

 /**
  * Render the option field in the backend.
  *
  * @param Sigma $template
  */
 public function renderOptionField($template)
 {
     global $_ARRAYLANG;
     $subTemplate = new Sigma();
     $subTemplate->loadTemplateFile($this->cx->getCodeBaseCoreModulePath() . '/TemplateEditor/View/Template/Backend/ImageOption.html');
     $subTemplate->setGlobalVariable($_ARRAYLANG);
     $subTemplate->setVariable('TEMPLATEEDITOR_OPTION_VALUE', $this->url);
     $subTemplate->setVariable('TEMPLATEEDITOR_OPTION_NAME', $this->name);
     $subTemplate->setVariable('TEMPLATEEDITOR_OPTION_HUMAN_NAME', $this->humanName);
     $mediaBrowser = new MediaBrowser();
     $mediaBrowser->setOptions(array('views' => 'uploader,filebrowser', 'startView' => 'filebrowser'));
     $mediaBrowser->setCallback('callback_' . $this->name);
     $subTemplate->setVariable('MEDIABROWSER_BUTTON', $mediaBrowser->getXHtml($_ARRAYLANG['TXT_CORE_MODULE_TEMPLATEEDITOR_CHOOSE_PICTURE']));
     $template->setVariable('TEMPLATEEDITOR_OPTION', $subTemplate->get());
     $template->setVariable('TEMPLATEEDITOR_OPTION_TYPE', 'img');
     $template->parse('option');
 }
开发者ID:Niggu,项目名称:cloudrexx,代码行数:22,代码来源:ImageOption.class.php

示例9: getPage

 /**
  * Get content page
  * @access public
  */
 function getPage()
 {
     if (!isset($_GET['cmd'])) {
         $_GET['cmd'] = '';
     }
     if (isset($_GET['standalone']) && !empty($_GET['standalone'])) {
         $this->_showMap();
     } elseif (isset($_GET['img'])) {
         $this->_showImageViewer();
     } else {
         switch ($_GET['cmd']) {
             case 'map':
                 $this->_loadIFrame();
                 break;
             case 'quickSearch':
                 $this->_quickSearch();
                 break;
             case 'detailSearch':
                 $this->_detailSearch();
                 break;
             case 'immolist':
                 $this->_showImmoList();
                 break;
             case 'showmapoverview':
                 $this->_showMap();
                 break;
             case 'showObj':
                 $this->_showObject();
                 break;
             case 'interest':
                 $this->_showInterestForm();
                 break;
             case 'submitContact':
                 $this->_addContact();
                 break;
             case 'getPDF':
                 $this->_getPDF();
                 break;
             default:
                 $this->_showOverview();
         }
     }
     return $this->_objTpl->get();
 }
开发者ID:Cloudrexx,项目名称:cloudrexx,代码行数:48,代码来源:index.class.php

示例10: getFeedPage

 function getFeedPage()
 {
     global $_ARRAYLANG, $objTemplate;
     if (!isset($_GET['act'])) {
         $_GET['act'] = '';
     }
     switch ($_GET['act']) {
         case 'edit':
             $this->_objTpl->loadTemplateFile('module_feed_edit.html', true, true);
             $this->pageTitle = $_ARRAYLANG['TXT_FEED_EDIT_NEWS_FEED'];
             $this->showEdit();
             break;
         case 'category':
             $this->_objTpl->loadTemplateFile('module_feed_category.html', true, true);
             $this->pageTitle = $_ARRAYLANG['TXT_FEED_CATEGORIES'];
             $this->showCategory();
             break;
         case 'catedit':
             $this->_objTpl->loadTemplateFile('module_feed_category_edit.html', true, true);
             $this->pageTitle = $_ARRAYLANG['TXT_FEED_EDIT_CATEGORIES'];
             $this->showCatEdit();
             break;
         case 'newsML':
             $this->_objNewsML = new NewsML(true);
             $this->_showNewsML();
             break;
         case 'settings':
             $this->_objTpl->loadTemplateFile('module_feed_settings.html');
             $this->pageTitle = $_ARRAYLANG['TXT_FEED_SETTINGs'];
             $this->_showSettings();
             break;
         default:
             $this->_objTpl->loadTemplateFile('module_feed.html', true, true);
             $this->pageTitle = $_ARRAYLANG['TXT_FEED_NEWS_FEED'];
             $this->showNews();
     }
     $objTemplate->setVariable(array('CONTENT_TITLE' => $this->pageTitle, 'CONTENT_OK_MESSAGE' => isset($_SESSION['strOkMessage']) ? $_SESSION['strOkMessage'] : '', 'CONTENT_STATUS_MESSAGE' => isset($_SESSION['strErrMessage']) ? $_SESSION['strErrMessage'] : ''));
     unset($_SESSION['strOkMessage']);
     unset($_SESSION['strErrMessage']);
     $this->act = $_REQUEST['act'];
     $this->setNavigation();
     $objTemplate->setVariable('ADMIN_CONTENT', $this->_objTpl->get());
 }
开发者ID:Niggu,项目名称:cloudrexx,代码行数:43,代码来源:FeedManager.class.php

示例11: getPage

 function getPage()
 {
     global $objTemplate;
     if (!isset($_GET['act'])) {
         $_GET['act'] = '';
     }
     switch ($_GET['act']) {
         case 'save_form':
             $this->_saveForm();
             break;
         case 'product_edit':
             $this->_product_edit();
             break;
         case 'product_copy':
             $this->_product_copy();
             break;
         case 'products':
             $this->_products();
             break;
         case 'settings':
             $this->_settings();
             break;
         case 'order_edit':
             $this->_order_edit();
             break;
         case 'orders':
             $this->_orders();
             break;
         case 'detail':
             $this->_ProductDetail();
             break;
         case 'reservationproduct':
             $this->chooseReservationProduct();
             break;
         default:
             $this->_orders();
     }
     $this->objTemplate->setGlobalVariable('ASCMS_BACKEND_PATH', ASCMS_BACKEND_PATH);
     $objTemplate->setVariable(array('CONTENT_TITLE' => $this->_pageTitle, 'CONTENT_OK_MESSAGE' => $this->_strOkMessage, 'CONTENT_STATUS_MESSAGE' => $this->_strErrMessage, 'ADMIN_CONTENT' => $this->objTemplate->get()));
     $this->act = isset($_REQUEST['act']) ? $_REQUEST['act'] : '';
     $this->setNavigation();
 }
开发者ID:Niggu,项目名称:cloudrexx,代码行数:42,代码来源:EgovManager.class.php

示例12: renderOptionField

 /**
  * Render the option field in the backend.
  *
  * @param Sigma $template
  */
 public function renderOptionField($template)
 {
     global $_LANGID;
     $subTemplate = new Sigma();
     $subTemplate->loadTemplateFile($this->cx->getCodeBaseCoreModulePath() . '/TemplateEditor/View/Template/Backend/SelectOption.html');
     foreach ($this->choice as $value => $choice) {
         $subTemplate->setVariable('CHOICE_NAME', isset($choice[$_LANGID]) ? $choice[$_LANGID] : (isset($choice[2]) ? $choice[2] : $value));
         $subTemplate->setVariable('CHOICE_VALUE', $value);
         if ($value == $this->activeChoice) {
             $subTemplate->setVariable('CHOICE_ACTIVE', 'selected');
         }
         $subTemplate->parse('choices');
     }
     $subTemplate->setVariable('TEMPLATEEDITOR_OPTION_VALUE', $this->activeChoice);
     $subTemplate->setVariable('TEMPLATEEDITOR_OPTION_NAME', $this->name);
     $subTemplate->setVariable('TEMPLATEEDITOR_OPTION_HUMAN_NAME', $this->humanName);
     $template->setVariable('TEMPLATEEDITOR_OPTION', $subTemplate->get());
     $template->setVariable('TEMPLATEEDITOR_OPTION_TYPE', 'select');
     $template->parse('option');
 }
开发者ID:Cloudrexx,项目名称:cloudrexx,代码行数:25,代码来源:SelectOption.class.php

示例13: array

 /**
  * DEPRECATED and OBSOLETE. Use parse_products_blocks().
  *
  * Sets up a Product list in the given template string with all Products
  * taken from the Category with the given ID
  *
  * Changes the $_REQUEST array temporarily and calls
  * {@see view_product_overview()}, then restores the original request.
  * On failure, the empty string is returned.
  * @param   string      $content        The template string
  * @param   integer     $category_id    The Category ID
  * @return  string                      The filled template string
  *                                      on success, the empty string
  *                                      otherwise
  */
 static function get_products_block($content, $category_id)
 {
     global $objInit, $_ARRAYLANG;
     $_ARRAYLANG += $objInit->loadLanguageData('Shop');
     if (!\Cx\Core\Setting\Controller\Setting::init('Shop', 'config')) {
         return false;
     }
     $original_REQUEST =& $_REQUEST;
     self::$objTemplate = new \Cx\Core\Html\Sigma();
     self::$objTemplate->setTemplate($content);
     // You might add more parameters here!
     $_REQUEST = array('catId' => $category_id);
     $result = self::view_product_overview();
     $_REQUEST =& $original_REQUEST;
     if (!$result) {
         return '';
         // You might want the original $content back, maybe?
     }
     $content = self::$objTemplate->get();
     return $content;
 }
开发者ID:nahakiole,项目名称:cloudrexx,代码行数:36,代码来源:Shop.class.php

示例14: getPage

 /**
  * Reads $this->cmd and selects (depending on the value) an action
  *
  */
 public function getPage()
 {
     \Cx\Core\Csrf\Controller\Csrf::add_code();
     switch ($this->cmd) {
         case 'download_file':
             $this->download();
             exit;
             break;
         case 'delete_file':
             $this->deleteDownload();
             $this->overview();
             break;
         case 'delete_category':
             $this->deleteCategory();
             $this->overview();
             break;
         default:
             $this->overview();
             break;
     }
     $this->parseMessages();
     return $this->objTemplate->get();
 }
开发者ID:Cloudrexx,项目名称:cloudrexx,代码行数:27,代码来源:Downloads.class.php

示例15: preFinalize

 /**
  * @param Sigma $template
  */
 public function preFinalize(Sigma $template)
 {
     if (count($this->mediaBrowserInstances) == 0) {
         return;
     } else {
         global $_ARRAYLANG;
         /**
          * @var $init \InitCMS
          */
         $init = \Env::get('init');
         $init->loadLanguageData('MediaBrowser');
         foreach ($_ARRAYLANG as $key => $value) {
             if (preg_match("/TXT_FILEBROWSER_[A-Za-z0-9]+/", $key)) {
                 \ContrexxJavascript::getInstance()->setVariable($key, $value, 'mediabrowser');
             }
         }
         $thumbnailsTemplate = new Sigma();
         $thumbnailsTemplate->loadTemplateFile($this->cx->getCoreModuleFolderName() . '/MediaBrowser/View/Template/Thumbnails.html');
         $thumbnailsTemplate->setVariable('TXT_FILEBROWSER_THUMBNAIL_ORIGINAL_SIZE', sprintf($_ARRAYLANG['TXT_FILEBROWSER_THUMBNAIL_ORIGINAL_SIZE']));
         foreach (UploaderConfiguration::getInstance()->getThumbnails() as $thumbnail) {
             $thumbnailsTemplate->setVariable(array('THUMBNAIL_NAME' => sprintf($_ARRAYLANG['TXT_FILEBROWSER_THUMBNAIL_' . strtoupper($thumbnail['name']) . '_SIZE'], $thumbnail['size']), 'THUMBNAIL_ID' => $thumbnail['id'], 'THUMBNAIL_SIZE' => $thumbnail['size']));
             $thumbnailsTemplate->parse('thumbnails');
         }
         \ContrexxJavascript::getInstance()->setVariable('thumbnails_template', $thumbnailsTemplate->get(), 'mediabrowser');
         \JS::activate('mediabrowser');
         \JS::registerJS('core_modules/MediaBrowser/View/Script/mediabrowser.js');
     }
 }
开发者ID:nahakiole,项目名称:cloudrexx,代码行数:31,代码来源:ComponentController.class.php


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