Function __global->content_get_details
Definitions
sources/content.php
- Get meta details of a content item.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: array
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $content_type | ID_TEXT | No | No | required parameter | N/A | N/A | Content type |
| $content_id | ID_TEXT | No | No | required parameter | N/A | N/A | Content ID |
| $resource_fs_style | boolean | No | No | False | N/A | N/A | Whether to use the content API as resource-fs requires (may be slightly different) |
| $fail_ok | boolean | No | No | False | N/A | N/A | Whether to exit with an array of nulls instead of bailing out on failure |
Returns
- Tuple: title, submitter, content hook info, the content row, URL (for use within current browser session), URL (for use in e-mails / sharing), Content object
- Type: array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Get meta details of a content item.
*
* @param ID_TEXT $content_type Content type
* @param ID_TEXT $content_id Content ID
* @param boolean $resource_fs_style Whether to use the content API as resource-fs requires (may be slightly different)
* @param boolean $fail_ok Whether to exit with an array of nulls instead of bailing out on failure
* @return array Tuple: title, submitter, content hook info, the content row, URL (for use within current browser session), URL (for use in e-mails / sharing), Content object
*/
function content_get_details(string $content_type, string $content_id, bool $resource_fs_style = false, bool $fail_ok = false) : array
* Get meta details of a content item.
*
* @param ID_TEXT $content_type Content type
* @param ID_TEXT $content_id Content ID
* @param boolean $resource_fs_style Whether to use the content API as resource-fs requires (may be slightly different)
* @param boolean $fail_ok Whether to exit with an array of nulls instead of bailing out on failure
* @return array Tuple: title, submitter, content hook info, the content row, URL (for use within current browser session), URL (for use in e-mails / sharing), Content object
*/
function content_get_details(string $content_type, string $content_id, bool $resource_fs_style = false, bool $fail_ok = false) : array
