HEX
Server: nginx/1.27.1
System: Linux in-3 5.15.0-161-generic #171-Ubuntu SMP Sat Oct 11 08:17:01 UTC 2025 x86_64
User: ivenus-clone (3297)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
Upload Files
File: /storage/v4513/tepnot/public_html/wp-content/plugins/dokan-pro/includes/Brands/Manager.php
<?php

namespace WeDevs\DokanPro\Brands;

/**
 * Class responsible for managing product brands functionality
 *
 * @deprecated 4.0.5 Use WooCommerce native product brands instead. @see OldBrandsMigration
 */
class Manager {

    /**
     * Is YITH plugin active or not
     *
     * @since 2.9.7
     * @deprecated 4.0.5 Use WooCommerce native product brands instead. @see OldBrandsMigration
     *
     * @var bool
     */
    public $is_active = false;

    /**
     * Is YITH premium plugin active or not
     *
     * @since 2.9.7
     * @deprecated 4.0.5 Use WooCommerce native product brands instead. @see OldBrandsMigration
     *
     * @var bool
     */
    public $is_premium_active = false;

    /**
     * Feature related admin settings
     *
     * @since 2.9.7
     * @deprecated 4.0.5 Use WooCommerce native product brands instead. @see OldBrandsMigration
     *
     * @var array
     */
    public $settings = [];

    /**
     * Set is_active property
     *
     * @since 3.0.0
     * @deprecated 4.0.5 Use WooCommerce native product brands instead. @see OldBrandsMigration
     *
     * @param bool $is_active
     *
     * @return void
     */
    public function set_is_active( $is_active ) {
        $this->is_active = $is_active;
    }

    /**
     * Set is_premium_active property
     *
     * @since 3.0.0
     * @deprecated 4.0.5 Use WooCommerce native product brands instead. @see OldBrandsMigration
     *
     * @param bool $is_premium_active
     *
     * @return void
     */
    public function set_is_premium_active( $is_premium_active ) {
        $this->is_premium_active = $is_premium_active;
    }

    /**
     * Set settings property
     *
     * @since 3.0.0
     * @deprecated 4.0.5 Use WooCommerce native product brands instead. @see OldBrandsMigration
     *
     * @param array $settings
     *
     * @return void
     */
    public function set_settings( $settings ) {
        $this->settings = $settings;
    }

    /**
     * Get Brand taxonomy
     *
     * When premium addon is active, admin can switch
     * taxonomy from admin panel settings
     *
     * @since 2.9.7
     * @deprecated 4.0.5 Use WooCommerce native product brands instead. @see OldBrandsMigration
     *
     * @return string
     */
    public function get_taxonomy() {
        $yith_wcbr = YITH_WCBR();
        $taxonomy = $yith_wcbr::$brands_taxonomy;

        if ( $this->is_premium_active ) {
            $yith_wcbr_premium = YITH_WCBR_Premium();
            $taxonomy = $yith_wcbr_premium::$brands_taxonomy;
        }

        return $taxonomy;
    }
}