Function __global->get_member_id_from_gallery_name
Definitions
sources/galleries.php
- Find the owner of a gallery.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: int
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $gallery_name | ID_TEXT | No | No | required parameter | N/A | N/A | The name of the gallery |
| $row | ?array | No | No | Null | N/A | N/A | Gallery row (null: look it up) |
| $only_if_personal_gallery | boolean | No | No | False | N/A | N/A | Only non-null if it is a personal gallery |
Returns
- The owner of the gallery (null: not a member owned gallery)
- Type: ?MEMBER
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Find the owner of a gallery.
*
* @param ID_TEXT $gallery_name The name of the gallery
* @param ?array $row Gallery row (null: look it up)
* @param boolean $only_if_personal_gallery Only non-null if it is a personal gallery
* @return ?MEMBER The owner of the gallery (null: not a member owned gallery)
*/
function get_member_id_from_gallery_name(string $gallery_name, ?array $row = null, bool $only_if_personal_gallery = false) : ?int
* Find the owner of a gallery.
*
* @param ID_TEXT $gallery_name The name of the gallery
* @param ?array $row Gallery row (null: look it up)
* @param boolean $only_if_personal_gallery Only non-null if it is a personal gallery
* @return ?MEMBER The owner of the gallery (null: not a member owned gallery)
*/
function get_member_id_from_gallery_name(string $gallery_name, ?array $row = null, bool $only_if_personal_gallery = false) : ?int
