Xhgui_Profile::_getParents PHP Method

_getParents() protected method

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.
return 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;
    }