Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
Author Class Reference

Manages all author-related data. More...

Public Member Functions

 __construct ($name=null, $link=null, $email=null)
 Constructor, used to input the data.
 
 __toString ()
 String-ified version.
 
 get_email ()
 Author's email address.
 
 get_link ()
 Author's link.
 
 get_name ()
 Author's name.
 

Public Attributes

string $email
 Author's email address.
 
string $link
 Author's link.
 
string $name
 Author's name.
 

Detailed Description

Manages all author-related data.

Used by {

See also
Item\get_author()} and {
SimplePie\get_authors()}

This class can be overloaded with {

See also
SimplePie\set_author_class()}

@subpackage API

Constructor & Destructor Documentation

◆ __construct()

Author::__construct ( $name = null,
$link = null,
$email = null )

Constructor, used to input the data.

Parameters
string$name
string$link
string$email

Member Function Documentation

◆ __toString()

Author::__toString ( )

String-ified version.

Return values
string

◆ get_email()

Author::get_email ( )

Author's email address.

Return values
string|null

◆ get_link()

Author::get_link ( )

Author's link.

Return values
string|null

◆ get_name()

Author::get_name ( )

Author's name.

Return values
string|null

Member Data Documentation

◆ $email

string Author::$email

Author's email address.

See also
get_email()

◆ $link

string Author::$link

Author's link.

See also
get_link()

◆ $name

string Author::$name

Author's name.

See also
get_name()

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