forked from koala-framework/koala-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Admin.php
29 lines (27 loc) · 803 Bytes
/
Admin.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
<?php
class Kwc_Basic_LinkTag_Admin extends Kwc_Admin
{
public function componentToString(Kwf_Component_Data $data)
{
$data = $data->getChildComponent('-child');
if (!$data) return '';
return Kwc_Admin::getInstance($data->componentClass)->componentToString($data);
}
public function gridColumns()
{
$ret = parent::gridColumns();
$ret['string']->setHeader(trlKwf('Link target'));
return $ret;
}
public function getPagePropertiesForm()
{
$ret = new Kwc_Basic_LinkTag_Form(null, $this->_class);
$fs = new Kwf_Form_Container_FieldSet(trlKwf('Link'));
foreach ($ret as $f) {
$ret->fields->remove($f);
$fs->add($f);
}
$ret->add($fs);
return $ret;
}
}