changes in activity master
This commit is contained in:
parent
8cf22ca70b
commit
f4f525a80b
@ -148,14 +148,22 @@ class University_Controller extends REST_Controller {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function addActivityDetails_post() {
|
/*
|
||||||
$details['ListCode'] = $this->post('activityID');
|
* add activity details
|
||||||
$details['ListName'] = $this->post('activityName');
|
* created Surendiran
|
||||||
$details['ListGroup'] = "2";
|
* */
|
||||||
|
|
||||||
|
public function addActivityDetails_post() {
|
||||||
|
$now = new DateTime();
|
||||||
|
$now->setTimezone(new DateTimezone('Asia/Kolkata'));
|
||||||
|
$details['ActivityID'] = $this->post('activityID');
|
||||||
|
$details['ActivityName'] = $this->post('activityName');
|
||||||
$details['Description'] = $this->post('description');
|
$details['Description'] = $this->post('description');
|
||||||
$details['CreatedBy'] = $this->post('createdBy');
|
$details['CreatedBy'] = $this->post('createdBy');
|
||||||
|
$details['CreatedOn'] = $now->format('Y-m-d H:i:s');
|
||||||
$details['IsActive'] = $this->post('status');
|
$details['IsActive'] = $this->post('status');
|
||||||
$activityDetails = $this->university_model->addactivity($details);// Check if the users data store contains users (in case the database result returns NULL)
|
$jsonData=$this->post('activityStatus');
|
||||||
|
$activityDetails = $this->university_model->addActivity($details,$jsonData);// Check if the users data store contains users (in case the database result returns NULL)
|
||||||
if ($activityDetails) {
|
if ($activityDetails) {
|
||||||
$activityDetails['status'] = REST_Controller::HTTP_OK;
|
$activityDetails['status'] = REST_Controller::HTTP_OK;
|
||||||
// Set the response and exit
|
// Set the response and exit
|
||||||
@ -167,7 +175,11 @@ class University_Controller extends REST_Controller {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getActivityDetails_post()
|
/*
|
||||||
|
* get activity details
|
||||||
|
* created by Surendiran
|
||||||
|
* */
|
||||||
|
public function getActivityDetails_post()
|
||||||
{
|
{
|
||||||
$requestedBy = $this->post('requestedBy');
|
$requestedBy = $this->post('requestedBy');
|
||||||
$getActivity = $this->university_model->getActivity($requestedBy);
|
$getActivity = $this->university_model->getActivity($requestedBy);
|
||||||
@ -187,19 +199,22 @@ public function getActivityDetails_post()
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* update Announcement Details
|
* update activity details
|
||||||
* created by Surendiran
|
* created by Surendiran
|
||||||
* */
|
* */
|
||||||
public function updateActivityDetails_post()
|
public function updateActivityDetails_post()
|
||||||
{
|
{
|
||||||
$ListCode = $this->post('ListCode');
|
|
||||||
// $details['ID'] = $this->post('ID');
|
$now = new DateTime();
|
||||||
$details['ListName'] = $this->post('ListName');
|
$now->setTimezone(new DateTimezone('Asia/Kolkata'));
|
||||||
|
$details['ActivityID'] = $this->post('activityID');
|
||||||
|
$details['ActivityName'] = $this->post('activityName');
|
||||||
$details['Description'] = $this->post('description');
|
$details['Description'] = $this->post('description');
|
||||||
$details['IsActive'] = $this->post('status');
|
$details['IsActive'] = $this->post('status');
|
||||||
$details['UpdatedBy'] = $this->post('updatedBy');
|
$details['UpdatedBy'] = $this->post('updatedBy');
|
||||||
$details['UpdatedOn'] = date("Y-m-d", time());
|
$details['UpdatedOn'] = $now->format('Y-m-d H:i:s');
|
||||||
$activityDetails = $this->university_model->updateActivity($details,$ListCode);// Check if the users data store contains users (in case the database result returns NULL)
|
$jsonData=$this->post('activityStatus');
|
||||||
|
$activityDetails = $this->university_model->updateActivity($details,$jsonData);// Check if the users data store contains users (in case the database result returns NULL)
|
||||||
|
|
||||||
if ($activityDetails)
|
if ($activityDetails)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user