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

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 Attributes

 $_contentFlow = 2
 
 $_validity = 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
 
- 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 ()
 

Detailed Description

Class .

The <button> component.

Definition at line 47 of file Button.php.

Member Function Documentation

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

Get form.

Returns

Definition at line 121 of file Button.php.

122  {
123  return Form::getMe($this);
124  }
static getMe(Concrete $element)
Definition: Form.php:592

Here is the call graph for this function:

Hoa\Xyl\Interpreter\Html\Button::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 133 of file Button.php.

134  {
135  if (false === $revalid && null !== $this->_validity) {
136  return $this->_validity;
137  }
138 
139  $this->_validity = $value === $this->readAttribute('value');
140 
141  return Form::postValidation($this->_validity, $value, $this);
142  }
static postValidation($verdict, &$value, Concrete $element, $postVerification=true)
Definition: Form.php:447

Here is the call graph for this function:

Hoa\Xyl\Interpreter\Html\Button::setValue (   $value)

Set value.

Parameters
mixed$valueValue.
Returns
string

Definition at line 150 of file Button.php.

151  {
152  $this->writeAttribute('value', $value);
153 
154  return;
155  }

Member Data Documentation

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

Definition at line 54 of file Button.php.

Hoa\Xyl\Interpreter\Html\Button::$_attributesMapping
staticprotected
Initial value:
= [
'autofocus',
'async' => 'data-async'

Definition at line 79 of file Button.php.

Hoa\Xyl\Interpreter\Html\Button::$_contentFlow = 2
protected

Definition at line 105 of file Button.php.

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

Definition at line 112 of file Button.php.


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