Changeset View
Changeset View
Standalone View
Standalone View
branches/5.2.x/core/units/helpers/sections_helper.php
Show First 20 Lines • Show All 197 Lines • ▼ Show 20 Line(s) | |||||
$this->Tree[$section_name]['icon'] = 'help'; | $this->Tree[$section_name]['icon'] = 'help'; | ||||
$this->Tree[$section_name]['icon_module'] = 'core'; | $this->Tree[$section_name]['icon_module'] = 'core'; | ||||
} | } | ||||
} | } | ||||
$this->Application->HandleEvent(new kEvent('adm:OnAfterBuildTree')); | $this->Application->HandleEvent(new kEvent('adm:OnAfterBuildTree')); | ||||
if ( $this->Application->isCachingType(CACHING_TYPE_MEMORY) ) { | if ( $this->Application->isCachingType(CACHING_TYPE_MEMORY) ) { | ||||
$this->Application->setCache('master:sections_parsed', serialize($this->Tree)); | $this->Application->setCache('master:sections_parsed', serialize($this->Tree), 0); | ||||
} | } | ||||
else { | else { | ||||
$this->Application->setDBCache('sections_parsed', serialize($this->Tree)); | $this->Application->setDBCache('sections_parsed', serialize($this->Tree), 0); | ||||
} | } | ||||
} | } | ||||
function _processPrefixSections($prefix) | function _processPrefixSections($prefix) | ||||
{ | { | ||||
$config =& $this->Application->UnitConfigReader->configData[$prefix]; | $config =& $this->Application->UnitConfigReader->configData[$prefix]; | ||||
/** @var Array $sections */ | /** @var Array $sections */ | ||||
▲ Show 20 Lines • Show All 155 Lines • ▼ Show 20 Line(s) | |||||
$section_data =& $this->getSectionData($section_name); | $section_data =& $this->getSectionData($section_name); | ||||
if ($section_data && isset($section_data['perm_prefix'])) { | if ($section_data && isset($section_data['perm_prefix'])) { | ||||
// this section uses other section permissions | // this section uses other section permissions | ||||
$ret = $this->Application->getUnitOption($section_data['perm_prefix'].'.main', 'PermSection'); | $ret = $this->Application->getUnitOption($section_data['perm_prefix'].'.main', 'PermSection'); | ||||
} | } | ||||
return $ret; | return $ret; | ||||
} | } | ||||
} | } | ||||
No newline at end of file |