This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Advanced controller for a grade system for Talent Accelerator that gets all grades on a subject and calculates the average per subject | |
* Response::grades is a Laravel Response macro that simplifies our API responses | |
*/ | |
<?php namespace AppTree\Controllers\API; | |
use Cartalyst\Sentry\Facades\Laravel\Sentry as Sentry; | |
use \Input; | |
use \Response; | |
use \Session; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Advanced controller for a grade system for Talent Accelerator that gets all grades on a subject and calculates the average per subject | |
* Response::grades is a Laravel Response macro that simplifies our API responses | |
*/ | |
<?php namespace AppTree\Controllers\API; | |
use Cartalyst\Sentry\Facades\Laravel\Sentry as Sentry; | |
use \Input; | |
use \Response; | |
use \Session; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Relational model for boat trips with Laravel's Eloquent | |
*/ | |
<?php namespace Schippersagenda\Models; | |
use \Eloquent; | |
class Trip extends Eloquent { | |
/** | |
* @access protected |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php namespace Schippersagenda\Models; | |
use \Eloquent; | |
class Trip extends Eloquent { | |
/** | |
* @access protected | |
* Table trips | |
* @var string | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Custom tableview and tableviewcells with automatic dimensions | |
self.tableView.backgroundColor = UIColor(red: 240.0/255.0, green: 240.0/255.0, blue: | |
240.0/255.0, alpha: 0.2) | |
self.tableView.tableFooterView = UIView(frame: CGRectZero) | |
self.tableView.separatorColor = UIColor(red: | |
240.0/255.0, green: 240.0/255.0, blue: 240.0/255.0, | |
alpha: 0.8) |
NewerOlder