session master changes done
This commit is contained in:
parent
870625412f
commit
f087b10402
@ -35,6 +35,7 @@ class SessionMater_Controller extends REST_Controller {
|
|||||||
$details['SessionDate'] = $this->post('sessionDate');
|
$details['SessionDate'] = $this->post('sessionDate');
|
||||||
$details['CreatedBy'] = $this->post('createdBy');
|
$details['CreatedBy'] = $this->post('createdBy');
|
||||||
$details['IsActive'] = $this->post('status');
|
$details['IsActive'] = $this->post('status');
|
||||||
|
$details['BranchCode'] = $this->post('branchCode');
|
||||||
$details['CreatedOn'] = $now->format('Y-m-d H:i:s');
|
$details['CreatedOn'] = $now->format('Y-m-d H:i:s');
|
||||||
$university['UniversityID'] = $this->post('universityName');
|
$university['UniversityID'] = $this->post('universityName');
|
||||||
|
|
||||||
@ -63,7 +64,8 @@ class SessionMater_Controller extends REST_Controller {
|
|||||||
public function getSessionMaterDetails_post()
|
public function getSessionMaterDetails_post()
|
||||||
{
|
{
|
||||||
$requestedBy = $this->post('requestedBy');
|
$requestedBy = $this->post('requestedBy');
|
||||||
$getSession = $this->sessionM_model->getSession($requestedBy);
|
$branchCode = $this->post('branchCode');
|
||||||
|
$getSession = $this->sessionM_model->getSession($requestedBy,$branchCode);
|
||||||
if ($getSession)
|
if ($getSession)
|
||||||
{
|
{
|
||||||
$getSession['status'] = REST_Controller::HTTP_OK;
|
$getSession['status'] = REST_Controller::HTTP_OK;
|
||||||
@ -96,6 +98,7 @@ class SessionMater_Controller extends REST_Controller {
|
|||||||
$universityDetails['University'] = $this->post('university');
|
$universityDetails['University'] = $this->post('university');
|
||||||
$details['UpdatedBy'] = $this->post('updatedBy');
|
$details['UpdatedBy'] = $this->post('updatedBy');
|
||||||
$details['UpdatedOn'] = $now->format("Y-m-d H:i:s");
|
$details['UpdatedOn'] = $now->format("Y-m-d H:i:s");
|
||||||
|
$details['BranchCode'] = $this->post('branchCode');
|
||||||
$updateDetails = $this->sessionM_model->updateSession($details,$universityDetails);// Check if the users data store contains users (in case the database result returns NULL)
|
$updateDetails = $this->sessionM_model->updateSession($details,$universityDetails);// Check if the users data store contains users (in case the database result returns NULL)
|
||||||
|
|
||||||
if ($updateDetails)
|
if ($updateDetails)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user