コード例 #1
0
ファイル: hooks.php プロジェクト: v-iacovella/NeuroBox
 /**
  * returns true if a case study can be used for launching scripts.
  * If all the statuses of 
  * 
  * @param type $study
  */
 public static function is_study_runnable($study)
 {
     $array = PersistentMap::get_paths();
     foreach (array_keys($array) as $key) {
         if (strpos($key, $study) > 0) {
             #$syncing = self::$SYNC_STATUS[$key];
             $syncing = $array[$key];
             if ($syncing) {
                 return false;
             }
         }
     }
     return true;
 }