phplibrary/core/widgets/dialog.php
2016-07-14 16:29:26 +03:00

36 lines
No EOL
662 B
PHP

<?php
require_once 'core/widgets/widget.php';
/**
* Класс для создания диалоговых окон, типа поиска и настройки таблицы
*/
class Dialog extends Widget
{
protected $title;
protected $action;
private $friend;
function setFriend(Widget $friend)
{
$this->friend = $friend->getName();
}
function getPostCode()
{
return $this->getName() . ".setFriend(" . $this->friend . ");";
}
function setTitle($title)
{
$this->title = $title;
}
function setAction($action)
{
$this->action = forceUrl($action);
}
}
?>