rapportrage dbois
This commit is contained in:
@@ -21,13 +21,17 @@ class EmployeeHoursController extends MY_Controller {
|
||||
$this->load->model( $models );
|
||||
$this->load->library( $libraries );
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function getMonthlyEmployeeHoursPerProject()
|
||||
public function getMonthlyEmployeeHoursPerProject( $employeeID, $year )
|
||||
{
|
||||
$monthlyhours = Projecthour::getMonthlyEmployeeHoursPerProject( $employeeID, $year );
|
||||
|
||||
$this->json( $monthlyhours );
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
defined( 'BASEPATH' ) OR exit( 'No direct script access allowed' );
|
||||
|
||||
/**
|
||||
* Created by Pensare Software.
|
||||
* User: Theo Weijmer
|
||||
* Date: 14/02/2018
|
||||
* Time: 11:18
|
||||
*/
|
||||
class ReportsdefaultController extends MY_Controller {
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
|
||||
if ( AUTHENTICATED == FALSE ) die( 'NO ACCES' );
|
||||
|
||||
$models = [];
|
||||
$libraries = [];
|
||||
|
||||
$this->load->model( $models );
|
||||
$this->load->library( $libraries );
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function getUsedYears()
|
||||
{
|
||||
$years = Projecthour::getUsedYears();
|
||||
|
||||
$this->json( $years );
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user