コード例 #1
-6
 function getFeaturedArticles(Application $app, $ids)
 {
     $ids = json_decode($ids);
     $articles = $this->articleManager->getArticlesFromIds($ids);
     return $app['twig']->render('article/featured.twig', array('articles' => $articles));
 }
コード例 #2
-12
 /**
  *@note @phpunit nettoyer après un test
  */
 function tearDown()
 {
     $this->articleManager = new ArticleManager(new Mongo("localhost"), "test");
     $this->userManager = new UserManager(new Mongo("localhost"), "test", getApp());
     $this->userManager->remove(new MongoId($this->user['_id']));
     $this->articleManager->remove(new MongoId($this->article['_id']));
 }