GarbageCollector.php

00001 <?php
00009 class Dsao_Controller_Action_Helper_GarbageCollector
00010   extends Zend_Controller_Action_Helper_Abstract
00011 {
00015   protected $_garbageCollector = null;
00016 
00022   public function init()
00023   {
00024     // Falls Ajax-Anfrage vorliegt, abbrechen
00025     if ($this->getActionController()->isXmlHttpRequest())
00026     {
00027       return;
00028     }
00029 
00030     // Garbage-Collector initialisieren
00031     $this->_garbageCollector = new Dsao_GarbageCollector(array(array(
00032       'method' => 'deleteEmptyRows',
00033       'object' => 'Dsao_Model_Game_Desk',
00034       'probability' => Dsao_Registry::get('config')
00035         ->modules->game->desk->deleteEmpty->probability)));
00036 
00037     // Und aufräumen
00038     $this->_garbageCollector->run();
00039   }
00040 }

Erzeugt am Fri Sep 18 19:04:11 2009 für DSA online - Morgendaemmerung von  doxygen 1.5.7.1