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
f308a5ab
Commit
f308a5ab
authored
May 31, 2019
by
Tobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dc
parent
79ab4e49
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
1 deletion
+27
-1
Api.php
application/controllers/Api.php
+12
-0
Api_model.php
application/models/Api_model.php
+0
-0
Validation_model.php
application/models/Validation_model.php
+14
-0
Webservice_model.php
application/models/Webservice_model.php
+1
-1
No files found.
application/controllers/Api.php
View file @
f308a5ab
...
@@ -536,5 +536,17 @@ class Api extends CI_Controller {
...
@@ -536,5 +536,17 @@ class Api extends CI_Controller {
public
function
verifyMail
(
$unique_id
=
''
)
{
public
function
verifyMail
(
$unique_id
=
''
)
{
$res
=
$this
->
Api_model
->
verifyMail
(
array
(
'unique_id'
=>
$unique_id
));
$res
=
$this
->
Api_model
->
verifyMail
(
array
(
'unique_id'
=>
$unique_id
));
}
}
public
function
checkSeatAvailability
(){
$data
=
(
array
)
json_decode
(
file_get_contents
(
'php://input'
));
$data
[
'auth_token'
]
=
$this
->
auth_token
;
$res
=
$this
->
Api_model
->
checkSeatAvailability
(
$data
);
if
(
$res
[
'status'
]
!=
0
){
$this
->
response
(
$res
[
'data'
]);
}
else
{
$this
->
errorResponse
(
$res
[
'code'
],
$res
[
'message'
]);
}
}
}
}
?>
?>
application/models/Api_model.php
View file @
f308a5ab
This diff is collapsed.
Click to expand it.
application/models/Validation_model.php
View file @
f308a5ab
...
@@ -104,6 +104,20 @@ class Validation_model extends CI_Model {
...
@@ -104,6 +104,20 @@ class Validation_model extends CI_Model {
)
,
)
,
)
,
)
,
)
,
)
,
'checkSeatAvailability'
=>
array
(
'event_id'
=>
array
(
'required'
=>
array
(
'code'
=>
'ER17'
,
'message'
=>
'Event Id is null or empty'
)
,
)
,
'time_id'
=>
array
(
'required'
=>
array
(
'code'
=>
'ER18'
,
'message'
=>
'Time Id is null or empty'
)
)
)
,
'bookingdetails'
=>
array
(
'bookingdetails'
=>
array
(
'auth_token'
=>
array
(
'auth_token'
=>
array
(
'required'
=>
array
(
'required'
=>
array
(
...
...
application/models/Webservice_model.php
View file @
f308a5ab
...
@@ -1472,7 +1472,7 @@ class Webservice_model extends CI_Model {
...
@@ -1472,7 +1472,7 @@ class Webservice_model extends CI_Model {
$res
=
array
(
'status'
=>
1
,
'data'
=>
array
(
'events'
=>
$result
,
'meta'
=>
$meta
));
$res
=
array
(
'status'
=>
1
,
'data'
=>
array
(
'events'
=>
$result
,
'meta'
=>
$meta
));
}
else
{
}
else
{
$res
=
array
(
'status'
=>
1
,
'data'
=>
array
(
'events'
=>
$result
,
'meta'
=>
$meta
));
$res
=
array
(
'status'
=>
1
,
'data'
=>
array
(
'events'
=>
[]
,
'meta'
=>
$meta
));
}
}
}
else
{
}
else
{
$res
=
array
(
'status'
=>
0
,
'message'
=>
'User Authentication Failed'
,
'code'
=>
'ER15'
);
$res
=
array
(
'status'
=>
0
,
'message'
=>
'User Authentication Failed'
,
'code'
=>
'ER15'
);
...
...
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