Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
core_search\document_icon Class Reference

Represents a document icon. More...

Public Member Functions

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

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: