Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
Rating Class Reference

Handles <media:rating> or <itunes:explicit> tags as defined in Media RSS and iTunes RSS respectively. More...

Public Member Functions

 __construct ($scheme=null, $value=null)
 Constructor, used to input the data.
 
 __toString ()
 String-ified version.
 
 get_scheme ()
 Get the organizational scheme for the rating.
 
 get_value ()
 Get the value of the rating.
 

Public Attributes

string $scheme
 Rating scheme.
 
string $value
 Rating value.
 

Detailed Description

Handles <media:rating> or <itunes:explicit> tags as defined in Media RSS and iTunes RSS respectively.

Used by {

See also
SimplePie\Enclosure\get_rating()} and {
SimplePie\Enclosureget_ratings()}

This class can be overloaded with {

See also
SimplePie\SimplePie\set_rating_class()}

@subpackage API

Constructor & Destructor Documentation

◆ __construct()

Rating::__construct ( $scheme = null,
$value = null )

Constructor, used to input the data.

For documentation on all the parameters, see the corresponding properties and their accessors

Member Function Documentation

◆ __toString()

Rating::__toString ( )

String-ified version.

Return values
string

◆ get_scheme()

Rating::get_scheme ( )

Get the organizational scheme for the rating.

Return values
string|null

◆ get_value()

Rating::get_value ( )

Get the value of the rating.

Return values
string|null

Member Data Documentation

◆ $scheme

string Rating::$scheme

Rating scheme.

See also
get_scheme()

◆ $value

string Rating::$value

Rating value.

See also
get_value()

The documentation for this class was generated from the following file: