39 lines
No EOL
727 B
PHP
39 lines
No EOL
727 B
PHP
<?php
|
|
|
|
require_once 'core/widgets/listtable.php';
|
|
|
|
/**
|
|
* Êëàññ äëÿ ãåíåðàöèè òàáëèöû
|
|
*/
|
|
class FileBrowser extends ListTable
|
|
{
|
|
private $friend;
|
|
public function setType($type)
|
|
{
|
|
$this->setData('type', $type);
|
|
}
|
|
|
|
function setHeader($header)
|
|
{
|
|
$this->setData('table', $header);
|
|
}
|
|
|
|
function setFriend(Widget $friend)
|
|
{
|
|
$this->friend = $friend->getName();
|
|
}
|
|
|
|
function getPostCode()
|
|
{
|
|
if ($this->friend) {
|
|
return $this->getName() . ".setFriend(" . $this->friend . ");";
|
|
}
|
|
return "";
|
|
}
|
|
|
|
function postMake() {
|
|
$this->view->addScriptRaw($this->getPostCode(), true); // CompositeView
|
|
}
|
|
}
|
|
|
|
?>
|