Wijzigingen nav opmerking Peter 24-12-2018

This commit is contained in:
2019-01-02 16:57:41 +01:00
parent 9569522c83
commit efcd9f2c09
19 changed files with 201 additions and 44 deletions
@@ -27,9 +27,14 @@ class ProjectsController extends MY_Controller {
}
public function getAllProjects( $archive = 'F' )
public function getAllProjects( )
{
$projects = Project::getAllProjects( $archive );
$archive = $this->clean_input( 'archive' );
$search = $this->clean_input( 'search' );
$order = $this->clean_input( 'order' );
$direction = $this->clean_input( 'direction' );
$projects = Project::getAllProjects( $archive, $search, $order, $direction );
$this->json( $projects );
}
@@ -359,4 +364,6 @@ class ProjectsController extends MY_Controller {
$this->json( ['result' => TRUE] );
}
}
}