<?php
/**
 * Marketplace - Component Marketplace 
 * ******************************************************************
 *
 * PHP version 7.0
 *
 * @category   Component
 * @package    Joomla
 * @author     WebKul software private limited <support@webkul.com>
 * @copyright  2010 WebKul software private limited
 * @license    http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
 * @version    GIT:5.2
 * @filesource http://store.webkul.com
 * @link       Technical Support:  webkul.uvdesk.com
 * ******************************************************************
 */
defined('_JEXEC') or die();
/**
 * JHtmlMpusers class
 * 
 * @category Component
 * @package  Joomla
 * @author   WebKul software private limited <support@webkul.com>
 * @license  http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
 * @link     Technical Support:  webkul.uvdesk.com
 */
class JHtmlMpusers
{
    /**
     * BlockStates function
     *
     * @param boolean $self var
     * 
     * @return void
     */
    public static function blockStates( $self = false)
    {
        if ($self) {
            $states = array(
                1 => array(
                    'task'           => 'unblock',
                    'text'           => '',
                    'active_title'   => 'COM_USERS_USER_FIELD_BLOCK_DESC',
                    'inactive_title' => '',
                    'tip'            => true,
                    'active_class'   => 'unpublish',
                    'inactive_class' => 'unpublish',
                ),
                0 => array(
                    'task'           => 'block',
                    'text'           => '',
                    'active_title'   => '',
                    'inactive_title' => 'COM_USERS_USERS_ERROR_CANNOT_BLOCK_SELF',
                    'tip'            => true,
                    'active_class'   => 'publish',
                    'inactive_class' => 'publish',
                )
            );
        } else {
            $states = array(
                1 => array(
                    'task'           => 'unblock',
                    'text'           => '',
                    'active_title'   => 'COM_USERS_TOOLBAR_UNBLOCK',
                    'inactive_title' => '',
                    'tip'            => true,
                    'active_class'   => 'unpublish',
                    'inactive_class' => 'unpublish',
                ),
                0 => array(
                    'task'           => 'block',
                    'text'           => '',
                    'active_title'   => 'COM_USERS_USER_FIELD_BLOCK_DESC',
                    'inactive_title' => '',
                    'tip'            => true,
                    'active_class'   => 'publish',
                    'inactive_class' => 'publish',
                )
            );
        }
        return $states;
    }
    /**
     * SellerStates function
     *
     * @return void
     */
    public static function sellerStates()
    {
        $states = array(
            1 => array(
                'task'           => 'deny',
                'text'           => '',
                'active_title'   => 'COM_MARKETPLACE_ENABLE',
                'inactive_title' => '',
                'tip'            => true,
                'active_class'   => 'publish',
                'inactive_class' => 'publish',
            ),
            0 => array(
                'task'           => 'add',
                'text'           => '',
                'active_title'   => 'COM_MARKETPLACE_DISABLE',
                'inactive_title' => '',
                'tip'            => true,
                'active_class'   => 'unpublish',
                'inactive_class' => 'unpublish',
            )
        );
        return $states;
    }
    /**
     * RequestStates function
     *
     * @return void
     */
    public static function requestStates()
    {
        $states = array(
            1 => array(
                'task'           => 'deteteCategory',
                'text'           => '',
                'active_title'   => 'COM_MARKETPLACE_DISABLE_CATEGORY',
                'inactive_title' => '',
                'tip'            => true,
                'active_class'   => 'publish',
                'inactive_class' => 'publish',
            ),
            0 => array(
                'task'           => 'createCategory',
                'text'           => '',
                'active_title'   => 'COM_MARKETPLACE_ENABLE_CATEGORY',
                'inactive_title' => '',
                'tip'            => true,
                'active_class'   => 'unpublish',
                'inactive_class' => 'unpublish',
            )
        );
        return $states;
    }
    /**
     * ProductStates function
     *
     * @return void
     */
    public static function productStates()
    {
        $states = array(
            1 => array(
                'task'           => 'unpublished',
                'text'           => '',
                'active_title'   => 'COM_MARKETPLACE_UNPUBLISHED',
                'inactive_title' => '',
                'tip'            => true,
                'active_class'   => 'publish',
                'inactive_class' => 'publish',
            ),
            0 => array(
                'task'           => 'published',
                'text'           => '',
                'active_title'   => 'COM_MARKETPLACE_PUBLISHED',
                'inactive_title' => '',
                'tip'            => true,
                'active_class'   => 'unpublish',
                'inactive_class' => 'unpublish',
            )
        );
        return $states;
    }
    /**
     * AdminproductStates function
     *
     * @return void
     */
    public static function adminproductStates()
    {
        $states = array(
            1 => array(
                'task'           => 'adminunpublished',
                'text'           => '',
                'active_title'   => 'COM_MARKETPLACE_UNPUBLISHED',
                'inactive_title' => '',
                'tip'            => true,
                'active_class'   => 'publish',
                'inactive_class' => 'publish',
            ),
            0 => array(
                'task'           => 'adminpublished',
                'text'           => '',
                'active_title'   => 'COM_MARKETPLACE_PUBLISHED',
                'inactive_title' => '',
                'tip'            => true,
                'active_class'   => 'unpublish',
                'inactive_class' => 'unpublish',
            )
        );
        return $states;
    }
    /**
     * ActivateStates function
     *
     * @return void
     */
    public static function activateStates()
    {
        $states = array(
            1 => array(
                'task'           => 'activate',
                'text'           => '',
                'active_title'   => 'COM_USERS_TOOLBAR_ACTIVATE',
                'inactive_title' => '',
                'tip'            => true,
                'active_class'   => 'unpublish',
                'inactive_class' => 'unpublish',
            ),
            0 => array(
                'task'           => '',
                'text'           => '',
                'active_title'   => '',
                'inactive_title' => 'COM_USERS_ACTIVATED',
                'tip'            => true,
                'active_class'   => 'publish',
                'inactive_class' => 'publish',
            )
        );
        return $states;
    }
}
