本文整理汇总了PHP中cron::select方法的典型用法代码示例。如果您正苦于以下问题:PHP cron::select方法的具体用法?PHP cron::select怎么用?PHP cron::select使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类cron
的用法示例。
在下文中一共展示了cron::select方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: cron
//stop the direct browsing to this file - let index.php handle which files get displayed
checkLogin();
#get the cron id
$cron_id = $_GET['id'];
/*If delete is disabled - dont allow people to view this page*/
if ( $defaults['delete'] == 'N' ) {
die('Deletion has been disabled, you are not supposed to be here');
}
#get cron info
$get_cron = new cron();
$get_cron->id = $cron_id;
$cron = $get_cron->select();
if ( ($_GET['stage'] == 2 ) AND ($_POST['doDelete'] == 'y') ) {
global $dbh;
$dbh->beginTransaction();
$error = false;
//delete the info from the cron table
if (! delete('cron','id',$cron_id)) {
$error = true;
}
if ($error) {
$dbh->rollBack();
} else {