Ignore:
Timestamp:
Jun 26, 2014 5:37:23 PM (11 years ago)
Author:
dungnv
Message:
 
Location:
pro-bachkim-filespace/sourcecode/application/modules/ajax/controllers
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • pro-bachkim-filespace/sourcecode/application/modules/ajax/controllers/privatecontent.php

    r15 r16  
    6363                echo json_encode($aryChild);
    6464        }
     65       
     66        public function rename() {
     67                $id =  $this->input->post('id',TRUE);
     68                $newName =  $this->input->post('newname',TRUE);
     69                $objectType =  $this->input->post('objtype',TRUE);
     70
     71                $aryData = array();
     72                $aryData['RESULT'] = $this->objDirectory->rename($id, $newName, $objectType);;
     73                $aryData['UPDATED'] = array('id' => $id, 'name' => $newName, 'type' => $objectType);
     74                echo json_encode($aryData);
     75        }
    6576
    6677}
Note: See TracChangeset for help on using the changeset viewer.