Beispiel #1
0
 function _paramValue($section, $component)
 {
     $_components = $section . "_components";
     $_cats = $section . "_cats";
     $_enable_cats = $section . "_enable_cats";
     $_in_cats = $section . "_in_cats";
     $cat = AcesefUtility::get('category.param');
     if (!in_array($component, $this->AcesefConfig->{$_components})) {
         return 0;
     }
     if (AcesefUtility::getConfigState($this->attributes->params, $_enable_cats) && ($cat[$_cats . '_status'] == 0 && $cat['_flag'] == 1)) {
         return 0;
     }
     if (!AcesefUtility::getConfigState($this->attributes->params, $_in_cats) && $cat['_is_cat'] == 1) {
         return 0;
     }
     return 1;
 }