Function Module_cms_galleries->has_at_least_one_watermark
Definitions
cms/pages/modules/cms_galleries.php
- See if a gallery has any watermarks to use, or all galleries.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: bool
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $cat | ?ID_TEXT | No | No | Null | N/A | N/A | The gallery (null: all the current user has access to) |
Returns
- Whether watermarks are available
- Type: boolean
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* See if a gallery has any watermarks to use, or all galleries.
*
* @param ?ID_TEXT $cat The gallery (null: all the current user has access to)
* @return boolean Whether watermarks are available
*/
public function has_at_least_one_watermark(?string $cat = null) : bool
* See if a gallery has any watermarks to use, or all galleries.
*
* @param ?ID_TEXT $cat The gallery (null: all the current user has access to)
* @return boolean Whether watermarks are available
*/
public function has_at_least_one_watermark(?string $cat = null) : bool

