HCE Project DC service web UI
0.2
Hierarchical Cluster Engine DC service web UI
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Pages
DeleteUserTempJob.php
Go to the documentation of this file.
1
<?php
2
3
class
DeleteUserTempJob
extends
Job
4
{
9
protected
function
_execute
() {
10
$DateTime =
new
DateTime();
11
$DateTime->modify(
'-1 hour'
);
12
$result =
User::model
()->deleteAllByAttributes(array(
13
'status'
=>
User::STATUS_TEMP
,
14
),
15
'create_at < "'
. $DateTime->format(
DB_DATETIME_FORMAT
) .
'"'
16
);
17
if
(!empty($result)) {
18
$this->
log
(
'Users temp deleted success...'
);
19
}
else
{
20
$this->
log
(
'Users temp for delete not found...'
);
21
}
22
return
true
;
23
}
24
}
app
protected
commands
DeleteUserTempJob.php
Generated on Tue Jun 30 2015 20:12:30 for HCE Project DC service web UI by
1.8.1.2