public function getSiteMap($nb_site_map, $cascade = false)
    {
        $retval = null;

        $nb_site_map_id = nb_getMixedValue($nb_site_map, 'nb_site_map_id');
        if (is_numeric($nb_site_map_id) || nb_isValidGUID($nb_site_map_id)) {
            $retval = $this->nb_site_map_tree->getItem($nb_site_map_id);
        }

        return $retval;
    }
public function getSiteMap($nb_site_map, $cascade = false)
    {
        $retval = null;

        $nb_site_map_id = nb_getMixedValue($nb_site_map, 'nb_site_map_id');
        if (is_numeric($nb_site_map_id) || nb_isValidGUID($nb_site_map_id)) {
            $retval = $this->nb_site_map_tree->getItem($nb_site_map_id);
        }

        return $retval;
    }
public function getSiteMap ( $ nb_site_map , $ cascade = false ) { $ retval = null ; $ nb_site_map_id = nb_getMixedValue ( $ nb_site_map , 'nb_site_map_id' ) ; if ( is_numeric ( $ nb_site_map_id ) || nb_isValidGUID ( $ nb_site_map_id ) ) { $ retval = $ this -> nb_site_map_tree -> getItem ( $ nb_site_map_id ) ; } return $ retval ; }
Gets a Site Map instance, optionally looking for it in nested levels.
@param mixed $nb_site_map A CNabuDataObject inherited instance containing a field named nb_site_map_id
or an ID.
@param bool $cascade If true, the requested Site Map is searched exploring nested Site Maps.
@return null|CNabuSiteMap If a Site Map is found then returns the instance elsewhere returns null.
Gets a Site Map instance optionally looking for it in nested levels .