コード例 #1
0
 /**
  * Gets the list of the available valid webapps.
  *
  * @return array
  */
 public function &getWebAppsList()
 {
     $list = array();
     if ($dh = opendir($this->home)) {
         while (($file = readdir($dh)) !== false) {
             if ($file != '.' and $file != '..' and is_dir($this->home . $file)) {
                 if (WebApp::isValid($this->home . $file)) {
                     $list[] = $file;
                 }
             }
         }
         closedir($dh);
     }
     return $list;
 }