Библиотека для cis, online, cms1
This commit is contained in:
commit
3c2e614d87
269 changed files with 39854 additions and 0 deletions
36
core/widgets/dialog.php
Normal file
36
core/widgets/dialog.php
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
<?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);
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue