comicpress-core/classes/ComicPressNavigation.inc

22 lines
459 B
PHP
Raw Normal View History

2009-10-18 21:59:40 +00:00
<?php
require_once('ComicPressStoryline.inc');
require_once('ComicPressDBInterface.inc');
2009-10-18 21:59:40 +00:00
class ComicPressNavigation {
function init($storyline) {
$this->_storyline = $storyline;
$this->_dbi = ComicPressDBInterface::get_instance();
}
function get_post_nav($post) {
$nav = array();
2009-10-20 02:41:37 +00:00
// post
foreach (array('previous', 'next') as $field) {
$nav[$field] = $this->_dbi->{"get_${field}_comic"}(null, $post);
}
}
2009-10-18 21:59:40 +00:00
}
?>