Initial commit
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
class Separator {
|
||||
public string $name;
|
||||
public array $params;
|
||||
public $content = "";
|
||||
|
||||
public function __construct($params = array())
|
||||
{
|
||||
$this->params = $params;
|
||||
}
|
||||
|
||||
public function set_content($content)
|
||||
{
|
||||
$this->content = $content;
|
||||
}
|
||||
|
||||
public function set_name($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
}
|
||||
public function render_edit()
|
||||
{
|
||||
global $b;
|
||||
$input_dom = new DOM("div");
|
||||
$input_dom->setAttribute("type", "text");
|
||||
$input_dom->setAttribute("class", "bive-separator");
|
||||
$input_dom->setAttribute("value", $b->get_view($this->content));
|
||||
$input_dom->view();
|
||||
}
|
||||
|
||||
public function render_value()
|
||||
{
|
||||
return $this->content;
|
||||
}
|
||||
|
||||
public function render_db_value()
|
||||
{
|
||||
return $this->content;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user