public static function getAllAnalysis($page) { try { self::$totalAnalysis = self::$controller->totalAnalysis(); return self::$controller->listAllAnalysis($page); } catch (PDOException $exception) { echo $exception->getMessage(); } }
<?php require_once '../core/DataBase/Connection.php'; require_once '../core/User/User.php'; require_once '../util/Session.php'; require_once '../util/StringManager.php'; require_once '../util/Maps/HashMap.php'; require_once '../core/Link/LinkController.php'; require_once '../core/Publication/CommentDao.php'; require_once '../core/Publication/Comment.php'; require_once '../core/Publication/PublicationHandler.php'; PublicationHandler::connect();
<?endif?> </div> <div id="comments-list"> <div id="comentsList-header"> <span>Comentários (<?echo $analysis->getComments()->count()?>)</span> <?if(Session::isLogged()):?> <span id="do-comment">comente</span> <?else:?> <span id="do-comment">Faça login para comentar</span> <?endif?> </div> <div id="comments"> <dl> <?$commentsIterator = $analysis->getComments()->getIterator();?> <?while($commentsIterator->valid()):?> <? PublicationHandler::printComment($commentsIterator->current());?> <?$commentsIterator->next();?> <?endwhile?> </dl> </div> </div> <?else:?> <h1>Esta página não existe.</h1> <?endif?> </div> </div> <div class="clear"></div> <div class="grid_12 rodape"> <p>Bureau de Inteligência Competitiva do Café</p>
<?php $response = PublicationHandler::getAllPapers(1); ?> <div class="show-publications"> <!-- <table class='table-papers' border="1"> <tbody> <tr> <td>nome</td> <td>icone</td> </tr> <tr> <td>nome</td> <td>ícone</td> </tr> </tbody> </table> --> <?if($response->count() > 0):?> <?PublicationHandler::printListPapers($response)?> <?foreach($response as $publication):?> <?endforeach?> <?endif?> <a class="openSearch" id="paper">Buscar Artigos</a><br /> </div>
<?php require_once 'CommentDao.php'; require_once 'Comment.php'; $response = PublicationHandler::getAllAnalysis(1); ?> <div class="show-publications" id="show-analysis"> <?if($response->count() > 0):?> <?PublicationHandler::printListAnalysis($response)?> <?endif?> <a class="openSearch" id="analysis">Buscar Análises</a> </div>