Parameters
$htmlAttribs - The attributes collection.
$textState - The current text state values.
Returns
The attributes text.
Syntax
| PHP |
|
public function GetAttribs(?LJCAttributes $attribs, LJCTextState $textState)
|
Gets the attributes text.
Remarks
The returned text does not end with a new line. This allows for additions
after the text.
Begin, Create and End text will start with a new line if the builder text
already has a value.
Example
| PHP |
// Root Method Begin
$textState = new LJCTextState();
$tb = new LJCTextBuilder($textState);
$className = "className";
$id = "id";
$attribs = $tb->Attribs($className, $id);
// Example Method:
$result = $tb->GetAttribs($attribs, $textState);
// result:
// id="id" class="className"
|
Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.