Added Node Session

This commit is contained in:
Deon George
2012-12-12 15:00:03 +11:00
parent b415296c62
commit cf7f5256ae
7 changed files with 149 additions and 19 deletions

View File

@@ -25,8 +25,25 @@ class Model_ACTSUM extends ORM_TSM {
),
);
/**
* Return if this ACTIVITY SUMMARY would be still in the ACTIVITY LOG
*/
public function inActLog() {
return ORM_TSM::date(ORM::factory('ACTLOG')->FirstRec(),'U') <= $this->start();
}
/**
* Return this ACTIVITY SUMMARY in GB
*/
public function bytes() {
return (real)number_format($this->BYTES/1024/1024,0,'','');
}
/**
* Return this ACTIVITY SUMMARY start time in seconds since epoch
*/
public function start() {
return ORM_TSM::date($this->START_TIME,'U');
}
}
?>