renderers/BaseRenderer.php
public function createSubjectLink($subject, $title = null, $options = [])
    {
        if ($title === null) {
            if ($subject instanceof MethodDoc) {
                $title = $subject->name . '()';
            } else {
                $title = $subject->name;
            }
        }
        if (($type = $this->apiContext->getType($subject->definedBy)) === null) {
            return $subject->name;
        } else {
            $link = $this->generateApiUrl($type->name);
            if ($subject instanceof MethodDoc) {
                $link .= '#' . $subject->name . '()';
            } else {
                $link .= '#' . $subject->name;
            }
            $link .= '-detail';

            return $this->generateLink($title, $link, $options);
        }
    }
public function createSubjectLink($subject, $title = null, $options = [])
    {
        if ($title === null) {
            if ($subject instanceof MethodDoc) {
                $title = $subject->name . '()';
            } else {
                $title = $subject->name;
            }
        }
        if (($type = $this->apiContext->getType($subject->definedBy)) === null) {
            return $subject->name;
        } else {
            $link = $this->generateApiUrl($type->name);
            if ($subject instanceof MethodDoc) {
                $link .= '#' . $subject->name . '()';
            } else {
                $link .= '#' . $subject->name;
            }
            $link .= '-detail';

            return $this->generateLink($title, $link, $options);
        }
    }
public function createSubjectLink ( $ subject , $ title = null , $ options = [ ] ) { if ( $ title === null ) { if ( $ subject instanceof MethodDoc ) { $ title = $ subject -> name . '()' ; } else { $ title = $ subject -> name ; } } if ( ( $ type = $ this -> apiContext -> getType ( $ subject -> definedBy ) ) === null ) { return $ subject -> name ; } else { $ link = $ this -> generateApiUrl ( $ type -> name ) ; if ( $ subject instanceof MethodDoc ) { $ link .= '#' . $ subject -> name . '()' ; } else { $ link .= '#' . $ subject -> name ; } $ link .= '-detail' ; return $ this -> generateLink ( $ title , $ link , $ options ) ; } }
creates a link to a subject
@param PropertyDoc|MethodDoc|ConstDoc|EventDoc $subject
@param string $title
@param array $options additional HTML attributes for the link.
@return string
creates a link to a subject