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
00025 if ($this->getActionController()->isXmlHttpRequest())
00026 {
00027 return;
00028 }
00029
00030
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
00038 $this->_garbageCollector->run();
00039 }
00040 }