WordPress File wp-includes/post.php

get_pages()

Retrieve an array of pages (or hierarchical post type items).

get_post()

Retrieves post data given a post ID or post object.