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,15 @@ class OffersController extends MY_Controller {
}
public function getAllOffers( $projectID, $archive = 'F' )
public function getAllOffers()
{
$offers = Offer::getAllOffers( $projectID, $archive );
$projectID = $this->clean_input( 'projectID' );
$archive = $this->clean_input( 'archive' );
$search = $this->clean_input( 'search' );
$order = $this->clean_input( 'order' );
$direction = $this->clean_input( 'direction' );
$offers = Offer::getAllOffers( $projectID, $archive, $search, $order, $direction );
$this->json( $offers );
}