original_string: public function availability_info($text, $additionalclasses = '') {
  
          $data = ['text' => $text, 'classes' => $additionalclasses];
          $additionalclasses = array_filter(explode(' ', $additionalclasses));
  
          if (in_array('ishidden', $additionalclasses)) {
              $data['ishidden'] = 1;
  
          } else if (in_array('isstealth', $additionalclasses)) {
              $data['isstealth'] = 1;
  
          } else if (in_array('isrestricted', $additionalclasses)) {
              $data['isrestricted'] = 1;
  
              if (in_array('isfullinfo', $additionalclasses)) {
                  $data['isfullinfo'] = 1;
              }
          }
  
          return $this->render_from_template('core/availability_info', $data);
      }
code: public function availability_info($text, $additionalclasses = '') {
  
          $data = ['text' => $text, 'classes' => $additionalclasses];
          $additionalclasses = array_filter(explode(' ', $additionalclasses));
  
          if (in_array('ishidden', $additionalclasses)) {
              $data['ishidden'] = 1;
  
          } else if (in_array('isstealth', $additionalclasses)) {
              $data['isstealth'] = 1;
  
          } else if (in_array('isrestricted', $additionalclasses)) {
              $data['isrestricted'] = 1;
  
              if (in_array('isfullinfo', $additionalclasses)) {
                  $data['isfullinfo'] = 1;
              }
          }
  
          return $this->render_from_template('core/availability_info', $data);
      }
code_tokens: public function availability_info ( $ text , $ additionalclasses = '' ) { $ data = [ 'text' => $ text , 'classes' => $ additionalclasses ] ; $ additionalclasses = array_filter ( explode ( ' ' , $ additionalclasses ) ) ; if ( in_array ( 'ishidden' , $ additionalclasses ) ) { $ data [ 'ishidden' ] = 1 ; } else if ( in_array ( 'isstealth' , $ additionalclasses ) ) { $ data [ 'isstealth' ] = 1 ; } else if ( in_array ( 'isrestricted' , $ additionalclasses ) ) { $ data [ 'isrestricted' ] = 1 ; if ( in_array ( 'isfullinfo' , $ additionalclasses ) ) { $ data [ 'isfullinfo' ] = 1 ; } } return $ this -> render_from_template ( 'core/availability_info' , $ data ) ; }
docstring: Displays availability info for a course section or course module
  
  @param string $text
  @param string $additionalclasses
  @return string
docstring_tokens: Displays availability info for a course section or course module