private function get_component_contexts($component) {

        if (empty($component)) {
            return $this->contexts;
        }

        $componentcontexts = array();
        foreach ($this->contexts as $key => $path) {
            if ($component == '' || $component === $key) {
                $componentcontexts[$key] = $path;
            }
        }

        return $componentcontexts;
    }
private function get_component_contexts($component) {

        if (empty($component)) {
            return $this->contexts;
        }

        $componentcontexts = array();
        foreach ($this->contexts as $key => $path) {
            if ($component == '' || $component === $key) {
                $componentcontexts[$key] = $path;
            }
        }

        return $componentcontexts;
    }
private function get_component_contexts ( $ component ) { if ( empty ( $ component ) ) { return $ this -> contexts ; } $ componentcontexts = array ( ) ; foreach ( $ this -> contexts as $ key => $ path ) { if ( $ component == '' || $ component === $ key ) { $ componentcontexts [ $ key ] = $ path ; } } return $ componentcontexts ; }
Get component contexts.

@param string $component component name.
@return array
Get component contexts .