Exemplo n.º 1
0
 public static function getSettings()
 {
     $ret = parent::getSettings();
     $ret['generators']['domain'] = array('class' => 'Kwc_Root_DomainRoot_Generator', 'component' => 'Kwc_Root_DomainRoot_Domain_Component', 'model' => 'Kwc_Root_DomainRoot_Model');
     $ret['flags']['hasAvailableLanguages'] = true;
     return $ret;
 }
Exemplo n.º 2
0
 public static function getSettings()
 {
     $ret = parent::getSettings();
     $ret['generators']['form'] = array('class' => 'Kwf_Component_Generator_Page_Static', 'name' => 'form', 'component' => 'Kwc_FormWizard_WizardFormPost_Component');
     $ret['generators']['form2'] = array('class' => 'Kwf_Component_Generator_Page_Static', 'name' => 'form2', 'component' => 'Kwc_FormWizard_WizardFormAjax_Component');
     return $ret;
 }
Exemplo n.º 3
0
 public static function getSettings()
 {
     $ret = parent::getSettings();
     $ret['generators']['category'] = array('class' => 'Kwc_Root_CategoryGenerator', 'component' => 'Kwc_Root_Category_Component', 'model' => 'Kwc_Root_CategoryModel');
     $ret['flags']['hasHome'] = true;
     return $ret;
 }
Exemplo n.º 4
0
 public static function getSettings()
 {
     $ret = parent::getSettings();
     $ret['generators']['page1'] = array('class' => 'Kwf_Component_Generator_Page_Static', 'component' => 'Kwc_Basic_Image_DprImage_ImageComponent');
     $ret['generators']['page2'] = array('class' => 'Kwf_Component_Generator_Page_Static', 'component' => 'Kwc_Basic_Image_DprImage_ImageComponent');
     return $ret;
 }
Exemplo n.º 5
0
 public static function getSettings()
 {
     $ret = parent::getSettings();
     $ret['generators']['form'] = array('class' => 'Kwf_Component_Generator_Page_Static', 'name' => 'form', 'component' => 'Kwc_FormCards_Form_Component');
     $ret['generators']['formradio'] = array('class' => 'Kwf_Component_Generator_Page_Static', 'component' => 'Kwc_FormCards_FormRadio_Component');
     return $ret;
 }
Exemplo n.º 6
0
 public static function getChildPageByPath($component, $path, $acceptLanguage)
 {
     if ($path == '') {
         return self::getChildDataByAcceptLanguage($component, $acceptLanguage);
     } else {
         return parent::getChildPageByPath($component, $path);
     }
 }
Exemplo n.º 7
0
 public static function getSettings()
 {
     $ret = parent::getSettings();
     $ret['generators']['form'] = array('class' => 'Kwf_Component_Generator_Page_Static', 'name' => 'form', 'component' => 'Kwc_FormDynamic_Basic_Form_Component');
     $ret['generators']['form2'] = array('class' => 'Kwf_Component_Generator_Page_Static', 'name' => 'form2', 'component' => 'Kwc_FormDynamic_Basic_Form_Component');
     $ret['generators']['form3'] = array('class' => 'Kwf_Component_Generator_Page_Static', 'name' => 'form3', 'component' => 'Kwc_FormDynamic_Basic_Form_Component');
     return $ret;
 }
Exemplo n.º 8
0
 public static function getSettings()
 {
     $ret = parent::getSettings();
     unset($ret['generators']['title']);
     unset($ret['generators']['box']);
     $ret['generators']['test'] = array('class' => 'Kwf_Component_Generator_Page_Static', 'component' => 'Kwf_Component_Cache_DynamicWithPartialId_TestComponent_Component', 'name' => 'test');
     return $ret;
 }
Exemplo n.º 9
0
 public static function getSettings()
 {
     $ret = parent::getSettings();
     unset($ret['generators']['title']);
     unset($ret['generators']['box']);
     $ret['generators']['master'] = array('class' => 'Kwc_Chained_Abstract_MasterGenerator', 'component' => 'Kwc_Cc_PageTree_Master_Component');
     $ret['generators']['slave'] = array('class' => 'Kwc_Chained_Trl_ChainedGenerator', 'component' => 'Kwc_Cc_PageTree_Slave_Component.Kwc_Cc_PageTree_Master_Component', 'filenameColumn' => 'filename', 'nameColumn' => 'name', 'uniqueFilename' => true);
     $ret['childModel'] = new Kwc_Trl_RootModel(array('master' => 'master', 'slave' => 'slave'));
     return $ret;
 }
Exemplo n.º 10
0
 public static function getSettings()
 {
     $ret = parent::getSettings();
     unset($ret['generators']['box']);
     unset($ret['generators']['title']);
     $ret['childModel'] = new Kwf_Model_FnF(array('toStringField' => 'name', 'data' => array(array('id' => 'de', 'filename' => 'de', 'name' => 'de', 'master' => true), array('id' => 'en', 'filename' => 'en', 'name' => 'en', 'master' => false))));
     $ret['generators']['de'] = array('class' => 'Kwc_Chained_Trl_MasterGenerator', 'component' => 'Kwc_Trl_InheritContentWithVisible_German', 'name' => 'de');
     $ret['generators']['en'] = array('class' => 'Kwc_Chained_Trl_ChainedGenerator', 'component' => 'Kwc_Trl_InheritContentWithVisible_English.Kwc_Trl_InheritContentWithVisible_German', 'name' => 'en');
     return $ret;
 }
Exemplo n.º 11
0
 public static function getSettings()
 {
     $ret = parent::getSettings();
     unset($ret['generators']['box']);
     unset($ret['generators']['title']);
     $ret['contentWidth'] = 800;
     $ret['contentWidthBoxSubtract'] = array();
     $ret['generators']['page'] = array('class' => 'Kwf_Component_Generator_Page_Static', 'name' => 'page', 'component' => 'Kwf_Component_ContentWidth_Page_Component');
     return $ret;
 }
Exemplo n.º 12
0
 public static function getSettings($param = null)
 {
     $ret = parent::getSettings($param);
     unset($ret['generators']['box']);
     unset($ret['generators']['title']);
     $ret['generators']['box1'] = array('class' => 'Kwf_Component_Generator_Box_Static', 'component' => array('box1' => 'Kwf_Component_Cache_MasterHasContentBox_Box_Component'), 'inherit' => true);
     $ret['generators']['box2'] = array('class' => 'Kwf_Component_Generator_Box_Static', 'component' => array('box2' => 'Kwf_Component_Cache_MasterHasContentBox_Box_Component'), 'inherit' => true, 'unique' => true);
     $ret['generators']['page1'] = array('class' => 'Kwf_Component_Generator_Page_Static', 'component' => 'Kwc_Basic_Empty_Component', 'name' => 'page1');
     $ret['generators']['page2'] = array('class' => 'Kwf_Component_Generator_Page_Static', 'component' => 'Kwc_Basic_Empty_Component', 'name' => 'page2');
     return $ret;
 }
Exemplo n.º 13
0
 public static function getSettings()
 {
     $ret = parent::getSettings();
     unset($ret['generators']['title']);
     unset($ret['generators']['box']);
     $ret['contentWidth'] = 800;
     $ret['contentWidthBoxSubtract'] = array('testBox' => 100);
     $ret['generators']['page'] = array('class' => 'Kwf_Component_Generator_Page_Static', 'name' => 'page', 'component' => 'Kwf_Component_ContentWidthBox_Page_Component');
     $ret['generators']['pageWithEmptyBox'] = array('class' => 'Kwf_Component_Generator_Page_Static', 'name' => 'pageWithEmptyBox', 'component' => 'Kwf_Component_ContentWidthBox_PageWithEmptyBox_Component');
     $ret['generators']['testBox'] = array('component' => 'Kwf_Component_ContentWidthBox_Box_Component', 'class' => 'Kwf_Component_Generator_Box_Static', 'unique' => true, 'inherit' => true);
     return $ret;
 }
Exemplo n.º 14
0
 public function getPageByUrl($path, $acceptLangauge)
 {
     if ($path == '') {
         $ret = null;
         $lngs = array();
         foreach ($this->getData()->getChildComponents(array('generator' => 'language')) as $c) {
             $lngs[$c->id] = $c;
         }
         if (preg_match('#^([a-z]{2,3})#', $acceptLangauge, $m)) {
             if (isset($lngs[$m[1]])) {
                 $ret = $lngs[$m[1]];
             }
         }
         if (!$ret) {
             $ret = current($lngs);
         }
         return $ret->getChildPage(array('home' => true));
     }
     return parent::getPageByUrl($path, $acceptLangauge);
 }