/ LJCPHPCodeDoc / LJCHTMLLib / LJCHTML / GetBeginSelector


Parameters
$selectorName - The selector name.
$textState - The current text state values.

Returns

The style selector beginning.

Syntax

PHP
public static function GetBeginSelector(string $selectorName, LJCTextState $textState)

Gets beginning of style selector.

Example

PHP
 // Gets beginning of style selector.
 private static function GetBeginSelector()
 {
   // Root Method Begin
   $textState = new LJCTextState();
 
   // Example Method:
   // Starts the text with a newline if the builder already has text, param
   // allowNewLine = true and builder text does not end with a newline.
   // The text begins with the current indent string if param
   // addIndent = true.
   // Defaults: addIndent = true, allowNewLine = true.
   $result = LJCHTML::GetBeginSelector(".name", $textState);
 
   // result:
   // .name {
 }

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