public function get_add_page_type_links($previd) {
        global $OUTPUT;

        $links = array();

        foreach ($this->types as $key=>$type) {
            if ($link = $type->add_page_link($previd)) {
                $links[$key] = $link;
            }
        }

        return $links;
    }
public function get_add_page_type_links($previd) {
        global $OUTPUT;

        $links = array();

        foreach ($this->types as $key=>$type) {
            if ($link = $type->add_page_link($previd)) {
                $links[$key] = $link;
            }
        }

        return $links;
    }
public function get_add_page_type_links ( $ previd ) { global $ OUTPUT ; $ links = array ( ) ; foreach ( $ this -> types as $ key => $ type ) { if ( $ link = $ type -> add_page_link ( $ previd ) ) { $ links [ $ key ] = $ link ; } } return $ links ; }
Returns an array of links to use as add page links
@param int $previd The id of the previous page
@return array
Returns an array of links to use as add page links