Description

This function returns a single publication selected by BibTeX key.

Usage

$publication = tp_publication::get_publication_by_key($key, $output_type);

Parameters

key

(string) The BibTeX key.

output_type (optional)

(string) You can choice between:

  • OBJECT (default)
  • ARRAY_A
  • ARRAY_N

Return

(array or object)

An array or object containing all the publication fields.

Example

$publication = tp_publication::get_publication_by_key('wagner2015a', ARRAY_A);

Changelog

  • Since: 5.0.0