3 class mw_env_app_files extends mw_env{
5 function app_file_exists($file, $PRIORITE = "ASC"){
6 $app_file = $this->_app_file($file, $PRIORITE);
7 return $app_file ? true : false;
10 function app_file($file, $PRIORITE = "ASC"){
11 $app_file = $this->_app_file($file, $PRIORITE);
12 return $app_file ? $app_file : $file;
15 function _app_file($file, $PRIORITE = "ASC"){
17 if($PRIORITE == "ASC" && file_exists($this->path("mw_dir")."app/".$file)) return $this->path("mw_dir")."app/".$file;
18 if(($plugins = $this->plugins($PRIORITE)) !== false){
19 foreach($plugins as $plugin_name => $plugin){
22 && $plugin["installed"]
24 && file_exists($this->path("mw_dir")."plugins/".$plugin_name."/app/".$file)
26 $app_file = $this->path("mw_dir")."plugins/".$plugin_name."/app/".$file;
30 if($PRIORITE == "DESC" && !$app_file){
31 if(file_exists($this->path("mw_dir")."app/".$file)) $app_file = $this->path("mw_dir")."app/".$file;