forked from koala-framework/koala-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Component.php
35 lines (32 loc) · 1.31 KB
/
Component.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
class Kwc_List_ChildPages_Teaser_TeaserImage_Component extends Kwc_Abstract_Composite_Component
{
public static function getSettings()
{
$ret = parent::getSettings();
$ret['generators']['child']['component']['text'] =
'Kwc_List_ChildPages_Teaser_TeaserImage_Text_Component';
$ret['generators']['child']['component']['image'] =
'Kwc_List_ChildPages_Teaser_TeaserImage_Image_Component';
$ret['componentName'] = trlKwfStatic('Teaser image');
$ret['rootElementClass'] = 'kwfUp-webStandard';
$ret['ownModel'] = 'Kwc_List_ChildPages_Teaser_TeaserImage_Model';
$ret['throwHasContentChangedOnRowColumnsUpdate'] = 'visible';
$ret['headlineComponentLinkConfig'] = array();
$ret['readMoreComponentLinkConfig'] = array();
return $ret;
}
public function getTemplateVars()
{
$ret = parent::getTemplateVars();
$ret['readMoreLinktext'] = $this->getRow()->link_text;
$ret['headlineComponentLinkConfig'] = $this->_getSetting('headlineComponentLinkConfig');
$ret['readMoreComponentLinkConfig'] = $this->_getSetting('readMoreComponentLinkConfig');
return $ret;
}
public function hasContent()
{
if ($this->getRow()->visible) return true;
return false;
}
}