1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49:
<?php
/**
* ImpressCMS AUTOTASKSs Library - Base class
*
* @copyright The ImpressCMS Project http://www.impresscms.org/
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU General Public License (GPL)
* @category ICMS
* @package Autotasks
* @since 1.2 alpha 2
* @author MekDrop <mekdrop@gmail.com>
* @version SVN: $Id:System.php 19775 2010-07-11 18:54:25Z malanciault $
*/
/**
*
*
* @category ICMS
* @package Autotasks
*/
abstract class icms_sys_autotasks_System
implements icms_sys_autotasks_ISystem {
/**
*
*/
public function getName() {
return strtolower(substr(get_class($this),strlen('IcmsAutoTasks')));
}
/**
*
*/
public function needExecution() {
static $execMode = null;
if ($execMode === null) {
$execMode = defined('ICMS_AUTOTASKS_EXECMODE') && ICMS_AUTOTASKS_EXECMODE;
}
return $execMode;
}
/**
*
*/
public function needExit() {
return true;
}
}