29. Oktober 2026
- ⧉⌕$band PlekBandHandler#23004 (6)
- Properties (6)
- Available methods (86)
- ⇄⧉public band -> array (17)$band->band
- ⇄id => integer 899$band->band['id']
- ⇄name => string (9) "Threshold"$band->band['name']
- ⇄slug => string (9) "threshold"$band->band['slug']
- ⇄description => string (0) ""$band->band['description']
- ⇄link => string (45) "https://plektest.plekvetica.ch/band/threshold"$band->band['link']
- ⇄⧉band_genre => array (1)$band->band['band_genre']
- ⇄progressive-rock => string (16) "Progressive Rock"$band->band['band_genre']['progressive-rock']
- ⇄progressive-rock => string (16) "Progressive Rock"
- ⇄facebook__link => string (34) "https://www.facebook.com/threshold"$band->band['facebook__link']
- ⇄website_link => string (21) "http://www.thresh.net"$band->band['website_link']
- ⇄instagram_link => string (0) ""$band->band['instagram_link']
- ⇄herkunft => string (2) "GB"$band->band['herkunft']
- ⇄bandlogo => boolean false$band->band['bandlogo']
- ⇄⧉bandpic => string (83) "https://plektest.plekvetica.ch/wp-content/uploads/2018/07/Threshold2017e-sca...$band->band['bandpic']
https://plektest.plekvetica.ch/wp-content/uploads/2018/07/Threshold2017e-scaled.jpg
- ⇄videos => string (0) ""$band->band['videos']
- ⇄future_events_count => string (1) "1"$band->band['future_events_count']
- ⇄band_score => string (2) "36"$band->band['band_score']
- ⇄band_links => array (0)$band->band['band_links']
- ⇄author_id => null$band->band['author_id']
- ⇄id => integer 899
- protected band_genres -> null
- ⇄public last_updated_id -> null$band->last_updated_id
- ⇄public all_bands_page -> string (36) "https://plektest.plekvetica.ch/bands"$band->all_bands_page
- ⧉protected bandpic_placeholder -> string (93) "https://plektest.plekvetica.ch/wp-content/plugins/plekvetica/images/placehol...
https://plektest.plekvetica.ch/wp-content/plugins/plekvetica/images/placeholder/band_logo.jpg
- ⇄public total_posts -> array (0)$band->total_posts
- ⇄⧉public band -> array (17)
- ⇄⧉public __construct()new \PlekBandHandler()
Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:35
- ⇄⧉public get_all_bands_link(): string The URL of the page Get the URL of the all bands page$band->get_all_bands_link()
/** * Get the URL of the all bands page * @return string The URL of the page */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:44
- ⇄⧉public plek_band_page_shortcode(): void Shortcode for the Bandpage$band->plek_band_page_shortcode()
/** * Shortcode for the Bandpage * * @return void */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:54
- ⇄⧉public plek_add_band_button_shortcode(): string The Button Shortcode for the add Band button$band->plek_add_band_button_shortcode()
/** * Shortcode for the add Band button * * @return string The Button */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:64
- ⇄⧉public plek_add_band_form_shortcode(): string The new band form Shortcode for the add Band from$band->plek_add_band_form_shortcode()
/** * Shortcode for the add Band from * * @return string The new band form */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:77
- ⇄⧉public load_band_object(string $slug = ''): array Band array. Loads the Band Term. Loads all ACF fields.$band->load_band_object(string $slug = '')
/** * Loads the Band Term. Loads all ACF fields. * * @param string $slug - Band / tag slug * @return array Band array. */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:88
- ⇄⧉public load_band_object_by_id(string $id = ''): object|bool Plek_Band object or false if not found Loads the Band by ID
The Band get loaded as the current band ($this -> band)$band->load_band_object_by_id(string $id = '')
/** * Loads the Band by ID * The Band get loaded as the current band ($this -> band) * * @param string $id * @return object|bool Plek_Band object or false if not found */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:114
- ⇄⧉public term_to_band_object(object $term): object The Plek_band object Loads all the meta of an band to the Band object.$band->term_to_band_object(object $term)
/** * Loads all the meta of an band to the Band object. * * @param object $term - WP_Term object * @return object The Plek_band object */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:129
- ⇄⧉public get_band_object(): array Array of the Band object Gets the Band object.
If empty, run load_band_object first.$band->get_band_object()
/** * Gets the Band object. * If empty, run load_band_object first. * * @return array Array of the Band object */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:195
- ⇄⧉public get_band_formatted(): string|null A formatted string containing the band's details, or null if the band data is empty. Formats and returns the band data as a string.$band->get_band_formatted()
/** * Formats and returns the band data as a string. * * This function retrieves various details about the band, such as the name, logo, origin, description, videos, photos, genres, links, and a link to the band's page, and formats them into a structured string with HTML headers. * * @return string|null A formatted string containing the band's details, or null if the band data is empty. */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:208
- ⇄⧉public set_band_object($band_arr = array()): array Array of the Band object Sets the Band object. Format must be the same as loaded with load_band_object$band->set_band_object($band_arr = array())
/** * Sets the Band object. Format must be the same as loaded with load_band_object * * @param array $band_arr - Array of the Band object * @return array Array of the Band object */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:240
- ⇄⧉public get_name(): string Band Name Get the Band name.$band->get_name()
/** * Get the Band name. * * @return string Band Name */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:250
- ⇄⧉public get_name_link($target = '_self'): string Band Name Get the Band name with link to band.$band->get_name_link($target = '_self')
/** * Get the Band name with link to band. * * @param string $target - Target for the link. _self or _blank * * @return string Band Name */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:265
- ⇄⧉public get_description(): string Band Description Get the Band description.$band->get_description()
/** * Get the Band description. * * @return string Band Description */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:279
- ⇄⧉public get_videos($return_array = true): string|array Band Video links as an array or string Get the Band Videos.$band->get_videos($return_array = true)
/** * Get the Band Videos. * @param bool $return_array - Defines if the output should be an array or string * @return string|array Band Video links as an array or string */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:291
- ⇄⧉public has_videos(): bool true if Band has videos, else false Checks if the Band has Videos.$band->has_videos()
/** * Checks if the Band has Videos. * * @return bool true if Band has videos, else false */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:304
- ⇄⧉public get_photos(): array Gallery Id's as a array Get the Band Photos.$band->get_photos()
/** * Get the Band Photos. * * @return array Gallery Id's as a array */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:314
- ⇄⧉public get_id(): string Band ID Get the Band / Tag ID.$band->get_id()
/** * Get the Band / Tag ID. * * @return string Band ID */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:324
- ⇄⧉public get_slug(): string Band Slug Get the Band / Tag Slug.$band->get_slug()
/** * Get the Band / Tag Slug. * * @return string Band Slug */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:333
- ⇄⧉public get_genres(): array Genres Get the Genres Array$band->get_genres()
/** * Get the Genres Array * * @return array Genres */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:342
- ⇄⧉public get_logo(): string Band logo link Get the Band logo/image
If no image is uploaded but a spotify image found, t...$band->get_logo()
/** * Get the Band logo/image * If no image is uploaded but a spotify image found, the spotify image will be returned * * @return string Band logo link */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:358
- ⇄⧉public get_logo_formatted(): string Band logo as img tag Get the Band logo, wraped in img tags.
If an image from the spotify data is ...$band->get_logo_formatted()
/** * Get the Band logo, wraped in img tags. * If an image from the spotify data is found, it will display it, if no bandlogo is set. * * @return string Band logo as img tag */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:376
- ⇄⧉public get_flag_formatted($country_code = ''): string Band flag as img tag Get the Band flag, wraped in img tags.
Flag images are located in /images/fl...$band->get_flag_formatted($country_code = '')
/** * Get the Band flag, wraped in img tags. * Flag images are located in /images/flags/ and the files are named after the ISO country code * * @return string Band flag as img tag */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:393
- ⇄⧉public get_country_name(): string Country name or country code Get the country Name. If not found, it will return the country code$band->get_country_name()
/** * Get the country Name. If not found, it will return the country code * * @return string Country name or country code */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:415
- ⇄⧉public get_all_countries(): array countries ("CODE" => "Name") Get all the available countries for a band$band->get_all_countries()
/** * Get all the available countries for a band * * @return array countries ("CODE" => "Name") */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:430
- ⇄⧉public get_all_countries_json(): string Returns the available countries in english language as an json string$band->get_all_countries_json()
/** * Returns the available countries in english language as an json string * * @return string */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:449
- ⇄⧉public get_country()$band->get_country()
Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:456
- ⇄⧉public has_links(): boolean Check if a band has links defined$band->has_links()
/** * Check if a band has links defined * * @return boolean */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:466
- ⇄⧉public get_social_link($id, $convert_to_url = true): string The Link or empty string if not found Gets the link to the social media site$band->get_social_link($id, $convert_to_url = true)
/** * Gets the link to the social media site * * @param string $id - The ACF to get. E.g. instagram_link * @param string $convert_to_url - Converts the link / ID to a valid URL. * @return string The Link or empty string if not found */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:481
- ⇄⧉public format_band_array($genres): array formated array Formats the ACF Band genres value.
Input = array( 0 => array('label' => 'Hea...$band->format_band_array($genres)
/** * Formats the ACF Band genres value. * Input = array( 0 => array('label' => 'Heavy Metal', 'value' = 'heavy-metal')) * output = array('heavy-metal' => 'Heavy Metal',..) * * @param array $genres Array from ACF "get_field()" * @return array formated array */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:519
- ⇄⧉public get_genre_nicename(string $genre): string|false Nicename on success, false if not found. Gets the nicename of a genre (slug)$band->get_genre_nicename(string $genre)
/** * Gets the nicename of a genre (slug) * * @param string $genre * @return string|false Nicename on success, false if not found. */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:537
- ⇄⧉public convert_genre_to_nicename($genres): array Converts a whole array of genres to their nicenames$band->convert_genre_to_nicename($genres)
/** * Converts a whole array of genres to their nicenames * * @param array|string $genres String or array with genres. If string, $genres will be unserialized before * @return array */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:557
- ⇄⧉public get_band_link($band_slug = null): string The permalink to the band page Geht the link to the Band's page$band->get_band_link($band_slug = null)
/** * Geht the link to the Band's page * * @param string $band_slug - The Band Slug * @return string The permalink to the band page */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:578
- ⇄⧉public delete_band($band_id = null)$band->delete_band($band_id = null)
Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:615
- ⇄⧉public get_genre_link(string $genre_slug): string The Link to the calendar, showing the category $genre_slug Gets the Category / Genre link to the calendar$band->get_genre_link(string $genre_slug)
/** * Gets the Category / Genre link to the calendar * * @param string $genre_slug - The genre slug * @return string The Link to the calendar, showing the category $genre_slug */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:643
- ⇄⧉public get_all_bands(bool $meta = true): array With WP_Term Object Get all the Bands$band->get_all_bands(bool $meta = true)
/** * Get all the Bands * * @param boolean $meta - If the Meta should be loaded or not. * @return array With WP_Term Object */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:658
- ⇄⧉public get_bands_by_ids($ids = array(), bool $meta = true): array The bands found or empty array Loads the bands by ID$band->get_bands_by_ids($ids = array(), bool $meta = true)
/** * Loads the bands by ID * * @param array $ids - The term_taxonomy_id of the band to get. * @param boolean $meta - If the Meta should be loaded as well or not * @return array The bands found or empty array */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:678
- ⇄⧉public get_all_band_ids($limit = null, $offset = null): array Get all the band ids. Similar to get_all_bands, but it returns only the ids.
...$band->get_all_band_ids($limit = null, $offset = null)
/** * Get all the band ids. Similar to get_all_bands, but it returns only the ids. * And it is faster than the wordpress get_tags function. * * @return array */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:697
- ⇄⧉public get_all_genres($return_as_array = false): array Array with WP_Term Objects or Array[slug] => Name Get all the Genres
Loads the Genres in $this -> band_genres$band->get_all_genres($return_as_array = false)
/** * Get all the Genres * Loads the Genres in $this -> band_genres * @param bool $return_as_array - If a array containing only the slug and name should be returned * * @return array Array with WP_Term Objects or Array[slug] => Name */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:726
- ⇄⧉public get_acf_band_genres(): bool|array False on error, array with the choices / genres Loads all the Band genres from ACF$band->get_acf_band_genres()
/** * Loads all the Band genres from ACF * * @return bool|array False on error, array with the choices / genres */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:752
- ⇄⧉public get_bands($limit = 10): void Get all the Bands$band->get_bands($limit = 10)
/** * Get all the Bands * * @param integer $limit * @todo: use custom query? use offset for second page * @return void */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:779
- ⇄⧉public get_all_bands_followed_by_user($user_id = null, $limit = 10): void Get all the Bands by followed user$band->get_all_bands_followed_by_user($user_id = null, $limit = 10)
/** * Get all the Bands by followed user * * @param integer $limit * @return void */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:854
- ⇄⧉public get_band_order(): string ORDER_BY value Gets the band order_by from the url query.
Returns "name" if order is not fo...$band->get_band_order()
/** * Gets the band order_by from the url query. * Returns "name" if order is not found in the allowed types * * @return string ORDER_BY value */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:873
- ⇄⧉public get_band_sort_direction(): string ORDER_BY value Gets the band order_by from the url query.
Returns "name" if sort is not fou...$band->get_band_sort_direction()
/** * Gets the band order_by from the url query. * Returns "name" if sort is not found in the allowed types * * @return string ORDER_BY value */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:891
- ⇄⧉public get_all_bands_json($bands = array()): string JSON Array Loads all the bands for the ajax preloader$band->get_all_bands_json($bands = array())
/** * Loads all the bands for the ajax preloader * * @return string JSON Array */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:907
- ⇄⧉public format_band_genres($genres): string The formated array Formats the band genres from array to comma separated string$band->format_band_genres($genres)
/** * Formats the band genres from array to comma separated string * * @param array $genres * @return string The formated array */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:932
- ⇄⧉public enqueue_form_styles()$band->enqueue_form_styles()
Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:946
- ⇄⧉public enqueue_form_scripts(): void Enqueues the scripts for the band from.
Scripts to load: manage-band.js, sel...$band->enqueue_form_scripts()
/** * Enqueues the scripts for the band from. * Scripts to load: manage-band.js, select2 * * @return void */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:957
- ⇄⧉public save_band(): bool|WP_Error Saves the band to the database.
If the band id is not set, it will call add_...$band->save_band()
/** * Saves the band to the database. * If the band id is not set, it will call add_new_band. * If the band id is set, it will load the band object and check if the user can edit the band. * Will validate the band data and return an error if it fails. * If successful, it will call update_band. * * @return bool|WP_Error */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:975
- ⇄⧉public add_new_band(): true|string True on success, string on error Saves a new Band
After creation, the site admin gets a notification$band->add_new_band()
/** * Saves a new Band * After creation, the site admin gets a notification * @todo: On Add Event, assign the venue to the new user, in case he creates an account. * @todo: Assign band to guest author if user is not logged in. * * @return true|string True on success, string on error */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:1019
- ⇄⧉public band_exists_ajax(): string|bool String with the name of the Band if exists, otherwise false Checks if a band already exists or not.$band->band_exists_ajax()
/** * Checks if a band already exists or not. * * @return string|bool String with the name of the Band if exists, otherwise false */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:1066
- ⇄⧉public get_metal_archives_proposals(): bool|string False on error, string with json data on success Searches for a band on Metal Archives and returns the data as json$band->get_metal_archives_proposals()
/** * Searches for a band on Metal Archives and returns the data as json * * @return bool|string False on error, string with json data on success */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:1101
- ⇄⧉public validate_band_data($require_id = true): bool|array true on success, error array on failure. Validates all Band data$band->validate_band_data($require_id = true)
/** * Validates all Band data * @param bool $require_id If the ID is required. Set this to false to save a new Band. * * @return bool|array true on success, error array on failure. */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:1132
- ⇄⧉public update_band($id = null, $return_all_bands = false): object|bool PlekBandHandler Object on success, false on error. Saves the Data to the database and acf.$band->update_band($id = null, $return_all_bands = false)
/** * Saves the Data to the database and acf. * @param int $id The term ID to update * @param bool $return_all_bands Returns all Bands after update ($this -> get_all_bands_json()) * * @return object|bool PlekBandHandler Object on success, false on error. */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:1165
- ⇄⧉public get_link_domainname($link, $do_not_return_empty = false): string The sanitized domain name, or empty string if extraction fails. Extracts and returns the domain name from a given URL.$band->get_link_domainname($link, $do_not_return_empty = false)
/** * Extracts and returns the domain name from a given URL. * * @param string $link The URL from which to extract the domain name. * @return string The sanitized domain name, or empty string if extraction fails. */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:1252
- ⇄⧉public get_band_form_value($form_field_name, $strip_tags = true): string The filtered data Loads an value from ajax request and filters the data$band->get_band_form_value($form_field_name, $strip_tags = true)
/** * Loads an value from ajax request and filters the data * * @param string $form_field_name - Name/ID of the input field * @param boolean $strip_tags * @return string The filtered data */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:1277
- ⇄⧉public band_is_managed(int $band_id): mixed False if band is not managed, otherwise an array with the user_ids Checks if a band is managed by anyone.$band->band_is_managed(int $band_id)
/** * Checks if a band is managed by anyone. * * @param integer $band_id * @return mixed False if band is not managed, otherwise an array with the user_ids */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:1311
- ⇄⧉public band_is_managed_by_user(int $band_id, int $user_id): bool True if user is managing band Checks if a band is managed by a specific user.$band->band_is_managed_by_user(int $band_id, int $user_id)
/** * Checks if a band is managed by a specific user. * * @param integer $band_id * @param integer $user_id * @return bool True if user is managing band */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:1335
- ⇄⧉public get_band_managers_names(int $band_id): void Get all the Authors, which are managing the band given$band->get_band_managers_names(int $band_id)
/** * Get all the Authors, which are managing the band given * * @param integer $band_id * @return void */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:1350
- ⇄⧉public user_is_follower(?int $user_id = null): bool true if follower, false if found but not active, null if never set. Checks if the user given is following the band or not.
Use load_band_object(...$band->user_is_follower(?int $user_id = null)
/** * Checks if the user given is following the band or not. * Use load_band_object() before this function * * @param integer|null $user_id * @return bool true if follower, false if found but not active, null if never set. */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:1375
- ⇄⧉public get_follower_count($cache = true): int The total users following the band Retuns the total follower of the band.
Use load_band_object() before this fu...$band->get_follower_count($cache = true)
/** * Retuns the total follower of the band. * Use load_band_object() before this function * * @param @deprecated bool $cache - If true, the value gets loaded from the previous load_band_object. Otherwise it will load it from the DB * @return int The total users following the band */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:1388
- ⇄⧉public get_band_score($cache = true): void Loads the Bandscore$band->get_band_score($cache = true)
/** * Loads the Bandscore * * @return void */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:1398
- ⇄⧉public toggle_follower_from_ajax(): String|WP_Error Toggles the follower from ajax.
It uses the current user and the band_id given$band->toggle_follower_from_ajax()
/** * Toggles the follower from ajax. * It uses the current user and the band_id given * * @return String|WP_Error */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:1419
- ⇄⧉public bandpage_pagination_hack($query): object Hack to prevent 404 Page on Tag Page$band->bandpage_pagination_hack($query)
/** * Hack to prevent 404 Page on Tag Page * * @param object $query * @return object */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:1449
- ⇄⧉public update_band_score($band_id): array|false Band score array or false Calculates the Band Score$band->update_band_score($band_id)
/** * Calculates the Band Score * * @param string $band_id * @return array|false Band score array or false */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:1465
- ⇄⧉public update_all_band_scores(): int count of updated entries. Update all the Bandscores
To avoid overloading the server, not all bandscore...$band->update_all_band_scores()
/** * Update all the Bandscores * To avoid overloading the server, not all bandscores will be updated at once. * The function gets called every hour by cron job and updates only a part of the Bands. * After 24h all the bands are updated once. * * @return int count of updated entries. */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:1496
- ⇄⧉public calculate_band_score($follower, $origin, $future_events, $all_events): int Band Score Calculate the Band Score.$band->calculate_band_score($follower, $origin, $future_events, $all_events)
/** * Calculate the Band Score. * @todo: Validate the Band Score and add more country scores? * * @param int $follower * @param string $origin * @param int $future_events * @param int $all_events * @return int Band Score */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:1523
- ⇄⧉public update_band_future_count($band_id): int future events count Updates the future event count of an event.$band->update_band_future_count($band_id)
/** * Updates the future event count of an event. * * @param string $band_id * @return int future events count */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:1547
- ⇄⧉public get_unique_band_slug(string $name, string $origin): void Returns an unique term slug for the Band$band->get_unique_band_slug(string $name, string $origin)
/** * Returns an unique term slug for the Band * * @param string $name * @param string $origin * @return void */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:1567
- ⇄⧉public update_band_galleries($gallery_id): bool|null True on success, false on error, null if nothing changed. Updates the band_galleries acf
Make sure to load the band before using this ...$band->update_band_galleries($gallery_id)
/** * Updates the band_galleries acf * Make sure to load the band before using this function! * * @param int $gallery_id * @return bool|null True on success, false on error, null if nothing changed. */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:1592
- ⇄⧉public get_spotify_data($field = null): false|null|string|object - False on error, null when the field is not found, string for the field data and object if the $field is null Gets the data from spotify stored in the band object.$band->get_spotify_data($field = null)
/** * Gets the data from spotify stored in the band object. * @param string $field - Which field to return. id, name, popularity, follower, image * * @return false|null|string|object - False on error, null when the field is not found, string for the field data and object if the $field is null */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:1613
- ⇄⧉public add_band_of_the_month_score_of_user($type, $user_id = null, $plek_event = null): bool Adds the botm score to all the users bands. If user is not a band, it will re...$band->add_band_of_the_month_score_of_user($type, $user_id = null, $plek_event = null)
/** * Adds the botm score to all the users bands. If user is not a band, it will return false. * * @param string $type - Type of the action. See update_band_of_the_month_score() for accepted values * @param int $user_id * @param object $plek_event - PlekEvents with loaded event * * @todo: Check if user did this action the first time this day * @return bool */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:1643
- ⇄⧉public update_band_of_the_month_score($band_id, $type, $extra_points0): bool Adds points to the botm_score$band->update_band_of_the_month_score($band_id, $type, $extra_points0)
/** * Adds points to the botm_score * * @param int $band_id - Id of the Band * @param string $type - add_event, add_band, edit_event, add_event, login * @param int $extra_points - Gives extra points for any type * @return bool */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:1674
- ⇄⧉public get_bands_of_the_month($view = 'html'): object|string WP_Term if $view is raw, html formatted string otherwise Returns the band of the months.$band->get_bands_of_the_month($view = 'html')
/** * Returns the band of the months. * * @param string $view - Output. Can be html or raw * @return object|string WP_Term if $view is raw, html formatted string otherwise */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:1734
- ⇄⧉public plek_get_botm_shortcode(): void Shortcode to get the bands of the month$band->plek_get_botm_shortcode()
/** * Shortcode to get the bands of the month * * @return void */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:1753
- ⇄⧉public set_bands_of_the_month(): void Defines the bands of the month and saves it to the options$band->set_bands_of_the_month()
/** * Defines the bands of the month and saves it to the options * * @return void */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:1763
- ⇄⧉public plek_get_botm_list_shortcode(): void Gets the current bands of the month as an list$band->plek_get_botm_list_shortcode()
/** * Gets the current bands of the month as an list * * @return void */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:1804
- ⇄⧉public delete_bands_of_the_month_scores(): int|bool Updated rows or false on error Resets all botm scores$band->delete_bands_of_the_month_scores()
/** * Resets all botm scores * * @return int|bool Updated rows or false on error */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:1848
- ⇄⧉public maybe_post_botm_to_facebook(): void Maybe posts a single band of the month to facebook$band->maybe_post_botm_to_facebook()
/** * Maybe posts a single band of the month to facebook * * @return void */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:1859
- ⇄⧉public get_all_bands_website_as_csv(): void Prints out all the bands with name, origin and website
Bands without website...$band->get_all_bands_website_as_csv()
/** * Prints out all the bands with name, origin and website * Bands without website will be skipped. * * @return void */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:1899
- ⇄⧉public get_links(): array An array containing all the links associated with the band. Retrieves all the links associated with the band.$band->get_links()
/** * Retrieves all the links associated with the band. * * This function returns a list of all the links for the current band, * including both the modern 'band_links' and legacy social media links. * * @return array An array containing all the links associated with the band. */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:1925
- ⇄⧉public get_instagram_handle(): string The Instagram handle or an empty string if not found. Retrieves the Instagram handle for the current band.$band->get_instagram_handle()
/** * Retrieves the Instagram handle for the current band. * * This function goes through all the links associated with the band and * returns the first Instagram handle found. If no handle is found, * an empty string is returned. * * @return string The Instagram handle or an empty string if not found. */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:1962
- ⇄⧉public set_instagram_handle(int $band_id, string $handle): WP_Error|bool Sets the Instagram handle for a band.$band->set_instagram_handle(int $band_id, string $handle)
/** * Sets the Instagram handle for a band. * * This function sets the Instagram handle for the band with the given ID. * If the band does not exist, a WP_Error is returned. * If the handle does not exist on Instagram, a WP_Error is returned. * If the handle already exists for the band, the function will return true without * updating the handle. * * @param int $band_id The ID of the band. * @param string $handle The Instagram handle to set. * * @return WP_Error|bool WP_Error on failure, true on success. */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:1990
- ⇄⧉public static search_band(string $query = ''): array|bool Array with WP_Term Objects, or false if not found. Search for a Band.\PlekBandHandler::search_band(string $query = '')
/** * Search for a Band. * * * @param string $query The Search Query * @return array|bool Array with WP_Term Objects, or false if not found. */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:162
- ⇄⧉public static is_band_link(string $url): boolean Checks if the given string is a Band link\PlekBandHandler::is_band_link(string $url)
/** * Checks if the given string is a Band link * * @param string $url * @return boolean */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:593
- ⇄⧉public static is_band_edit(): boolean Checks if it is the band edit page\PlekBandHandler::is_band_edit()
/** * Checks if it is the band edit page * * @return boolean */ Defined in <ROOT>/wp-content/plugins/plekvetica/include/class/band-handler.php:606
- ⇄⧉public __construct()
Grossbritannien (GB)