/**
  * Set click counter +1 and redirect to sponsor
  *
  * @param Tx_Randombanners_Domain_Model_Banner $banner
  * @return void
  */
 public function showAction(Tx_Randombanners_Domain_Model_Banner $banner)
 {
     $banner->setClickedThisMonth($banner->getClickedThisMonth() + 1);
     $this->response->setStatus(200);
     #$this->response->setHeader('Location', (string)$banner->getLink());
     throw new Tx_Extbase_MVC_Exception_StopAction();
     #$this->redirectToURI($banner->getLink());
 }
 /**
  * @test
  */
 public function setClickedLastMonthForStringSetsClickedLastMonth()
 {
     $this->fixture->setClickedLastMonth('Conceived at T3CON10');
     $this->assertSame('Conceived at T3CON10', $this->fixture->getClickedLastMonth());
 }
 protected function setStatisticsForNewMonth(Tx_Randombanners_Domain_Model_Banner $banner)
 {
     $banner->setClickedLastMonth($banner->getClickedThisMonth());
     $banner->setDisplayedLastMonth($banner->getDisplayedThisMonth());
     $banner->setDisplayedThisMonth(0);
     $banner->setClickedThisMonth(0);
 }