FeaturePhp/Artifact/TracingLinkRenderer.php
private function analyzeTracingLink($tracingLink, $textOnly = false, $maxLen = 0) {
        $maxLen += strlen($this->defaultColor);
        
        if ($textOnly)
            return sprintf("$this->accentColor%-{$maxLen}s %s\n%{$maxLen}s %s\n",
                           $tracingLink->getFeatureName() . "$this->defaultColor " . $tracingLink->getType(),
                           $tracingLink->getSourcePlace()->getSummary(),
                           $this->defaultColor, $tracingLink->getTargetPlace()->getSummary());
        else
            return "<tr><td><span class='feature'>"
                . $tracingLink->getFeatureName()
                . "</span></td><td>" . $tracingLink->getType()
                . "</td><td>" . $tracingLink->getSourcePlace()->getSummary()
                . "</td><td>" . $tracingLink->getTargetPlace()->getSummary() . "</td></tr>";
    }
private function analyzeTracingLink($tracingLink, $textOnly = false, $maxLen = 0) {
        $maxLen += strlen($this->defaultColor);
        
        if ($textOnly)
            return sprintf("$this->accentColor%-{$maxLen}s %s\n%{$maxLen}s %s\n",
                           $tracingLink->getFeatureName() . "$this->defaultColor " . $tracingLink->getType(),
                           $tracingLink->getSourcePlace()->getSummary(),
                           $this->defaultColor, $tracingLink->getTargetPlace()->getSummary());
        else
            return "<tr><td><span class='feature'>"
                . $tracingLink->getFeatureName()
                . "</span></td><td>" . $tracingLink->getType()
                . "</td><td>" . $tracingLink->getSourcePlace()->getSummary()
                . "</td><td>" . $tracingLink->getTargetPlace()->getSummary() . "</td></tr>";
    }
private function analyzeTracingLink ( $ tracingLink , $ textOnly = false , $ maxLen = 0 ) { $ maxLen += strlen ( $ this -> defaultColor ) ; if ( $ textOnly ) return sprintf ( "$this->accentColor%-{$maxLen}s %s\n%{$maxLen}s %s\n" , $ tracingLink -> getFeatureName ( ) . "$this->defaultColor " . $ tracingLink -> getType ( ) , $ tracingLink -> getSourcePlace ( ) -> getSummary ( ) , $ this -> defaultColor , $ tracingLink -> getTargetPlace ( ) -> getSummary ( ) ) ; else return "<tr><td><span class='feature'>" . $ tracingLink -> getFeatureName ( ) . "</span></td><td>" . $ tracingLink -> getType ( ) . "</td><td>" . $ tracingLink -> getSourcePlace ( ) -> getSummary ( ) . "</td><td>" . $ tracingLink -> getTargetPlace ( ) -> getSummary ( ) . "</td></tr>" ; }
Analyzes a single tracing link.
@param TracingLink $tracingLink
@param bool $textOnly whether to render text or HTML
@param int $maxLen
@return string
Analyzes a single tracing link .