コード例 #1
0
ファイル: timeentry.php プロジェクト: neymanna/fusionforge
function &addTimeEntry($session_ser, $projectTaskId, $week, $daysAdjust, $timeCode, $hours)
{
    continue_session($session_ser);
    $teObj = new TimeEntry();
    error_log("addTimeEntry ({$projectTaskId}, {$week}, {$daysAdjust}, {$timeCode}, {$hours})");
    return $teObj->create($projectTaskId, $week, $daysAdjust, $timeCode, $hours);
}
コード例 #2
0
 public function run()
 {
     DB::table('time_entries')->delete();
     $time_entries = array(['user_id' => 1, 'start_time' => '2015-02-21T18:56:48Z', 'end_time' => '2015-02-21T20:33:10Z', 'comment' => 'Initial project setup.'], ['user_id' => 2, 'start_time' => '2015-02-27T10:22:42Z', 'end_time' => '2015-02-27T14:08:10Z', 'comment' => 'Review of project requirements and notes for getting started.'], ['user_id' => 3, 'start_time' => '2015-03-03T09:55:32Z', 'end_time' => '2015-03-03T12:07:09Z', 'comment' => 'Front-end and backend setup.']);
     foreach ($time_entries as $time_entry) {
         TimeEntry::create($time_entry);
     }
 }
コード例 #3
0
 function getWorkspaceTimeEntry($workspaceId, $timeEntryId)
 {
     return $this->getJson(TimeEntry::getWorkspaceResourcePath($workspaceId, $timeEntryId));
 }