Static Public Member Functions | 
| static  | isCourseId ($id) | 
Member Function Documentation
      
        
          | add_action  | 
          ( | 
            | 
          $course_id = '-' | ) | 
           | 
        
      
 
This method is sent using AJAX to add a study area to a course.
- Parameters
 - 
  
    | string | the MD5ish ID of the course | 
  
   
- Returns
 - void 
 
 
 
      
        
          | before_filter  | 
          ( | 
          &  | 
          $action,  | 
        
        
           | 
           | 
          &  | 
          $args  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Callback function being called before an action is executed. If this function does not return FALSE, the action will be called, otherwise an error will be generated and processing will be aborted. If this function already #rendered or #redirected, further processing of the action is withheld.
- Parameters
 - 
  
    | string | Name of the action to perform.  | 
    | array | An array of arguments to the action. | 
  
   
- Returns
 - bool 
 
Reimplemented from AuthenticatedController.
 
 
      
        
          | expand_action  | 
          ( | 
            | 
          $course_id = '-',  | 
        
        
           | 
           | 
            | 
          $id = NULL  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
This method is sent using AJAX to expand a study area subtree whose root is the specified $id.
- Parameters
 - 
  
    | string | the MD5ish ID of the course  | 
    | string | the ID of the study area to expand | 
  
   
- Returns
 - void 
 
 
 
      
        
          | get_selection  | 
          ( | 
            | 
          $course_id | ) | 
           | 
        
      
 
Returns a StudipStudyAreaSelection object for a given course ID. If the course ID is falsy, use the session variable from admin_seminare_assi.
NOTE: This is a hack – remove it ASAP.
- Parameters
 - 
  
    | string | either the MD5ish ID of a course or something falsy to indicate a course that is currently being created | 
  
   
- Returns
 - mixed a "bean" of class StudipStudyAreaSelection representing the selection form 
 
 
 
Every (non-empty) string is a valid course ID except the string '-'
- Parameters
 - 
  
  
 
- Returns
 - bool TRUE if it is courseID-ish, FALSE otherwise 
 
 
 
      
        
          | remove_action  | 
          ( | 
            | 
          $course_id = '-' | ) | 
           | 
        
      
 
This method is sent using AJAX to remove a study area from a course.
- Parameters
 - 
  
    | string | the MD5ish ID of the course | 
  
   
- Returns
 - void 
 
 
 
      
        
          | show_action  | 
          ( | 
            | 
          $course_id = '-' | ) | 
           | 
        
      
 
This method shows the study area selection form for a given course ID.
- Parameters
 - 
  
    | string | the MD5ish ID of the course | 
  
   
- Returns
 - void 
 
 
 
      
        
          | store_selection  | 
          ( | 
            | 
          $course_id,  | 
        
        
           | 
           | 
            | 
          $selection  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
      
        
          | update_selection  | 
          ( | 
            | 
          $study_areas | ) | 
           | 
        
      
 
 
The documentation for this class was generated from the following file: