public function GetProperty($propName) { $propValue = $this->GetPropertyValue($propName); if (ac_utils::get_module('AdvancedContent')->GetPreference('use_advanced_pageoptions', 0)) { if (!$this->_inheritables) { $this->_inheritables =& ac_utils::GetInheritables($this->Id()); } if (!isset($this->_inheritables[$propName])) { return $propValue; } $inherit = false; if ($propName == 'feu_access') { $delim = strpos($propValue, ',') === FALSE ? ';' : ','; $propValue = ac_utils::CleanArray(explode($delim, $propValue)); if (in_array(-1, $propValue)) { $inherit = true; } } else { if ($propValue == -1) { $inherit = true; } } if ($inherit) { $propValue = $this->InheritParentProp($propName, $propValue); } if ($propName == 'feu_params' || $propName == 'custom_params') { $matches = array(); $result = preg_match_all(AC_BLOCK_PARAM_PATTERN, $propValue, $matches); $params1 = array(); $params2 = array(); for ($i = 0; $i < count($matches[1]); $i++) { if (startswith($matches[2][$i], '\'')) { $matches[2][$i] = trim($matches[2][$i], '\''); } else { if (startswith($matches[2][$i], '"')) { $matches[2][$i] = trim($matches[2][$i], '"'); } } $params1[$matches[1][$i]] = $matches[2][$i]; $params2[] = $matches[1][$i] . '=' . $matches[2][$i]; } $propValue = array($params1, $params2); } } return $propValue; }