Xhgui_Profile::_getParents PHP 메소드

_getParents() 보호된 메소드

Get the parent methods for a given symbol.
protected _getParents ( string $symbol ) : array
$symbol string The name of the function/method to find parents for.
리턴 array List of parents
    protected function _getParents($symbol)
    {
        $parents = array();
        $current = $this->_collapsed[$symbol];
        foreach ($current['parents'] as $parent) {
            if (isset($this->_collapsed[$parent])) {
                $parents[] = array('function' => $parent) + $this->_collapsed[$parent];
            }
        }
        return $parents;
    }