mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-02 04:39:28 +00:00
26 lines
477 B
PHP
Executable File
26 lines
477 B
PHP
Executable File
<?php
|
|
|
|
/**
|
|
* It exends the Widget class to represent an HTML textarea
|
|
*/
|
|
class TextfieldWidget extends HTMLWidget
|
|
{
|
|
const VALUE = 'text'; // Text value
|
|
const SIZE = 'size'; // Size attribute
|
|
|
|
/**
|
|
* Set the text value
|
|
*/
|
|
protected function setValue($value)
|
|
{
|
|
$this->_args[TextfieldWidget::VALUE] = $value;
|
|
}
|
|
|
|
/**
|
|
* Loads the view that renders an input text
|
|
*/
|
|
protected function loadTextfieldView()
|
|
{
|
|
$this->view('widgets/textfield', $this->_args);
|
|
}
|
|
} |