OSDN Git Service

Initial commit at SoulDrops 2nd season analyzer module.
[mulab/sd2nd.git] / trust_path / modules / sd2nd / class / updater / dispose / Update.class.php
1 <?php
2 /**
3  * @file
4  * @package Sd2nd
5  * @version $Id$
6 **/
7
8 if(!defined('XOOPS_ROOT_PATH'))
9 {
10     exit();
11 }
12
13 /**
14  * @class   Sd2nd_UpdateDispose
15 **/
16 class Sd2nd_UpdateDispose extends Sd2nd_AbstractFilter
17 {
18     /**
19      * @brief   int
20     **/
21     protected $_mUpdateTime = null;
22     
23     /**
24      * prepare
25      * 
26      * @param   int $updateTime
27      * 
28      * @return  void
29     **/
30     public function prepare(/*** int ***/ $updateTime)
31     {
32         parent::prepare($updateTime);
33         
34         $this->_mUpdateTime = $updateTime;
35     }
36     
37     /**
38      * executeLatest
39      * 
40      * @param   void
41      * 
42      * @return  void
43      * @throw   Sd2nd_QueryException
44     **/
45     public function executeLatest()
46     {
47         $update =& Sd2nd_UpdateUtils::createObject(Sd2nd_AssetManager::HANDLER_UPDATE);
48         $update->set('update_time',$this->_mUpdateTime);
49         Sd2nd_UpdateUtils::insertObject(Sd2nd_AssetManager::HANDLER_UPDATE,$update);
50     }
51 }
52
53 ?>