Subversion Repositories oidplus

Rev

Rev 327 | Rev 359 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 327 Rev 355
Line 27... Line 27...
27
 
27
 
28
        private $type = '';
28
        private $type = '';
29
        private $phpMainClass = '';
29
        private $phpMainClass = '';
30
        private $cssFiles = array();
30
        private $cssFiles = array();
31
        private $jsFiles = array();
31
        private $jsFiles = array();
-
 
32
        private $rawXML = null;
32
 
33
 
33
        public function getTypeClass(): string {
34
        public function getTypeClass(): string {
34
                return $this->type;
35
                return $this->type;
35
        }
36
        }
36
 
37
 
Line 64... Line 65...
64
 
65
 
65
        public function getJSFiles(): array {
66
        public function getJSFiles(): array {
66
                return $this->jsFiles;
67
                return $this->jsFiles;
67
        }
68
        }
68
 
69
 
-
 
70
        public function getRawXml(): object {
-
 
71
                return $this->rawXML;
-
 
72
        }
-
 
73
 
69
        public function loadManifest($filename) {
74
        public function loadManifest($filename) {
70
                if (!file_exists($filename)) return false;
75
                if (!file_exists($filename)) return false;
71
                $xmldata = @simplexml_load_file($filename);
76
                $xmldata = @simplexml_load_file($filename);
72
                if ($xmldata === false) return false;
77
                if ($xmldata === false) return false;
73
 
78
 
Line 90... Line 95...
90
                        $file = dirname($filename).'/'.$js_file;
95
                        $file = dirname($filename).'/'.$js_file;
91
                        if (!file_exists($file)) continue;
96
                        if (!file_exists($file)) continue;
92
                        $this->jsFiles[] = $file;
97
                        $this->jsFiles[] = $file;
93
                }
98
                }
94
 
99
 
-
 
100
                $this->rawXML = $xmldata;
-
 
101
 
95
                return true;
102
                return true;
96
        }
103
        }
97
 
104
 
98
}
105
}