mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-19 07:52:16 +00:00
6th release
This commit is contained in:
@@ -875,6 +875,9 @@ class DropdownWidget extends Widget
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
class DropdownWidgetUDF extends DropdownWidget
|
||||
{
|
||||
/**
|
||||
@@ -907,6 +910,50 @@ class DropdownWidgetUDF extends DropdownWidget
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* It exends the Widget class to represent an HTML textarea
|
||||
*/
|
||||
class TextareaWidget extends Widget
|
||||
{
|
||||
const TEXT = 'text'; //
|
||||
const ROWS = 'rows'; //
|
||||
const COLS = 'cols'; //
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
protected function setText($text)
|
||||
{
|
||||
$this->_args[DropdownWidget::TEXT] = $text;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
protected function loadTextareaView()
|
||||
{
|
||||
$this->view('widgets/textarea', $this->_args);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
class TextareaWidgetUDF extends TextareaWidget
|
||||
{
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public function render($parameters)
|
||||
{
|
||||
$this->setText($parameters);
|
||||
|
||||
$this->loadTextareaView();
|
||||
|
||||
echo $this->content();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user