Ejemplo n.º 1
0
<?php

$array = array();
$time = new TimeTracker();
$time->setModuleName($options['module_name']);
$time->setModuleID($options['module_id']);
$checktime = $time->getOpenEntryId($time->getTimeEntries());
if ($checktime) {
    $array['time_tracker_id'] = $checktime;
} else {
    $id = $time->newTimeEntry($_SESSION['user_id'], $options['module_name'], $options['module_id'], date('Y-m-d H:i:s'));
    $array['time_tracker_id'] = $id;
}
Ejemplo n.º 2
0
<?php

$array = array();
$time = new TimeTracker();
$time->setModuleName($options['module_name']);
$time->setModuleID($options['module_id']);
$array['entries'] = $time->getTimeEntries();
$array['open'] = $time->getOpenEntryId($array['entries']);
$array['module_name'] = $options['module_name'];
$array['module_id'] = $options['module_id'];