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

Public Member Functions

 preExecute ()
 
 postExecute ()
 
 getLevel ()
 
- 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

 computeFor ()
 
- 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 = null
 

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

to components. Copyright © 2007-2015 Hoa community New BSD License

Definition at line 49 of file Heading.php.

Member Function Documentation

Hoa\Xyl\Interpreter\Html\Heading::computeFor ( )
protected

Compute .

Returns
void

Definition at line 94 of file Heading.php.

95  {
96  if (false === $this->abstract->attributeExists('for')) {
97  return;
98  }
99 
100  $tocs = $this->xpath(
101  '//__current_ns:tableofcontents[@id="' .
102  implode('" or @id="', $this->abstract->readAttributeAsList('for')) .
103  '"]'
104  );
105 
106  if (empty($tocs)) {
107  return;
108  }
109 
110  foreach ($tocs as $toc) {
111  $this->getConcreteElement($toc)->addHeading($this);
112  }
113 
114  return;
115  }

Here is the caller graph for this function:

Hoa\Xyl\Interpreter\Html\Heading::getLevel ( )

Get the heading level.

Returns
int

Definition at line 122 of file Heading.php.

123  {
124  return (int) substr($this->getName(), -1);
125  }
Hoa\Xyl\Interpreter\Html\Heading::postExecute ( )

Post-execute an element.

Returns
void

Implements Hoa\Xyl\Element\Executable.

Definition at line 84 of file Heading.php.

85  {
86  return;
87  }
Hoa\Xyl\Interpreter\Html\Heading::preExecute ( )

Pre-execute an element.

Returns
void

Implements Hoa\Xyl\Element\Executable.

Definition at line 72 of file Heading.php.

73  {
74  $this->computeFor();
75 
76  return;
77  }

Here is the call graph for this function:

Member Data Documentation

Hoa\Xyl\Interpreter\Html\Heading::$_attributes
staticprotected
Initial value:
= [
'for' => parent::ATTRIBUTE_TYPE_LIST
]

Definition at line 56 of file Heading.php.

Hoa\Xyl\Interpreter\Html\Heading::$_attributesMapping = null
staticprotected

Definition at line 65 of file Heading.php.


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