Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Author class.

Copyright: 2019 Ryan Wyllie <ryan@moodle.com>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 211 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: author  - X-Ref

Author class.

__construct(int $id,int $pictureitemid,string $firstname,string $lastname,string $fullname,string $email,bool $deleted,string $middlename = null,string $firstnamephonetic = null,string $lastnamephonetic = null,string $alternatename = null,string $imagealt = null)   X-Ref
Constructor.

param: int $id ID
param: int $pictureitemid Picture item id
param: string $firstname First name
param: string $lastname Last name
param: string $fullname Full name
param: string $email Email
param: string|null $middlename Middle name
param: string|null $firstnamephonetic Phonetic spelling of first name
param: string|null $lastnamephonetic Phonetic spelling of last name
param: string|null $alternatename Altername name
param: string|null $imagealt Image alt

get_id()   X-Ref
Return the id.

return: int

get_picture_item_id()   X-Ref
Return the picture item id.

return: int

get_first_name()   X-Ref
Return the first name.

return: string

get_last_name()   X-Ref
Return the last name.

return: string

get_full_name()   X-Ref
Return the full name.

return: string

get_email()   X-Ref
Return the email.

return: string

is_deleted()   X-Ref
Is the author deleted?

return: bool

get_middle_name()   X-Ref
Return the middle name.

return: string|null

get_first_name_phonetic()   X-Ref
Return the first name phonetic.

return: string|null

get_last_name_phonetic()   X-Ref
Return the last name phonetic.

return: string|null

get_alternate_name()   X-Ref
Return the alternate name.

return: string|null

get_image_alt()   X-Ref
Return the image alt.

return: string|null