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');
|
||||
$details['ListName'] = $this->post('activityName');
|
||||
$details['ListGroup'] = "2";
|
||||
/*
|
||||
* add activity details
|
||||
* created Surendiran
|
||||
* */
|
||||
|
||||
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['CreatedBy'] = $this->post('createdBy');
|
||||
$details['CreatedOn'] = $now->format('Y-m-d H:i:s');
|
||||
$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) {
|
||||
$activityDetails['status'] = REST_Controller::HTTP_OK;
|
||||
// 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');
|
||||
$getActivity = $this->university_model->getActivity($requestedBy);
|
||||
@ -187,19 +199,22 @@ public function getActivityDetails_post()
|
||||
}
|
||||
|
||||
/*
|
||||
* update Announcement Details
|
||||
* update activity details
|
||||
* created by Surendiran
|
||||
* */
|
||||
public function updateActivityDetails_post()
|
||||
{
|
||||
$ListCode = $this->post('ListCode');
|
||||
// $details['ID'] = $this->post('ID');
|
||||
$details['ListName'] = $this->post('ListName');
|
||||
|
||||
$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['IsActive'] = $this->post('status');
|
||||
$details['UpdatedBy'] = $this->post('updatedBy');
|
||||
$details['UpdatedOn'] = date("Y-m-d", time());
|
||||
$activityDetails = $this->university_model->updateActivity($details,$ListCode);// Check if the users data store contains users (in case the database result returns NULL)
|
||||
$details['UpdatedOn'] = $now->format('Y-m-d H:i:s');
|
||||
$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)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user