This is primarily an internal UserSpice function and is not generally used by developers.
<?php $pages = fetchAllPages();
dump($pages); ?>
dumps an array of page objects containing
id, page, title, private, re_auth for each page