加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
service.php 1.57 KB
一键复制 编辑 原始数据 按行查看 历史
Eryx 提交于 2013-07-21 23:44 . [CHG] Internal path change, to
<?php
class lesscreator_service
{
const ExecModeManual = '1';
const ExecModeTime = '2';
const ExecModeLoop = '3';
const ExecModeForever = '4';
const ParaModeDebug = '1';
const ParaModeServer = '2';
const ParaModeDataSingle = '3';
const ParaModeDataServer = '4';
const ParaModeDataShard = '5';
public static function debugPrint($d)
{
echo "<pre>";
print_r($d);
echo "</pre>";
}
public static function listAll()
{
return array(
'pagelet' => 'Pagelet',
'data' => 'Database',
'dataflow' => 'Dataflow',
);
}
public static function listExecMode()
{
return array(
self::ExecModeManual => 'Execute by manual',
self::ExecModeTime => 'Execute on a regular time',
self::ExecModeLoop => 'Execute by loop, after a certain time interval',
self::ExecModeForever => 'Execute forever, never expires',
);
}
public static function listParaMode()
{
return array(
//ParaModeDebug => 'Develop or Debug, starts a single process',
self::ParaModeServer => 'Bound to server. Each physical server starts a process',
self::ParaModeDataSingle => 'Bound to database. Each database starts a process',
self::ParaModeDataServer => 'Bound to database. Each physical server starts a process',
self::ParaModeDataShard => 'Bound to database. Each shard node starts a process',
);
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化