public static function getSettings($param = null)
 {
     $ret = parent::getSettings($param);
     $ret['ownModel'] = new Kwf_Model_FnF(array('primaryKey' => 'component_id', 'data' => array(array('component_id' => 'foo-1-cards', 'component' => 'none'), array('component_id' => 'foo-2-cards', 'component' => 'card'))));
     $ret['generators']['child']['component'] = array('none' => 'Kwc_Basic_None_Component', 'card' => 'Kwf_Component_Generator_DbIdRecursiveChildComponents_Detail_Cards_Card_Component');
     return $ret;
 }
 public static function getSettings()
 {
     $ret = parent::getSettings();
     $ret['ownModel'] = 'Kwc_Cards_TestModel';
     $ret['generators']['child']['component'] = array('enlarge' => 'Kwc_Cards_Sub1_Component', 'none' => 'Kwc_Cards_Sub2_Component');
     return $ret;
 }
Beispiel #3
0
 public static function getSettings()
 {
     $ret = parent::getSettings();
     $ret['dataClass'] = 'Kwc_Basic_LinkTag_Data';
     $ret['componentName'] = trlKwfStatic('Link');
     $ret['componentIcon'] = 'page_link';
     $ret['default']['component'] = 'intern';
     $ret['extConfig'] = 'Kwf_Component_Abstract_ExtConfig_None';
     $ret['generators']['child']['component'] = array('intern' => 'Kwc_Basic_LinkTag_Intern_Component', 'extern' => 'Kwc_Basic_LinkTag_Extern_Component', 'mail' => 'Kwc_Basic_LinkTag_Mail_Component', 'download' => 'Kwc_Basic_DownloadTag_Component');
     $cc = Kwf_Registry::get('config')->kwc->childComponents;
     if (isset($cc->Kwc_Basic_LinkTag_Component)) {
         $ret['generators']['child']['component'] = array_merge($ret['generators']['child']['component'], $cc->Kwc_Basic_LinkTag_Component->toArray());
     }
     return $ret;
 }
 public static function getSettings($param = null)
 {
     $ret = parent::getSettings($param);
     $ret['dataClass'] = 'Kwc_Basic_LinkTag_Data';
     $ret['componentName'] = trlKwfStatic('Link');
     $ret['componentIcon'] = 'page_link';
     $ret['default']['component'] = 'intern';
     $ret['extConfig'] = 'Kwf_Component_Abstract_ExtConfig_None';
     $ret['generators']['child']['component'] = array('intern' => 'Kwc_Basic_LinkTag_Intern_Component', 'extern' => 'Kwc_Basic_LinkTag_Extern_Component', 'mail' => 'Kwc_Basic_LinkTag_Mail_Component', 'download' => 'Kwc_Basic_DownloadTag_Component');
     $ret['assetsAdmin']['files'][] = 'kwf/Kwc/Basic/LinkTag/ComboBox.js';
     $ret['flags']['noIndex'] = true;
     //don't include in sitemap.xml
     $cc = Kwf_Registry::get('config')->kwc->childComponents;
     if (isset($cc->Kwc_Basic_LinkTag_Component)) {
         $ret['generators']['child']['component'] = array_merge($ret['generators']['child']['component'], $cc->Kwc_Basic_LinkTag_Component->toArray());
     }
     return $ret;
 }