<?php

/*
  MailBeez Automatic Trigger Email Campaigns
  http://www.mailbeez.com

  Copyright (c) 2010, 2011 MailBeez

  inspired and in parts based on
  Copyright (c) 2003 osCommerce

  Released under the GNU General Public License
 */

///////////////////////////////////////////////////////////////////////////////
///																																					 //
///                 MailBeez Core file - do not edit                         //
///                                                                          //
///////////////////////////////////////////////////////////////////////////////

require_once(MH_DIR_FS_CATALOG . MH_ROOT_PATH . 'common/classes/configbeez.php');

class config_edit_promo extends configbeez
{

// class constructor
    function __construct()
    {
        parent::__construct();
        $this->code = 'config_edit_promo';
        $this->module = 'config_edit_promo'; // same as folder name
        $this->version = '2.0'; // float value
        $this->title = mh_lng('MAILBEEZ_CONFIG_EDIT_PROMO_TEXT_TITLE');
        $this->description = mh_lng('MAILBEEZ_CONFIG_EDIT_PROMO_TEXT_DESCRIPTION');
        if (mh_cfg('MAILBEEZ_CONFIG_TMPLMNGR_STATUS') || mh_cfg('MAILBEEZ_CONFIG_TMPLMNGR_LNG_STATUS')) {
            $this->hidden = true;
        } else {
            $this->icon = '../../common/images/lock.png';
        }
        $this->removable = false; // can't be removed
        $this->stealth = true; // don't list as an installed module

        $this->sort_order = 10;
        $this->enabled = mh_cfg('MAILBEEZ_MAILHIVE_STATUS') == 'True';

        $this->documentation_key = 'config_tmplmgnr'; // leave empty if no documentation available
        $this->is_configurable = false;
    }

    function config_edit_promo()
    {
        self::__construct();
    }

// class methods

    function check()
    {
        return true;
    }

    function remove()
    {
        return false;
    }

    // installation methods

    function keys()
    {
    }

    function install()
    {
        return false;
    }

}


