| PHP |
|---|
|
public function CollectionHTML(LJCCollectionBase $dataItems , LJCTextState $textState): string |
| PHP |
|---|
// Get Collection data table.
private static function GetCollectionTable(LJCTextState $textState)
{
$dataItems = new LJCAttributes();
$dataItems->Add("border", "1");
$dataItems->Add("cellspacing", "2");
$propertyNames = [
"Name",
"Value",
];
$ht = new LJCHTMLTable();
$ht->ColumnNames = $propertyNames;
$tb = new LJCTextBuilder();
$ht->TableAttribs = $tb->TableAttribs();
$result = $ht->CollectionHTML($dataItems, $textState
, $propertyNames);
}
|