Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Public Member Functions | Protected Attributes | List of all members
core_search\document_icon Class Reference

Represents a document icon. More...

Public Member Functions

 __construct ($name, $component='moodle')
 Constructor. More...
 
 get_component ()
 Returns the component of the icon file. More...
 
 get_name ()
 Returns name of the icon file. More...
 

Protected Attributes

string $component
 Icon file component.
 
string $name
 Icon file name.
 

Detailed Description

Represents a document icon.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Constructor & Destructor Documentation

◆ __construct()

core_search\document_icon::__construct (   $name,
  $component = 'moodle' 
)

Constructor.

Parameters
string$nameIcon name.
string$componentIcon component.

Member Function Documentation

◆ get_component()

core_search\document_icon::get_component ( )

Returns the component of the icon file.

Return values
string

◆ get_name()

core_search\document_icon::get_name ( )

Returns name of the icon file.

Return values
string

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