Function __global->get_trackbacks
Definitions
sources/feedback.php
- Get the Tempcode containing all the trackbacks received, and the trackback posting form for the specified resource.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: object
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $feedback_type | ID_TEXT | No | No | required parameter | N/A | N/A | The type (downloads, etc) that this trackback is for |
| $content_id | ID_TEXT | No | No | required parameter | N/A | N/A | The ID of the type that this trackback is for |
| $allow_trackback | boolean | No | No | required parameter | N/A | N/A | Whether this resource allows trackback (if not, this function does nothing - but it's nice to move out this common logic into the shared function) |
| $type | ID_TEXT | No | No | Blank (empty string) | N/A | N/A | The type of details being fetched (currently: blank or XML) |
Returns
- Tempcode for complete trackback box
- Type: Tempcode
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Get the Tempcode containing all the trackbacks received, and the trackback posting form for the specified resource.
*
* @param ID_TEXT $feedback_type The type (downloads, etc) that this trackback is for
* @param ID_TEXT $content_id The ID of the type that this trackback is for
* @param boolean $allow_trackback Whether this resource allows trackback (if not, this function does nothing - but it's nice to move out this common logic into the shared function)
* @param ID_TEXT $type The type of details being fetched (currently: blank or XML)
* @return Tempcode Tempcode for complete trackback box
*/
function get_trackbacks(string $feedback_type, string $content_id, bool $allow_trackback, string $type = '') : object
* Get the Tempcode containing all the trackbacks received, and the trackback posting form for the specified resource.
*
* @param ID_TEXT $feedback_type The type (downloads, etc) that this trackback is for
* @param ID_TEXT $content_id The ID of the type that this trackback is for
* @param boolean $allow_trackback Whether this resource allows trackback (if not, this function does nothing - but it's nice to move out this common logic into the shared function)
* @param ID_TEXT $type The type of details being fetched (currently: blank or XML)
* @return Tempcode Tempcode for complete trackback box
*/
function get_trackbacks(string $feedback_type, string $content_id, bool $allow_trackback, string $type = '') : object
