/ LJCPHPCodeDoc / LJCIncludeLib / LJCInclude / SetComments


Parameters
$line - The code line.
$codeFileSpec - The Code File spec.

Syntax

PHP
public function SetComments(string $includeLine, string $codeFileSpec)

Sets the comments from the specified include file.

Example

PHP
 require_once "LJCIncludeLib.php";
 
 $includeFile = new LJCInclude();
 $line = "/// <include path='items/SetComment/*' file='Doc/LJCComments.xml'/>"
 $includeFile->SetComments($line, "SourceFile.php");
 foreach ($includeFile->Comments as $comment)
 {
   // Process each XML comment.
   // This code is included in the LJCComments->SetComment() method.
 }

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