forked from koala-framework/koala-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Component.php
23 lines (22 loc) · 773 Bytes
/
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
<?php
class Kwc_Composite_TextImageLink_Component extends Kwc_Abstract_Composite_Component
{
public static function getSettings()
{
$ret = parent::getSettings();
$ret['componentName'] = trlKwfStatic('Text Image Link');
$ret['ownModel'] = 'Kwc_Composite_TextImageLink_Model';
$ret['generators']['child']['component']['image'] = 'Kwc_Basic_Image_Component';
$ret['generators']['child']['component']['link'] = 'Kwc_Basic_LinkTag_Component';
$ret['default'] = array();
return $ret;
}
public function getTemplateVars()
{
$ret = parent::getTemplateVars();
$row = $this->_getRow();
$ret['title'] = $row->title;
$ret['teaser'] = $row->teaser;
return $ret;
}
}