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


PHP G::getSetting方法代码示例

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


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

示例1: Presentation

 function Presentation(&$base, $what, $typ = 0)
 {
     global ${"gorum{$what}template"}, $gorumroll;
     $this->base =& $base;
     if ($typ) {
         $this->typ =& $typ;
     } else {
         $this->typ =& $base->getTypeInfo(TRUE);
     }
     if (isset($this->typ["{$gorumroll->list}: {$what}Template"])) {
         $this->template = $this->typ["{$gorumroll->list}: {$what}Template"];
     }
     if (isset($this->typ["{$gorumroll->method}: {$what}Template"])) {
         $this->template = $this->typ["{$gorumroll->method}: {$what}Template"];
     } elseif (isset($this->typ["{$what}Template"])) {
         $this->template = $this->typ["{$what}Template"];
     } else {
         $this->template = ${"gorum{$what}template"};
     }
     $this->innerBordersOnly = G::getSetting($this->typ, "innerBordersOnly");
     if ($this->innerBordersOnly) {
         // a szelso td-k kulso bordereit toroljuk:
         JavaScript::addOnload("\n            \$('.template > table').find('tbody tr:not(.noapply), tfoot tr').find('td:first, th:first').css('border-left', 'none').end().\n                                    find('td:last, th:last').css('border-right', 'none').end().\n                                    find('td.groupsep_v + td').css('border-left', 'none').end().\n                                    find('td.groupsep_v').prev().css('border-right', 'none').end().end().\n                                    slice(-1).find('td').css('border-bottom', 'none');\n        ", "innerBordersOnly");
     }
 }
开发者ID:alencarmo,项目名称:OCF,代码行数:25,代码来源:presentation.php

示例2: Filter

 function Filter(&$typ)
 {
     foreach (array('width', 'filterText', 'resetOnClick', 'enable') as $a) {
         $v = G::getSetting($typ, Filter::settingName, $a);
         if ($v !== NULL) {
             $this->{$a} = $v;
         }
     }
 }
开发者ID:alencarmo,项目名称:OCF,代码行数:9,代码来源:filter.php

示例3: ListPresentation

 function ListPresentation(&$base, $typ = 0)
 {
     global $gorumroll, $jQueryLib;
     $this->Presentation($base, "list", $typ);
     $this->tableSort = G::getSetting($this->typ, "clientSideTableSort");
     $this->tableFilter = G::getSetting($this->typ, "clientSideTableFilter", "enable");
     $this->tableRowHighlight = G::getSetting($this->typ, "tableRowHighlight");
     $this->zebraList = G::getSetting($this->typ, "zebraList");
     if ($this->tableSort || $this->tableFilter || $this->tableRowHighlight) {
         JavaScript::addInclude(GORUM_JS_DIR . $jQueryLib);
     }
     if ($this->tableSort || $this->tableFilter) {
         JavaScript::addInclude(GORUM_JS_DIR . "/jquery/tablesort.js");
         if ($this->tableFilter) {
             require_once GORUM_DIR . "/presentation/filter.php";
             $this->tableFilter =& new Filter($this->typ);
         }
     }
     if ($this->tableRowHighlight) {
         JavaScript::addInclude(GORUM_JS_DIR . "/jquery/tablehover.js");
     }
 }
开发者ID:alencarmo,项目名称:OCF,代码行数:22,代码来源:listpresentation.php

示例4: FormPresentation

 function FormPresentation(&$base)
 {
     $this->Presentation($base, "form");
     $this->zebraForm = G::getSetting($this->typ, "zebraForm");
 }
开发者ID:alencarmo,项目名称:OCF,代码行数:5,代码来源:formpresentation.php

示例5: showDetails

 function showDetails($whereFields = "", $withLoad = TRUE, $elementName = "")
 {
     global $gorumroll;
     if ($withLoad) {
         //A gorumroll->rollid-bol,vagy id, vagy name jon attol fuggoen,
         //hogy egyszeru showDetailsrol, vagy showUserLinkrol van-e szo:
         $this->{$whereFields} = $gorumroll->rollid;
         $ret = $this->load(array($whereFields));
         if ($ret == not_found_in_db) {
             return Roll::setInfoText("not_found_deleted");
         }
     }
     $detailsPresentationClassName = G::getSetting($this->getTypeInfo(TRUE), "detailsPresentationClassName");
     $temp =& new $detailsPresentationClassName($this);
     $view =& View::getContentView();
     return $temp->gener($view->addElement($elementName));
 }
开发者ID:alencarmo,项目名称:OCF,代码行数:17,代码来源:object.php

示例6: DetailsPresentation

 function DetailsPresentation(&$base)
 {
     $this->Presentation($base, "details");
     $this->zebraDetails = G::getSetting($this->typ, "zebraDetails");
 }
开发者ID:alencarmo,项目名称:OCF,代码行数:5,代码来源:detailspresentation.php


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