Function __global->banners_script
Definitions
sources/banners.php
- Show a banner according to GET parameter specification.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: object
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $ret | boolean | No | No | False | N/A | N/A | Whether to return a result rather than outputting |
| $type | ?string | No | No | Null | click "" | N/A | Whether we are displaying or click-processing (null: get from URL param) |
| $dest | ?string | No | No | Null | N/A | N/A | Specific banner to display (null: get from URL param) (blank: randomise) |
| $b_type | ?string | No | No | Null | N/A | N/A | Banner type to display (null: get from URL param) |
| $source | ?string | No | No | Null | N/A | N/A | The banner advertiser who is actively displaying the banner (calling up this function) and hence is rewarded (null: get from URL param) (blank: our own site) |
| $width | ?integer | No | No | Null | N/A | N/A | The width (null: standard for banner type) |
| $height | ?integer | No | No | Null | N/A | N/A | The height (null: standard for banner type) |
| $region | ?string | No | No | Null | N/A | N/A | Region to show for (null: auto-detect) |
Returns
- Result (null: we weren't asked to return the result)
- Type: ?Tempcode
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Show a banner according to GET parameter specification.
*
* @param boolean $ret Whether to return a result rather than outputting
* @param ?string $type Whether we are displaying or click-processing (null: get from URL param)
* @set click ""
* @param ?string $dest Specific banner to display (null: get from URL param) (blank: randomise)
* @param ?string $b_type Banner type to display (null: get from URL param)
* @param ?string $source The banner advertiser who is actively displaying the banner (calling up this function) and hence is rewarded (null: get from URL param) (blank: our own site)
* @param ?integer $width The width (null: standard for banner type)
* @param ?integer $height The height (null: standard for banner type)
* @param ?string $region Region to show for (null: auto-detect)
* @return ?Tempcode Result (null: we weren't asked to return the result)
*/
function banners_script(bool $ret = false, ?string $type = null, ?string $dest = null, ?string $b_type = null, ?string $source = null, ?int $width = null, ?int $height = null, ?string $region = null) : ?object
* Show a banner according to GET parameter specification.
*
* @param boolean $ret Whether to return a result rather than outputting
* @param ?string $type Whether we are displaying or click-processing (null: get from URL param)
* @set click ""
* @param ?string $dest Specific banner to display (null: get from URL param) (blank: randomise)
* @param ?string $b_type Banner type to display (null: get from URL param)
* @param ?string $source The banner advertiser who is actively displaying the banner (calling up this function) and hence is rewarded (null: get from URL param) (blank: our own site)
* @param ?integer $width The width (null: standard for banner type)
* @param ?integer $height The height (null: standard for banner type)
* @param ?string $region Region to show for (null: auto-detect)
* @return ?Tempcode Result (null: we weren't asked to return the result)
*/
function banners_script(bool $ret = false, ?string $type = null, ?string $dest = null, ?string $b_type = null, ?string $source = null, ?int $width = null, ?int $height = null, ?string $region = null) : ?object

