Файл: base-sys/base/components/console_button.php
Строк: 36
<?php
class BASE_CMP_ConsoleButton extends PEEP_Component
{
protected $consoleItem;
public function __construct( $label, $url = 'javascript://', $onClick = '' )
{
parent::__construct();
$this->assign('label', $label);
$this->assign('href', $url);
$this->assign('onClick', $onClick);
$this->consoleItem = new BASE_CMP_ConsoleItem();
$this->addClass('peep_console_button');
}
public function addClass( $class )
{
$this->consoleItem->addClass($class);
}
public function render()
{
$this->consoleItem->setControl(parent::render());
return $this->consoleItem->render();
}
}