The HU

The HU
Genres
Details
Herkunft
Flag of mn Mongolei
Social & Links
Fotos
Videos
Spotify
Genres
Details
Herkunft
Flag of mn Mongolei
Social & Links
⧉⌕$band PlekBandHandler#23012 (6)
  • Properties (6)
  • Available methods (86)
  • ⇄⧉public band -> array (23)
    $band->band
    ⇄id => integer 2975
    $band->band['id']
    ⇄name => string (6) "The HU"
    $band->band['name']
    ⇄slug => string (9) "mn_the-hu"
    $band->band['slug']
    ⇄description => string (0) ""
    $band->band['description']
    ⇄link => string (45) "https://plektest.plekvetica.ch/band/mn_the-hu"
    $band->band['link']
    ⇄⧉band_genre => array (2)
    $band->band['band_genre']
    ⇄alternative-metal => string (17) "Alternative Metal"
    $band->band['band_genre']['alternative-metal']
    ⇄rock => string (4) "Rock"
    $band->band['band_genre']['rock']
    ⇄facebook__link => string (39) "https://www.facebook.com/thehuofficial/"
    $band->band['facebook__link']
    ⇄website_link => string (30) "https://www.thehuofficial.com/"
    $band->band['website_link']
    ⇄herkunft => string (2) "MN"
    $band->band['herkunft']
    ⇄instagram_link => string (0) ""
    $band->band['instagram_link']
    ⇄bandlogo => boolean false
    $band->band['bandlogo']
    ⇄bandpic => boolean false
    $band->band['bandpic']
    ⇄⧉videos => string (13) " eb3ysMtu8t0"
    $band->band['videos']
    eb3ysMtu8t0
    
    ⇄band_galleries => string (14) "1591,2247,2303"
    $band->band['band_galleries']
    ⇄future_events_count => string (1) "1"
    $band->band['future_events_count']
    ⇄band_score => string (2) "56"
    $band->band['band_score']
    ⇄spotify_id => string (22) "0b2B3PwcYzQAhuJacmcYgc"
    $band->band['spotify_id']
    ⇄youtube_url => string (0) ""
    $band->band['youtube_url']
    ⇄twitter_url => string (0) ""
    $band->band['twitter_url']
    ⇄bio_text => string (0) ""
    $band->band['bio_text']
    ⇄⧉fetched_spotify_data => string (237) "{"id":"0b2B3PwcYzQAhuJacmcYgc","name":"Th...
    $band->band['fetched_spotify_data']
    {"id":"0b2B3PwcYzQAhuJacmcYgc","name":"The HU","popularity":59,"followers":713421,"image":"https://i.scdn.co/image/ab6761610000e5eb2ccdc24acf91ba14b1b2273a"}
    
    ⇄band_links => array (0)
    $band->band['band_links']
    ⇄author_id => null
    $band->band['author_id']
    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 __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
┌──────────────────────────────────────────────────────────────────────────────┐ │ $plek_error_handler->get_debug_messages() │ └──────────────────────────────────────────────────────────────────────────────┘ array (14) [ 'maybe_set_language' => string (24) "Language set by cookie: " 'load_textdomain' => string (30) "Loading user textdomain: de_DE" 'set_document_title_filter_post_type' => string (12) "tribe_events" 'set_document_title_filter_post_name' => string (8) "the-hu-2" 'set_document_title_filter_is_edit_page' => string (14) "Is edit page: " 'set_document_title_filter_post_type_0' => string (12) "tribe_events" 'set_document_title_filter_post_name_0' => string (8) "the-hu-2" 'set_document_title_filter_is_edit_page_0' => string (14) "Is edit page: " 'filter_ngg_image_url' => string (170) "https://plektest.plekvetica.ch/media_offloaded/wp-content/gallery/2020/the-hu-komplex-457-31-01-2020/thumbs/thumbs_The-HU-%40-Komplex-457-Zu%CC%88rich-31.01.2020-9025.jpg" 'filter_ngg_image_url_new' => string (155) "https://media-dev.plekvetica.ch/wp-content/gallery/2020/the-hu-komplex-457-31-01-2020/thumbs/thumbs_The-HU-%40-Komplex-457-Zu%CC%88rich-31.01.2020-9025.jpg" 'filter_ngg_image_url_0' => string (165) "https://plektest.plekvetica.ch/media_offloaded/wp-content/gallery/2023/the-hu-greenfield-festival-08-06-2023/thumbs/thumbs_PZ1_q135HUGIN%20a%20%20%20%20%28922%29.jpg" 'filter_ngg_image_url_new_0' => string (150) "https://media-dev.plekvetica.ch/wp-content/gallery/2023/the-hu-greenfield-festival-08-06-2023/thumbs/thumbs_PZ1_q135HUGIN%20a%20%20%20%20%28922%29.jpg" 'filter_ngg_image_url_1' => string (214) "https://plektest.plekvetica.ch/media_offloaded/wp-content/gallery/2023/the-hu-tuska-open-air-metal-festival-30-06-2023/thumbs/thumbs_The%20Hu%20%40%20TUSKA%20Festival%2C%20Helsinki%20-%2020230702%20-%20_D751487.jpg" 'filter_ngg_image_url_new_1' => string (199) "https://media-dev.plekvetica.ch/wp-content/gallery/2023/the-hu-tuska-open-air-metal-festival-30-06-2023/thumbs/thumbs_The%20Hu%20%40%20TUSKA%20Festival%2C%20Helsinki%20-%2020230702%20-%20_D751487.jpg" ] ════════════════════════════════════════════════════════════════════════════════ Called from <ROOT>/wp-content/plugins/plekvetica/include/class/error-handler.php:126 [s()]
┌──────────────────────────────────────────────────────────────────────────────┐ │ $debug_messages │ └──────────────────────────────────────────────────────────────────────────────┘ array (14) [ 'maybe_set_language' => string (24) "Language set by cookie: " 'load_textdomain' => string (30) "Loading user textdomain: de_DE" 'set_document_title_filter_post_type' => string (12) "tribe_events" 'set_document_title_filter_post_name' => string (8) "the-hu-2" 'set_document_title_filter_is_edit_page' => string (14) "Is edit page: " 'set_document_title_filter_post_type_0' => string (12) "tribe_events" 'set_document_title_filter_post_name_0' => string (8) "the-hu-2" 'set_document_title_filter_is_edit_page_0' => string (14) "Is edit page: " 'filter_ngg_image_url' => string (170) "https://plektest.plekvetica.ch/media_offloaded/wp-content/gallery/2020/the-hu-komplex-457-31-01-2020/thumbs/thumbs_The-HU-%40-Komplex-457-Zu%CC%88rich-31.01.2020-9025.jpg" 'filter_ngg_image_url_new' => string (155) "https://media-dev.plekvetica.ch/wp-content/gallery/2020/the-hu-komplex-457-31-01-2020/thumbs/thumbs_The-HU-%40-Komplex-457-Zu%CC%88rich-31.01.2020-9025.jpg" 'filter_ngg_image_url_0' => string (165) "https://plektest.plekvetica.ch/media_offloaded/wp-content/gallery/2023/the-hu-greenfield-festival-08-06-2023/thumbs/thumbs_PZ1_q135HUGIN%20a%20%20%20%20%28922%29.jpg" 'filter_ngg_image_url_new_0' => string (150) "https://media-dev.plekvetica.ch/wp-content/gallery/2023/the-hu-greenfield-festival-08-06-2023/thumbs/thumbs_PZ1_q135HUGIN%20a%20%20%20%20%28922%29.jpg" 'filter_ngg_image_url_1' => string (214) "https://plektest.plekvetica.ch/media_offloaded/wp-content/gallery/2023/the-hu-tuska-open-air-metal-festival-30-06-2023/thumbs/thumbs_The%20Hu%20%40%20TUSKA%20Festival%2C%20Helsinki%20-%2020230702%20-%20_D751487.jpg" 'filter_ngg_image_url_new_1' => string (199) "https://media-dev.plekvetica.ch/wp-content/gallery/2023/the-hu-tuska-open-air-metal-festival-30-06-2023/thumbs/thumbs_The%20Hu%20%40%20TUSKA%20Festival%2C%20Helsinki%20-%2020230702%20-%20_D751487.jpg" ] ════════════════════════════════════════════════════════════════════════════════ Called from <ROOT>/wp-content/plugins/plekvetica/include/class/error-handler.php:133 [s()]
Datenschutz-Übersicht

Diese Website verwendet Cookies, damit wir dir die bestmögliche Benutzererfahrung bieten können. Cookie-Informationen werden in deinem Browser gespeichert und führen Funktionen aus, wie das Wiedererkennen von dir, wenn du auf unsere Website zurückkehrst, und hilft unserem Team zu verstehen, welche Abschnitte der Website für dich am interessantesten und nützlichsten sind.