/ LJCPHPCodeDoc / LJCTextBuilderLib / LJCTextBuilder / Attribs


Parameters
$className - The class attribute.
$id - The id attribute.

Returns

The common element attributes collection.

Syntax

PHP
public function Attribs(string $className = null, string $id = null)

Gets common element attributes.

Example

PHP
 // Root Method Begin
 $textState = new LJCTextState();
 
 $tb = new LJCTextBuilder($textState);
 
 // Example Method:
 $className = "className";
 $id = "id";
 $attribs = $tb->Attribs($className, $id);
 
 $result = $tb->GetAttribs($attribs, $textState);
 
 // result:
 //  id="id" class="className"

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.