Пример #1
0
 public static function getSettings($categoryComponentClass = 'Kwc_Root_Category_Component')
 {
     $ret = parent::getSettings($categoryComponentClass);
     $ret['ownModel'] = 'Kwf_Component_FieldModel';
     $pageGenerator = Kwc_Chained_Cc_Component::createChainedGenerator($categoryComponentClass, 'page');
     $ret['generators']['target'] = $pageGenerator;
     $ret['generators']['target']['class'] = 'Kwc_Chained_CopyPages_TargetGenerator';
     $ret['generators']['target']['inherit'] = false;
     $ret['generators']['page'] = $pageGenerator;
     $ret['generators']['page']['class'] = 'Kwc_Chained_CopyTarget_PagesGenerator';
     $ret['flags']['hasAllChainedByMaster'] = true;
     return $ret;
 }
Пример #2
0
 public static function getSettings($includePageGenerator = 'Kwc_Root_Category_Component')
 {
     $ret = parent::getSettings();
     $ret['generators']['target'] = array('class' => 'Kwc_Chained_CopyTarget_TargetGenerator', 'component' => null);
     if ($includePageGenerator) {
         $pageGenerator = Kwc_Chained_Cc_Component::createChainedGenerator($includePageGenerator, 'page');
         if ($pageGenerator) {
             $ret['generators']['page'] = $pageGenerator;
             $ret['generators']['page']['class'] = 'Kwc_Chained_CopyTarget_PagesGenerator';
         }
     }
     $ret['flags']['hasAllChainedByMaster'] = true;
     return $ret;
 }