src/Api/DocModel.php
public function getShapeDocs($shapeName, $parentName, $ref)
    {
        if (!isset($this->docs['shapes'][$shapeName])) {
            return '';
        }

        $result = '';
        $d = $this->docs['shapes'][$shapeName];
        if (isset($d['refs']["{$parentName}\$${ref}"])) {
            $result = $d['refs']["{$parentName}\$${ref}"];
        } elseif (isset($d['base'])) {
            $result = $d['base'];
        }

        if (isset($d['append'])) {
            $result .= $d['append'];
        }

        return $this->clean($result);
    }
public function getShapeDocs($shapeName, $parentName, $ref)
    {
        if (!isset($this->docs['shapes'][$shapeName])) {
            return '';
        }

        $result = '';
        $d = $this->docs['shapes'][$shapeName];
        if (isset($d['refs']["{$parentName}\$${ref}"])) {
            $result = $d['refs']["{$parentName}\$${ref}"];
        } elseif (isset($d['base'])) {
            $result = $d['base'];
        }

        if (isset($d['append'])) {
            $result .= $d['append'];
        }

        return $this->clean($result);
    }
public function getShapeDocs ( $ shapeName , $ parentName , $ ref ) { if ( ! isset ( $ this -> docs [ 'shapes' ] [ $ shapeName ] ) ) { return '' ; } $ result = '' ; $ d = $ this -> docs [ 'shapes' ] [ $ shapeName ] ; if ( isset ( $ d [ 'refs' ] [ "{$parentName}\$${ref}" ] ) ) { $ result = $ d [ 'refs' ] [ "{$parentName}\$${ref}" ] ; } elseif ( isset ( $ d [ 'base' ] ) ) { $ result = $ d [ 'base' ] ; } if ( isset ( $ d [ 'append' ] ) ) { $ result .= $ d [ 'append' ] ; } return $ this -> clean ( $ result ) ; }
Retrieves documentation about a shape, specific to the context.

@param string $shapeName  Name of the shape.
@param string $parentName Name of the parent/context shape.
@param string $ref        Name used by the context to reference the shape.

@return null|string
Retrieves documentation about a shape specific to the context .