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

Public Member Functions

 getName ()
 
- 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 ()
 

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 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
 

Detailed Description

Class .

The <tab> component.

Definition at line 49 of file Tab.php.

Member Function Documentation

Hoa\Xyl\Interpreter\Html\Tab::getName ( )

Get component name.

Returns
string

Definition at line 104 of file Tab.php.

105  {
106  return 'li';
107  }

Here is the caller graph for this function:

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

Paint the element.

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

Definition at line 76 of file Tab.php.

77  {
78  $name = $this->getName();
79  $for = $this->abstract->readAttribute('for');
80  $selected = $this->abstract->readAttribute('aria-selected');
81 
82  if ('true' !== $selected) {
83  $selected = 'false';
84  }
85 
86  $this->writeAttribute('role', 'presentation');
87  $out->writeAll(
88  '<' . $name . $this->readAttributesAsString() . '>' .
89  '<a href="#' . $for . '" role="tab" aria-controls="' . $for . '" ' .
90  'aria-selected="' . $selected . '" tabindex="-1" ' .
91  'id="' . $for . '__tab">'
92  );
93  $this->computeValue($out);
94  $out->writeAll('</a></' . $name . '>');
95 
96  return;
97  }

Here is the call graph for this function:

Member Data Documentation

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

Definition at line 56 of file Tab.php.

Hoa\Xyl\Interpreter\Html\Tab::$_attributesMapping = []
staticprotected

Definition at line 66 of file Tab.php.


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