Hoa central
Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
Hoa\Xyl\Interpreter\Html\Textarea Class Reference
Inheritance diagram for Hoa\Xyl\Interpreter\Html\Textarea:

Public Member Functions

 getForm ()
 
 isValid ($revalid=false, $value)
 
 setValue ($value)
 
- Public Member Functions inherited from Hoa\File\Generic
 getBasename ()
 
 getDirname ()
 
 getSize ()
 
 getStatistic ()
 
 getATime ()
 
 getCTime ()
 
 getMTime ()
 
 getGroup ()
 
 getOwner ()
 
 getPermissions ()
 
 getReadablePermissions ()
 
 isReadable ()
 
 isWritable ()
 
 isExecutable ()
 
 clearStatisticCache ()
 
 touch ($time=-1, $atime=-1)
 
 copy ($to, $force=Stream\IStream\Touchable::DO_NOT_OVERWRITE)
 
 move ($name, $force=Stream\IStream\Touchable::DO_NOT_OVERWRITE, $mkdir=Stream\IStream\Touchable::DO_NOT_MAKE_DIRECTORY)
 
 delete ()
 
 changeGroup ($group)
 
 changeMode ($mode)
 
 changeOwner ($user)
 
 isFile ()
 
 isLink ()
 
 isDirectory ()
 
 isSocket ()
 
 isFIFOPipe ()
 
 isCharacterSpecial ()
 
 isBlockSpecial ()
 
 isUnknown ()
 
 getMode ()
 
 getINode ()
 
 getRealPath ()
 
 getExtension ()
 
 getFilename ()
 
- Public Member Functions inherited from Hoa\Stream\Stream
 __construct ($streamName, $context=null, $wait=false)
 
 open ()
 
 close ()
 
 getStreamName ()
 
 getStreamContext ()
 
 _setStream ($stream)
 
 isOpened ()
 
 setStreamTimeout ($seconds, $microseconds=0)
 
 setStreamBlocking ($mode)
 
 setStreamBuffer ($buffer)
 
 disableStreamBuffer ()
 
 getStreamBufferSize ()
 
 getStreamWrapperName ()
 
 getStreamMetaData ()
 
 isBorrowing ()
 
 on ($listenerId, $callable)
 
 _notify ($ncode, $severity, $message, $code, $transferred, $max)
 
 __toString ()
 
 __destruct ()
 

Protected Member Functions

 paint (Stream\IStream\Out $out)
 
- Protected Member Functions inherited from Hoa\File\Generic
 setMode ($mode)
 
- Protected Member Functions inherited from Hoa\Stream\Stream
_open ($streamName, Context $context=null)
 
 _close ()
 
 getStream ()
 

Protected Attributes

 $_validity = null
 
 $_value = null
 
- Protected Attributes inherited from Hoa\File\Generic
 $_mode = null
 
- Protected Attributes inherited from Hoa\Stream\Stream
 $_bucket = []
 
 $_bufferSize = 8192
 
 $_streamName = null
 
 $_context = null
 
 $_hasBeenDiffered = false
 
 $_on = null
 
 $_borrowed = false
 

Static Protected Attributes

static $_attributes
 
static $_attributesMapping
 

Additional Inherited Members

- Static Public Member Functions inherited from Hoa\File\Generic
static clearAllStatisticCaches ()
 
static umask ($umask=null)
 
static isCaseSensitive ()
 
- Static Public Member Functions inherited from Hoa\Stream\Stream
static getStreamHandler ($streamName)
 
static _Hoa_Stream ()
 
- Public Attributes inherited from Hoa\Stream\Stream
const NAME = 0
 
const HANDLER = 1
 
const RESOURCE = 2
 
const CONTEXT = 3
 
- Public Attributes inherited from Hoa\Stream\IStream\Statable
const SIZE_UNDEFINED = -1
 
- Public Attributes inherited from Hoa\Stream\IStream\Touchable
const OVERWRITE = true
 
const DO_NOT_OVERWRITE = false
 
const MAKE_DIRECTORY = true
 
const DO_NOT_MAKE_DIRECTORY = false
 

Detailed Description

Class .

The <textarea> component.

Definition at line 49 of file Textarea.php.

Member Function Documentation

Hoa\Xyl\Interpreter\Html\Textarea::getForm ( )

Get form.

Returns

Definition at line 141 of file Textarea.php.

142  {
143  return Form::getMe($this);
144  }
static getMe(Concrete $element)
Definition: Form.php:592

Here is the call graph for this function:

Hoa\Xyl\Interpreter\Html\Textarea::isValid (   $revalid = false,
  $value 
)

Whether the input is valid or not.

Parameters
bool$revalidRe-valid or not.
mixed$valueValue to test.
Returns
bool

Definition at line 153 of file Textarea.php.

154  {
155  if (false === $revalid && null !== $this->_validity) {
156  return $this->_validity;
157  }
158 
159  $this->_validity = true;
160 
161  if ((null === $value || '' === $value) &&
162  true === $this->attributeExists('required')) {
163  $this->_validity = false;
164 
165  return Form::postValidation($this->_validity, $value, $this);
166  }
167 
168  if (true === $this->attributeExists('maxlength')) {
169  $maxlength = intval($this->readAttribute('maxlength'));
170 
171  if (mb_strlen($value) > $maxlength) {
172  $this->_validity = false;
173 
174  return Form::postValidation($this->_validity, $value, $this);
175  }
176  }
177 
178  if (true === $this->attributeExists('readonly')) {
179  $this->_validity = $value === $this->computeValue();
180 
181  return Form::postValidation($this->_validity, $value, $this);
182  }
183 
184  return Form::postValidation($this->_validity, $value, $this);
185  }
static postValidation($verdict, &$value, Concrete $element, $postVerification=true)
Definition: Form.php:447

Here is the call graph for this function:

Hoa\Xyl\Interpreter\Html\Textarea::paint ( Stream\IStream\Out  $out)
protected

Paint the element.

Parameters
\Hoa\Stream\IStream\Out$outOut stream.
Returns
void

Definition at line 119 of file Textarea.php.

120  {
121  $name = $this->getName();
122 
123  $out->writeAll('<' . $name . $this->readAttributesAsString() . '>');
124 
125  if (null === $this->_value) {
126  $this->computeValue($out);
127  } else {
128  $out->writeAll($this->_value);
129  }
130 
131  $out->writeAll('</' . $name . '>');
132 
133  return;
134  }
Hoa\Xyl\Interpreter\Html\Textarea::setValue (   $value)

Set value.

Parameters
mixed$valueValue.
Returns
string

Definition at line 193 of file Textarea.php.

194  {
195  $this->_value = $value;
196 
197  return;
198  }

Member Data Documentation

Hoa\Xyl\Interpreter\Html\Textarea::$_attributes
staticprotected
Initial value:
= [
'autocomplete' => parent::ATTRIBUTE_TYPE_NORMAL

Definition at line 56 of file Textarea.php.

Hoa\Xyl\Interpreter\Html\Textarea::$_attributesMapping
staticprotected
Initial value:
= [
'autocomplete',
'autofocus',
'cols',
'dirname',
'disabled',
'form',
'inputmode',
'maxlength',
'name',
'placeholder',
'readonly',
'required',
'rows',
'wrap'
]

Definition at line 80 of file Textarea.php.

Hoa\Xyl\Interpreter\Html\Textarea::$_validity = null
protected

Definition at line 102 of file Textarea.php.

Hoa\Xyl\Interpreter\Html\Textarea::$_value = null
protected

Definition at line 109 of file Textarea.php.


The documentation for this class was generated from the following file: