source: pro-bachkim-filespace/sourcecode/application/modules/ajax/controllers/privatecontent.php @ 10

Last change on this file since 10 was 10, checked in by dungnv, 11 years ago
File size: 1.9 KB
Line 
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
2/**
3 * PrivateContent Class
4 *
5 * @author dzungnv02
6 *
7 */
8
9class PrivateContent extends MX_Controller
10{
11       
12        public function __construct() {
13                parent::__construct();
14        }
15       
16        public function getContent () {
17                $aryDir = array(
18                                0 => array ('id' => 1, 'name' => 'Dir 1', 'parentID' => 0),
19                                1 => array ('id' => 2, 'name' => 'Dir 2', 'parentID' => 0),
20                                2 => array ('id' => 3, 'name' => 'Dir 1.1', 'parentID' => 1),
21                                3 => array ('id' => 4, 'name' => 'Dir 1.1.1', 'parentID' => 3),
22                                4 => array ('id' => 5, 'name' => 'Dir 1.1.1.1', 'parentID' => 4),
23                                5 => array ('id' => 6, 'name' => 'Dir 1.1.2', 'parentID' => 3),
24                                6 => array ('id' => 7, 'name' => 'Dir 3', 'parentID' => 0),
25                                7 => array ('id' => 8, 'name' => 'Dir 3.1', 'parentID' => 7)
26                );
27               
28                $aryFile = array(
29                                0 => array('id' => 1, 'name' => 'File 1', 'minetype' => 'text', 'size' => '1.5MB', 'parentID' => 1),
30                                1 => array('id' => 2, 'name' => 'File 2', 'minetype' => 'text', 'size' => '1.6MB', 'parentID' => 1),
31                                2 => array('id' => 3, 'name' => 'File 3', 'minetype' => 'text', 'size' => '1.7MB', 'parentID' => 2),
32                                3 => array('id' => 4, 'name' => 'File 4', 'minetype' => 'text', 'size' => '1.8MB', 'parentID' => 2),
33                                4 => array('id' => 5, 'name' => 'File 5', 'minetype' => 'text', 'size' => '1.8MB', 'parentID' => 0),
34                                5 => array('id' => 6, 'name' => 'File 6', 'minetype' => 'text', 'size' => '1.8MB', 'parentID' => 3),
35                                5 => array('id' => 7, 'name' => 'File 7', 'minetype' => 'text', 'size' => '1.8MB', 'parentID' => 5)
36                );
37               
38                $aryData = array('DIRECTORIES' => $aryDir, 'FILES' => $aryFile);
39               
40                echo json_encode($aryData);
41        }
42
43        public function createDir () {
44               
45        }
46       
47        public function deleteDir () {
48               
49        }
50
51}
52
53/* End of file directory.php */
54/* Location: ./application/modules/ajax/controllers/directory.php */
Note: See TracBrowser for help on using the repository browser.