Changeset 771 for pro-violet-viettel/sourcecode/application/modules/ajax/controllers/privatecontent.php
- Timestamp:
- Mar 2, 2015 12:48:54 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pro-violet-viettel/sourcecode/application/modules/ajax/controllers/privatecontent.php
r686 r771 39 39 40 40 public function getContent () { 41 $xmlData = $this->vservices->getPrivateTree(); 42 43 41 $xmlData = $this->vservices->getPrivateTree(); 42 //echo $xmlData;die(); 43 $this->xml->parse($xmlData); 44 44 45 45 $aryDirs = array(); … … 71 71 if (is_array($this->xml->tree->filelist->file)) { 72 72 foreach($this->xml->tree->filelist->file as $key=>$value){ 73 $aryFiles[] = array(' id' => $value->_param['id'], 'name' => $value->_value, 'parentID' => $value->_param['parentid'] == -1 ? 0:$value->_param['parentid'], 'minetype' => $value->_param['filetype']);73 $aryFiles[] = array('fileurl' => $value->_param['fileurl'], 'id' => $value->_param['id'], 'name' => $value->_value, 'parentID' => $value->_param['parentid'] == -1 ? 0:$value->_param['parentid'], 'minetype' => $value->_param['filetype']); 74 74 } 75 75 }else { 76 76 $file = $this->xml->tree->filelist->file; 77 $aryFiles[] = array(' id' => $file->_param['id'], 'name' => $file->_value,'parentID' => $file->_param['parentid'] == -1 ? 0:$file->_param['parentid'], 'minetype' => $file->_param['filetype']);77 $aryFiles[] = array('fileurl' => $value->_param['fileurl'],'id' => $file->_param['id'], 'name' => $file->_value,'parentID' => $file->_param['parentid'] == -1 ? 0:$file->_param['parentid'], 'minetype' => $file->_param['filetype']); 78 78 } 79 79 }
Note: See TracChangeset
for help on using the changeset viewer.