| 
|   | before_filter (&$action, &$args) | 
|   | 
|   | paramSuffix ($action='') | 
|   | 
|   | renderSortLink ($action, $text, $field, $attributes=null) | 
|   | 
|   | jsUrl ($to='', $params=[]) | 
|   | 
|   | qs_result_action () | 
|   | 
|   | before_filter (&$action, &$args) | 
|   | 
|   | perform ($unconsumed_path) | 
|   | 
|   | after_filter ($action, $args) | 
|   | 
|   | validate_args (&$args, $types=null) | 
|   | 
|   | url_for ($to='') | 
|   | 
|   | link_for ($to='') | 
|   | 
|   | relocate ($to) | 
|   | 
|   | rescue ($exception) | 
|   | 
|   | render_json ($data) | 
|   | 
|   | render_csv ($data, $filename=null, $delimiter=';', $enclosure='"')  | 
|   | 
|   | relay ($to_uri) | 
|   | 
|   | perform_relayed ($unconsumed) | 
|   | 
|   | render_template_as_string ($template, $layout=null) | 
|   | 
|   | __call ($method, $arguments) | 
|   | 
|   | has_action ($action) | 
|   | 
|   | action_url ($action) | 
|   | 
|   | action_link ($action) | 
|   | 
- Author
 - Peter Thienel thien.nosp@m.el@d.nosp@m.ata-q.nosp@m.uest.nosp@m..de @license GPL2 or any later version 
 
- Since
 - 3.5 
 
 
◆ before_filter()
      
        
          | before_filter  | 
          ( | 
          &  | 
          $action,  | 
        
        
           | 
           | 
          &  | 
          $args  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Reimplemented from StudipController.
Reimplemented in Fachabschluss_AbschluesseController, Fachabschluss_FaecherController, Fachabschluss_KategorienController, Lvgruppen_LvgruppenController, Materialien_DokumenteController, Module_InstituteController, Module_ModuleController, Search_AngebotController, Search_ModuleController, Search_StgtableController, Search_StudiengaengeController, Seminar_DetailsController, Studiengaenge_StgteilbezeichnungenController, Studiengaenge_StudiengaengeController, Studiengaenge_StudiengangteileController, and Studiengaenge_VersionenController.
 
 
◆ do_search()
  
  
      
        
          | do_search  | 
          ( | 
            | 
          $class_name,  | 
         
        
           | 
           | 
            | 
          $search_term = null,  | 
         
        
           | 
           | 
            | 
          $search_id = null,  | 
         
        
           | 
           | 
            | 
          $filter = null  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
protected   | 
  
 
Perform the search for mvv objects of type defined by $class_name. Uses the findBySearchTerm method with its parameters $search_term and $filter. If $search_id is given, only this item will be found. Sets info messages with number of hits to page layout.
- See also
 - ModuleManagementModel::findBySearchTerm() 
 
- Parameters
 - 
  
    | string | $class_name | The name of an mvv object class.  | 
    | string | $search_term | The search term.  | 
    | string | $search_id | The id of an mvv object selected in quicksearch.  | 
    | array | $filter | An array with filter options feeded to search function to restrict search result.  | 
  
   
 
 
◆ getSearchResult()
  
  
      
        
          | getSearchResult  | 
          ( | 
            | 
          $class_name | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
Returns the current search result of the given class. The search result is an array of object ids.
- Parameters
 - 
  
    | string | The class name of the found objects.  | 
  
   
- Returns
 - array Array of search results. 
 
 
 
◆ initPageParams()
  
  
      
        
          | initPageParams  | 
          ( | 
            | 
          $action = null | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
Initialzes the controller (considers name of action if given) based parameters for page navigation and bind them to url.
- Parameters
 - 
  
    | string | $action | The name of the action (optional).  | 
  
   
 
 
◆ initSearchParams()
  
  
      
        
          | initSearchParams  | 
          ( | 
            | 
          $action = '' | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
Initialzes the controller (considers name of action if given) based parameters for search and bind them to url.
- Parameters
 - 
  
    | string | $action | The name of the action (optional).  | 
  
   
 
 
◆ IsVisible()
◆ jsUrl()
      
        
          | jsUrl  | 
          ( | 
            | 
          $to = '',  | 
        
        
           | 
           | 
            | 
          $params = []  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Renders a html snippet containing an url. This url is used by java script.
- Parameters
 - 
  
    | string | $to | A string containing a controller and optionally an action. Default is the current controller.  | 
    | array | $params | An array with url parameters.  | 
  
   
- Returns
 - string The html used in templates 
 
 
 
◆ paramSuffix()
      
        
          | paramSuffix  | 
          ( | 
            | 
          $action = '' | ) | 
           | 
        
      
 
Returns a controller based (considers name of action if given) suffix for url parameters.
- Parameters
 - 
  
    | string | $action | The name of the action (optional).  | 
  
   
- Returns
 - string Suffix for parameters. 
 
 
 
◆ qs_result_action()
This action is used to show a select box instead of an input field if the user has clicked on the magnifier icon of a quicksearch.
- Exceptions
 - 
  
  
 
 
 
◆ renderSortLink()
      
        
          | renderSortLink  | 
          ( | 
            | 
          $action,  | 
        
        
           | 
           | 
            | 
          $text,  | 
        
        
           | 
           | 
            | 
          $field,  | 
        
        
           | 
           | 
            | 
          $attributes = null  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Renders a html snippet with a sort link used in table headers.
- Parameters
 - 
  
    | string | $action | The action called by this link.  | 
    | string | $text | The text of the link.  | 
    | string | $field | The sort to sort by.  | 
    | array | $attributes | Additional url attributes.  | 
  
   
- Returns
 - string The html snippet. 
 
 
 
◆ reset_page()
  
  
      
        
          | reset_page  | 
          ( | 
            | 
          $action = '' | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
Resets the main page parameters for pagination and sorting for the given action.
- Parameters
 - 
  
    | string | $action | The name of the action that uses the pagination and sorting.  | 
  
   
 
 
◆ reset_search()
  
  
      
        
          | reset_search  | 
          ( | 
            | 
          $action = '' | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
Deletes the search results stored in $this->search_result for the given action.
- Parameters
 - 
  
    | string | $action | The name of the action that uses the particular search.  | 
  
   
Reimplemented in Search_ModuleController.
 
 
◆ sessDelete()
Deletes all values from the session used in this controller. 
 
 
◆ sessGet()
  
  
      
        
          | sessGet  | 
          ( | 
            | 
          $key,  | 
         
        
           | 
           | 
            | 
          $default = null  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
protected   | 
  
 
Returns the value of the given key from the session.
- Parameters
 - 
  
    | string | $key | The key of the value to return.  | 
  
   
- Returns
 - mixed The value from session with the given key. 
 
 
 
◆ sessRemove()
Removes the value with the given key from the session.
- Parameters
 - 
  
    | string | array | $keys | The key of the value to remove from session.  | 
  
   
 
 
◆ sessSet()
Stores a value with the given key in the session.
- Parameters
 - 
  
    | string | $key | The key of the value.  | 
    | mixed | $value | The value to store under the given key.  | 
  
   
- Returns
 - the stored value 
 
 
 
◆ setSidebar()
◆ trim()
This weird WYSIWIG-Editor stores an empty string as an empty diff-element. Use this function to check whether the field has no content (no input by the user).
- Parameters
 - 
  
    | string | $text | The text from db to check.  | 
  
   
- Returns
 - string An empty string, if the content is an empty diff or an empty string 
 
 
 
◆ $items_per_page
◆ $param_suffix
◆ $search_id
◆ $search_result
◆ $search_term
◆ $session_key
◆ $sidebar_rendered
  
  
      
        
          | $sidebar_rendered = false | 
         
       
   | 
  
protected   | 
  
 
 
The documentation for this class was generated from the following file: