本文整理汇总了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");
}
}
示例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;
}
}
}
示例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");
}
}
示例4: FormPresentation
function FormPresentation(&$base)
{
$this->Presentation($base, "form");
$this->zebraForm = G::getSetting($this->typ, "zebraForm");
}
示例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));
}
示例6: DetailsPresentation
function DetailsPresentation(&$base)
{
$this->Presentation($base, "details");
$this->zebraDetails = G::getSetting($this->typ, "zebraDetails");
}