6th release

This commit is contained in:
Paolo
2017-05-04 15:08:39 +02:00
parent 0456c2c059
commit dcedac9617
2 changed files with 68 additions and 5 deletions
+47
View File
@@ -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();
}
}
/**
*
*/