예제 #1
0
 /**
  * get All Activities in Activity folder and remove Backend Activity
  * @author Kevin J <*****@*****.**>
  * @return array list of Frontend activity list
  */
 public static function get_available_activities()
 {
     $activities_folders = wpl_folder::folders(wpl_activity::get_activity_folder());
     $frontend_activity = array();
     foreach ($activities_folders as $activity) {
         if (wpl_activity::check_activity($activity, wpl_activity::ACTIVITY_FRONTEND)) {
             $frontend_activity[] = $activity;
         }
     }
     return $frontend_activity;
 }