public function __construct()
 {
     parent::__construct('Airlines');
     $this->breadcrumb->add('Airlines', URI::build('airlines/airlines'));
     $this->airlinePage = new FieldDataPages('Airlines.DataFields.Positions.AirlinesCategoryPosition', 'airlines/airlines', array('name'));
     $this->flightPage = new FieldDataPages('Airlines.DataFields.Positions.AirlinesFlightPosition', 'airlines/airlines', array('title'));
 }
 public function route()
 {
     if (Me::get()->isAllowed('admin')) {
         parent::route();
     } else {
         parent::header();
         CmsPage::error("Sie sind nicht berechtigt den Administrationsbereich zu betreten.");
         parent::footer();
     }
 }
 public function __construct()
 {
     parent::__construct();
 }