BaseBlock
API reference › HTML Core › Element › BaseBlock
68 subclasses
UIAwesome\Html\Embedded\AudioUIAwesome\Html\Embedded\IframeUIAwesome\Html\Embedded\VideoUIAwesome\Html\Flow\DivUIAwesome\Html\Flow\MainUIAwesome\Html\Flow\PUIAwesome\Html\Flow\PreUIAwesome\Html\Form\AbstractChoiceListUIAwesome\Html\Form\DatalistUIAwesome\Html\Form\FieldsetUIAwesome\Html\Form\FormUIAwesome\Html\Form\LegendUIAwesome\Html\Form\OptgroupUIAwesome\Html\Form\OptionUIAwesome\Html\Form\SelectUIAwesome\Html\Form\TextAreaUIAwesome\Html\Heading\H1UIAwesome\Html\Heading\H2UIAwesome\Html\Heading\H3UIAwesome\Html\Heading\H4UIAwesome\Html\Heading\H5UIAwesome\Html\Heading\H6UIAwesome\Html\Heading\HGroupUIAwesome\Html\Interactive\DetailsUIAwesome\Html\Interactive\DialogUIAwesome\Html\Interactive\SummaryUIAwesome\Html\List\DdUIAwesome\Html\List\DlUIAwesome\Html\List\DtUIAwesome\Html\List\LiUIAwesome\Html\List\OlUIAwesome\Html\List\UlUIAwesome\Html\Metadata\NoScriptUIAwesome\Html\Metadata\ScriptUIAwesome\Html\Metadata\StyleUIAwesome\Html\Metadata\TemplateUIAwesome\Html\Metadata\TitleUIAwesome\Html\Root\BodyUIAwesome\Html\Root\FooterUIAwesome\Html\Root\HeadUIAwesome\Html\Root\HeaderUIAwesome\Html\Root\HtmlUIAwesome\Html\Sectioning\ArticleUIAwesome\Html\Sectioning\AsideUIAwesome\Html\Sectioning\NavUIAwesome\Html\Sectioning\SectionUIAwesome\Html\Table\CaptionUIAwesome\Html\Table\ColgroupUIAwesome\Html\Table\TableUIAwesome\Html\Table\TbodyUIAwesome\Html\Table\TdUIAwesome\Html\Table\TfootUIAwesome\Html\Table\ThUIAwesome\Html\Table\TheadUIAwesome\Html\Table\TrUIAwesome\Html\Svg\Base\BaseSvgUIAwesome\Html\Svg\ClipPathUIAwesome\Html\Svg\DefsUIAwesome\Html\Svg\FilterUIAwesome\Html\Svg\ForeignObjectUIAwesome\Html\Svg\GUIAwesome\Html\Svg\LinearGradientUIAwesome\Html\Svg\MarkerUIAwesome\Html\Svg\MaskUIAwesome\Html\Svg\PatternUIAwesome\Html\Svg\RadialGradientUIAwesome\Html\Svg\SymbolUIAwesome\Html\Svg\Text
Provides the base implementation for block HTML elements.
Subclasses return a BackedEnum tag and inherit attribute and content handling.
See also: https://developer.mozilla.org/en-US/docs/Glossary/Block-level_content..
Properties
Section titled “Properties”| Property | Type | Description | Defined by |
|---|---|---|---|
$attributes protected | mixed[] | HTML attributes array used by the implementing class. Default: []. | UIAwesome\ |
$content protected | string | Content string assigned to the element. Default: ''. | UIAwesome\ |
Methods
Section titled “Methods”Method details
Section titled “Method details”begin()
Section titled “begin() ”final public function begin(): stringStarts begin/end rendering for this instance.
Returns
string: Opening HTML tag string for the block element.
end()
Section titled “end() ”final public static function end(): stringEnds the most recent begin/end rendering block for the current class.
Returns
string: Rendered HTML tag string.
Throws
LogicException: if no matchingbegin()call is found.RuntimeException: if the tag class does not match the expected type.
getTag()
Section titled “getTag() ”abstract protected function getTag(): BackedEnumReturns the tag instance representing the block element.
Returns
BackedEnum: Tag instance for the block element.
isBeginExecuted()
Section titled “isBeginExecuted() ”protected function isBeginExecuted(): boolIndicates whether this instance has an open or closing operation in the current context.
Returns
bool
run()
Section titled “run() ”protected function run(): stringRenders the block element.
Returns
string: Rendered HTML for the block element.
runBegin()
Section titled “runBegin() ”protected function runBegin(): stringReturns the opening tag for begin/end rendering.
Returns
string: Opening HTML tag for the block element.