public static function buildLinksArray( array $linkArray )
    {
        $links = array();
        if ( is_array( $linkArray ) )
        {
            foreach ( $linkArray as $link )
            {
                $links[] = $link->href;
            }
        }

        return $links;
    }
public static function buildLinksArray( array $linkArray )
    {
        $links = array();
        if ( is_array( $linkArray ) )
        {
            foreach ( $linkArray as $link )
            {
                $links[] = $link->href;
            }
        }

        return $links;
    }
public static function buildLinksArray ( array $ linkArray ) { $ links = array ( ) ; if ( is_array ( $ linkArray ) ) { foreach ( $ linkArray as $ link ) { $ links [ ] = $ link -> href ; } } return $ links ; }
Helper function used for building a links array.

@param array $linkArray
@return array
Helper function used for building a links array .