Album
in package
Album functionality.
Tags
Table of Contents
Properties
- $instances : array<string|int, object>
- The array of instances of this class and sub-classes.
- $taxonomy_definition : Albums
- The instance of the Albums taxonomy definition class.
Methods
- get_content() : array<string|int, mixed>
- Return the attachments in an album.
- get_instance() : object
- Creates and/or returns the instance of this class.
- __construct() : void
- Initialise the class and set its properties.
Properties
$instances
The array of instances of this class and sub-classes.
protected
static array<string|int, object>
$instances
= array()
Tags
$taxonomy_definition
The instance of the Albums taxonomy definition class.
protected
Albums
$taxonomy_definition
Tags
Methods
get_content()
Return the attachments in an album.
public
get_content([string $album = '' ]) : array<string|int, mixed>
Parameters
- $album : string = ''
-
The album to target.
Tags
Return values
array<string|int, mixed> —An array of attachment objects.
get_instance()
Creates and/or returns the instance of this class.
public
static get_instance() : object
Tags
Return values
object —The instance of this class.
__construct()
Initialise the class and set its properties.
protected
__construct() : void