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
0eda0533
Commit
0eda0533
authored
5 years ago
by
Jansa Jose
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into 'dev_production'
organizer city list api See merge request
!262
parents
5e0df546
9a85c55e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
22 deletions
+4
-22
OrganizerServices.php
application/controllers/OrganizerServices.php
+3
-3
Organizer_model.php
application/models/Organizer_model.php
+1
-1
Validation_organizer_model.php
application/models/Validation_organizer_model.php
+0
-18
No files found.
application/controllers/OrganizerServices.php
View file @
0eda0533
...
...
@@ -464,7 +464,7 @@ class OrganizerServices extends CI_Controller {
public
function
getOrganizerCityList
(){
$data
=
(
array
)
json_decode
(
file_get_contents
(
'php://input'
));
$res
=
$this
->
Organizer_model
->
getOrganizerCityList
(
$data
,
0
);
$res
=
$this
->
Organizer_model
->
getOrganizerCityList
(
$data
);
if
(
$res
[
'status'
]
!=
0
){
$this
->
response
(
$res
[
'data'
]);
}
else
{
...
...
@@ -484,7 +484,7 @@ class OrganizerServices extends CI_Controller {
public
function
editOrganizerCityDetails
(){
$data
=
$_POST
;
$res
=
$this
->
Organizer_model
->
editOrganizerCityDetails
(
$data
,
0
);
$res
=
$this
->
Organizer_model
->
editOrganizerCityDetails
(
$data
);
if
(
$res
[
'status'
]
!=
0
){
$this
->
successResponse
(
$res
);
}
else
{
...
...
@@ -494,7 +494,7 @@ class OrganizerServices extends CI_Controller {
public
function
addCity
(){
$data
=
$_POST
;
$res
=
$this
->
Organizer_model
->
addCity
(
$data
,
0
);
$res
=
$this
->
Organizer_model
->
addCity
(
$data
);
if
(
$res
[
'status'
]
!=
0
){
$this
->
successResponse
(
$res
);
}
else
{
...
...
This diff is collapsed.
Click to expand it.
application/models/Organizer_model.php
View file @
0eda0533
...
...
@@ -1256,7 +1256,7 @@ class Organizer_model extends CI_Model {
return
$res
;
}
public
function
getOrganizerCityList
(){
public
function
getOrganizerCityList
(
$data
){
$res
=
array
(
'status'
=>
0
,
'message'
=>
'Ohh No!! Something Went South'
,
'code'
=>
'ER06'
);
try
{
$count
=
$this
->
db
->
get_where
(
'region'
)
->
num_rows
();
...
...
This diff is collapsed.
Click to expand it.
application/models/Validation_organizer_model.php
View file @
0eda0533
...
...
@@ -522,12 +522,6 @@ class Validation_organizer_model extends CI_Model {
'message'
=>
'Organizer Id is null or empty'
)
),
'page'
=>
array
(
'required'
=>
array
(
'code'
=>
'ER04'
,
'message'
=>
'Page is null or empty'
)
),
),
'addHostCategory'
=>
array
(
'organiser_id'
=>
array
(
...
...
@@ -584,12 +578,6 @@ class Validation_organizer_model extends CI_Model {
'message'
=>
'Organizer Id is null or empty'
)
),
'page'
=>
array
(
'required'
=>
array
(
'code'
=>
'ER04'
,
'message'
=>
'Page is null or empty'
)
)
),
'getCityDetails'
=>
array
(
'organiser_id'
=>
array
(
...
...
@@ -674,12 +662,6 @@ class Validation_organizer_model extends CI_Model {
'message'
=>
'Organizer Id is null or empty'
)
),
'page'
=>
array
(
'required'
=>
array
(
'code'
=>
'ER04'
,
'message'
=>
'Page is null or empty'
)
)
),
'getOrganizerCategoryDetails'
=>
array
(
'organiser_id'
=>
array
(
...
...
This diff is collapsed.
Click to expand it.
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