/ LJCPHPCodeDoc / LJCDataManagerLib / LJCDataManager / PropertyNames


Syntax

PHP
public function PropertyNames(): array

Creates a PropertyNames list from the data definition.

Example

PHP
 // Creates a PropertyNames list from the data definition.
 private static function PropertyNames(LJCDataManager $manager)
 {
   // See constructor for how to create $manager.
   $methodName = "PropertyNames()";
   $propertyNames = $manager->PropertyNames();
 
   $result = "";
   foreach ($propertyNames as $propertyName)
   {
     if (strlen(trim($result)) > 0)
     {
       $result .= ",";
     }
     $result .= $propertyName;
   }
 
   // result:
   // ID,Name
 }

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