Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
TimeOutAdmin
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TimeOut
TimeOutAdmin
Commits
6a8bd742
Commit
6a8bd742
authored
Oct 23, 2019
by
Tobin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'jansa' into 'master'
Jansa See merge request
!124
parents
53492239
d9adc9ce
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
18 deletions
+31
-18
OrganizerServices.php
application/controllers/OrganizerServices.php
+13
-2
Organizer_model.php
application/models/Organizer_model.php
+0
-0
Validation_organizer_model.php
application/models/Validation_organizer_model.php
+18
-16
No files found.
application/controllers/OrganizerServices.php
View file @
6a8bd742
...
...
@@ -28,7 +28,7 @@ class OrganizerServices extends CI_Controller {
$this
->
load
->
model
(
'Validation_organizer_model'
);
$method
=
$this
->
router
->
fetch_method
();
$data
=
(
array
)
json_decode
(
file_get_contents
(
'php://input'
));
if
(
$method
==
'
profile
'
)
{
if
(
$method
==
'
addEvent
'
)
{
$data
=
$_POST
;
}
if
(
isset
(
apache_request_headers
()[
'Auth'
]))
{
...
...
@@ -223,7 +223,7 @@ class OrganizerServices extends CI_Controller {
}
public
function
addEvent
(){
$data
=
(
array
)
json_decode
(
file_get_contents
(
'php://input'
))
;
$data
=
$_POST
;
$res
=
$this
->
Organizer_model
->
addEvent
(
$data
);
if
(
$res
[
'status'
]
!=
0
){
$this
->
response
(
$res
[
'data'
]);
...
...
@@ -301,6 +301,17 @@ class OrganizerServices extends CI_Controller {
$this
->
errorResponse
(
$res
[
'code'
],
$res
[
'message'
]);
}
}
public
function
getCheckerList
(){
$data
=
(
array
)
json_decode
(
file_get_contents
(
'php://input'
));
$res
=
$this
->
Organizer_model
->
getCheckerList
(
$data
);
if
(
$res
[
'status'
]
!=
0
){
$this
->
response
(
$res
[
'data'
]);
}
else
{
$this
->
errorResponse
(
$res
[
'code'
],
$res
[
'message'
]);
}
}
/*================ END : Organizer API ================*/
}
?>
application/models/Organizer_model.php
View file @
6a8bd742
This diff is collapsed.
Click to expand it.
application/models/Validation_organizer_model.php
View file @
6a8bd742
...
...
@@ -304,16 +304,10 @@ class Validation_organizer_model extends CI_Model {
'message'
=>
'Venue Id is null or empty'
)
),
'
fare
_type'
=>
array
(
'
layout
_type'
=>
array
(
'required'
=>
array
(
'code'
=>
'ER18'
,
'message'
=>
'Fare Type is null or empty'
)
),
'fare_amount'
=>
array
(
'required'
=>
array
(
'code'
=>
'ER18'
,
'message'
=>
'Fare Amount is null or empty'
'message'
=>
'Layout Type is null or empty'
)
),
'event_name'
=>
array
(
...
...
@@ -322,10 +316,10 @@ class Validation_organizer_model extends CI_Model {
'message'
=>
'Event name is null or empty'
)
),
'category'
=>
array
(
'category
_id
'
=>
array
(
'required'
=>
array
(
'code'
=>
'ER18'
,
'message'
=>
'Category is null or empty'
'message'
=>
'Category
Id
is null or empty'
)
),
'maximum_seat_booking'
=>
array
(
...
...
@@ -358,12 +352,6 @@ class Validation_organizer_model extends CI_Model {
'message'
=>
'Start Date is null or empty'
)
),
'end_date'
=>
array
(
'required'
=>
array
(
'code'
=>
'ER18'
,
'message'
=>
'End Date is null or empty'
)
),
'show_timing'
=>
array
(
'required'
=>
array
(
'code'
=>
'ER18'
,
...
...
@@ -376,6 +364,12 @@ class Validation_organizer_model extends CI_Model {
'message'
=>
'Tag is null or empty'
)
),
'layout'
=>
array
(
'required'
=>
array
(
'code'
=>
'ER18'
,
'message'
=>
'Layout is null or empty'
)
),
),
'getLanguages'
=>
array
(),
'getCategories'
=>
array
(),
...
...
@@ -437,6 +431,14 @@ class Validation_organizer_model extends CI_Model {
),
),
'getCountryCode'
=>
array
(),
'getCheckerList'
=>
array
(
'organiser_id'
=>
array
(
'required'
=>
array
(
'code'
=>
'ER30'
,
'message'
=>
'Organizer Id is null or empty'
)
),
),
);
public
function
_consruct
(){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment