Permalink
Browse files

Constant files for controllers, database, generic, language, model, view

  • Loading branch information...
1 parent 171ed5c commit ff7b3bc22492ec2425e296cf15b3c8b7cbe885a8 @brunnsbe brunnsbe committed Mar 10, 2012
@@ -0,0 +1,16 @@
+<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
+/**
+ * Views
+ *
+ * @author André Brunnsberg
+ *
+*/
+
+define('CONTROLLER_DEFAULT', '/');
+
+//Dashboard
+define('CONTROLLER_DASHBOARD', 'dashboard');
+
+//Login
+define('CONTROLLER_LOGIN', 'login');
+define('CONTROLLER_LOGIN_AUTHENTICATE', 'login/authenticate');
@@ -0,0 +1,83 @@
+<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
+/**
+ * Database constants
+ *
+ * @author André Brunnsberg
+ *
+*/
+
+//Table Event
+define('DB_TABLE_EVENT', 'Event');
+define('DB_EVENT_ID,', 'Id');
+define('DB_EVENT_NAME', 'Name');
+define('DB_EVENT_STARTDATE', 'StartDate');
+define('DB_EVENT_ENDDATE', 'EndDate');
+define('DB_EVENT_REGISTRATIONDUEDATE', 'RegistrationDueDate');
+define('DB_EVENT_PAYMENTDUEDATE', 'PaymentDueDate');
+define('DB_EVENT_DESCRIPTION', 'Description');
+define('DB_EVENT_PRICE', 'Price');
+define('DB_EVENT_LOCATION', 'Location');
+define('DB_EVENT_ISATCLUB', 'IsAtClub');
+define('DB_EVENT_TYPE', 'Type');
+define('DB_EVENT_ISEXTERNAL', 'IsExternal');
+define('DB_EVENT_RESPONSIBLEID', 'ResponsibleId');
+define('DB_EVENT_CREATED', 'Created');
+define('DB_EVENT_CREATEDBY', 'CreatedBy');
+define('DB_EVENT_MODIFIED', 'Modified');
+define('DB_EVENT_MODIFIEDBY', 'ModifiedBy');
+
+//Table PaymentType
+define('TABLE_PAYMENTTYPE', 'PaymentType');
+define('DB_PAYMENTTYPE_ID', 'Id');
+define('DB_PAYMENTTYPE_NAME', 'Name');
+define('DB_PAYMENTTYPE_CREATED', 'Created');
+define('DB_PAYMENTTYPE_CREATEDBY', 'CreatedBy');
+define('DB_PAYMENTTYPE_MODIFIED', 'Modified');
+define('DB_PAYMENTTYPE_MODIFIEDBY', 'ModifiedBy');
+
+//Table Person
+define('DB_TABLE_PERSON', 'Person');
+define('DB_PERSON_ID', 'Id');
+define('DB_PERSON_FIRSTNAME', 'FirstName');
+define('DB_PERSON_LASTNAME', 'LastName');
+define('DB_PERSON_VOICE', 'Voice');
+define('DB_PERSON_ADDRESS', 'Address');
+define('DB_PERSON_POSTALCODE', 'PostalCode');
+define('DB_PERSON_CITY', 'City');
+define('DB_PERSON_COUNTRYID', 'CountryId');
+define('DB_PERSON_PHONE', 'Phone');
+define('DB_PERSON_EMAIL', 'Email');
+define('DB_PERSON_ALLERGIES', 'Allergies');
+define('DB_PERSON_DESCRIPTION', 'Description');
+define('DB_PERSON_STATUS', 'Status');
+define('DB_PERSON_PASSWORD', 'Password');
+define('DB_PERSON_CREATED', 'Created');
+define('DB_PERSON_CREATEDBY', 'CreatedBy');
+define('DB_PERSON_MODIFIED', 'Modified');
+define('DB_PERSON_MODIFIEDBY', 'ModifiedBy');
+
+//Table PersonHasEvent
+define('DB_TABLE_PERSONHASEVENT', 'PersonHasEvent');
+define('DB_PERSONHASEVENT_PERSONID', 'PersonId');
+define('DB_PERSONHASEVENT_EVENTID', 'EventId');
+define('DB_PERSONHASEVENT_STATUS', 'Status');
+define('DB_PERSONHASEVENT_TRANSACTIONID', 'TransactionId');
+define('DB_PERSONHASEVENT_PAYMENTTYPEID', 'PaymentTypeId');
+define('DB_PERSONHASEVENT_UNREGISTERED', 'Unregistered');
+define('DB_PERSONHASEVENT_CREATED', 'Created');
+define('DB_PERSONHASEVENT_CREATEDBY', 'CreatedBy');
+define('DB_PERSONHASEVENT_MODIFIED', 'Modified');
+define('DB_PERSONHASEVENT_MODIFIEDBY', 'ModifiedBy');
+
+//Table Transaction
+define('DB_TABLE_TRANSACTION', 'Transaction');
+define('DB_TRANSACTION_ID', 'Id');
+define('DB_TRANSACTION_PERSONID', 'PersonId');
+define('DB_TRANSACTION_TRANSACTIONDATE', 'TransactionDate');
+define('DB_TRANSACTION_AMOUNT', 'Amount');
+define('DB_TRANSACTION_DESCRIPTION', 'Description');
+define('DB_TRANSACTION_PAYMENTTYPEID', 'PaymentTypeId');
+define('DB_TRANSACTION_CREATED', 'Created');
+define('DB_TRANSACTION_CREATEDBY', 'CreatedBy');
+define('DB_TRANSACTION_MODIFIED', 'Modified');
+define('DB_TRANSACTION_MODIFIEDBY', 'ModifiedBy');
@@ -0,0 +1,16 @@
+<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
+/**
+ * Generic constants
+ *
+ * @author André Brunnsberg
+ *
+*/
+
+//Client
+define('CLIENT_DESKTOP', 'Desktop');
+define('CLIENT_MOBILE', 'Mobile');
+
+//Session
+define('SESSION_LOGGEDIN', 'LoggedIn');
+define('SESSION_PERSONID', 'PersonId');
+define('SESSION_LANG', 'Lang');
@@ -0,0 +1,26 @@
+<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
+/**
+ * Languages
+ *
+ * @author André Brunnsberg
+ *
+*/
+
+//File name
+define('LANG_FILE', 'Text');
+
+//Languages
+define('LANG_LANGUAGE_SV', 'sv');
+
+//Headers
+define('LANG_KEY_LOGIN_HEADER', 'login_header');
+
+//Form buttons
+define('LANG_KEY_FORM_SUBMIT', 'login_form_submit');
+
+//Fields
+define('LANG_KEY_FIELD_EMAIL', 'field_email');
+define('LANG_KEY_FIELD_PASSWORD', 'field_password');
+
+//Error texts
+define('LANG_KEY_ERROR_WRONG_CREDENTIALS', 'error_wrong_credentials');
@@ -0,0 +1,12 @@
+<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
+/**
+ * Models
+ *
+ * @author André Brunnsberg
+ *
+*/
+
+define('MODEL_PERSON', 'Person');
+define('MODEL_EVENT', 'Event');
+define('MODEL_PAYMENTTYPE', 'PaymentType');
+define('MODEL_TRANSACTION', 'Transaction');
@@ -0,0 +1,12 @@
+<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
+/**
+ * Views
+ *
+ * @author André Brunnsberg
+ *
+*/
+
+define('VIEW_GENERIC_HEADER', '/generic/header');
+define('VIEW_GENERIC_FOOTER', '/generic/footer');
+
+define('VIEW_CONTENT_LOGIN_FORM', '/content/login/form');

0 comments on commit ff7b3bc

Please sign in to comment.