Class: dataReflectionDocComment

Attributes:
Inherits:
Implements:

Contents:

Introduction

Attention
Attention: No description has been provided for this class.

Meta Data

Attention
Attention: There is no meta data for this class.

Constants

There are no constants defined for this class.

Properties

Methods

Also See

Attention
Attention: There are no additional references for this class.

Class Syntax

In file D:\oblib-core\php\oblib\dataReflection\dataReflection.class.php between lines 234 and 273.

<?php
 
    
class dataReflectionDocComment extends dataSeries
    
{
        
        function 
__construct ($strDocComment)
        {
            
parent::__construct ('ReflectionDocComment''dataReflectionDocCommentParam');
            
            if (!
$strDocComment)
            {
                return;
            }
            
            
// Get rid of any prefixed spaces and asterixes
            
preg_match ('/^\/\*\*\r\s{0,}(.*)\s+\*\/$/misU'$strDocComment$arrDocComment);
            
$arrDocCommentLine preg_split ("/\n/"trim ($arrDocComment [1]));
            
            
$objCurrentParam $this->___Push (new dataReflectionDocCommentParam ('description'''));
            
            foreach (
$arrDocCommentLine as $strDocCommentLine)
            {
                
preg_match ('/^\s{0,}\*(.*)$/misU'$strDocCommentLine$arrLine);
                
                
$strLine trim ($arrLine [1]);
                
                if (
preg_match ('/^\@([\w\-]*)(.*)$/mis'$strLine$arrParamPair))
                {
                    
$strCurrentParam $arrParamPair [1];
                    
$strValue $arrParamPair [2];
                    
                    
$objCurrentParam $this->___Push (new dataReflectionDocCommentParam ($strCurrentParamtrim ($strValue)));
                }
                else
                {
                    
$objCurrentParam->___setValue (
                        
$objCurrentParam->___getValue () . "\n" $strLine
                    
);
                }
            }
        }
    }

?>