content:en_us:dev_framework_tutorials_adding_user_or_device_limits_acme_home_subscription

Adding User or Device Limits ACME Home Subscription

<?php
 
/**
 * Acme Home subscription class.
 *
 * @category   apps
 * @package    acme-home
 * @subpackage libraries
 * @author     ClearFoundation <developer@clearfoundation.com>
 * @copyright  2013 ClearFoundation
 * @license    http://www.gnu.org/copyleft/lgpl.html GNU Lesser General Public License version 3 or later
 * @link       http://www.clearfoundation.com/docs/developer/apps/acme_home/
 */
 
///////////////////////////////////////////////////////////////////////////////
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>.
//
///////////////////////////////////////////////////////////////////////////////
 
///////////////////////////////////////////////////////////////////////////////
// N A M E S P A C E
///////////////////////////////////////////////////////////////////////////////
 
namespace clearos\apps\acme_home;
 
///////////////////////////////////////////////////////////////////////////////
// B O O T S T R A P
///////////////////////////////////////////////////////////////////////////////
 
$bootstrap = getenv('CLEAROS_BOOTSTRAP') ? getenv('CLEAROS_BOOTSTRAP') : '/usr/clearos/framework/shared';
require_once $bootstrap . '/bootstrap.php';
 
///////////////////////////////////////////////////////////////////////////////
// T R A N S L A T I O N S
///////////////////////////////////////////////////////////////////////////////
 
clearos_load_language('acme_home');
 
///////////////////////////////////////////////////////////////////////////////
// D E P E N D E N C I E S
///////////////////////////////////////////////////////////////////////////////
 
use \clearos\apps\acme\Acme_Subscription_Engine as Acme_Subscription_Engine;
 
clearos_load_library('acme/Acme_Subscription_Engine');
 
///////////////////////////////////////////////////////////////////////////////
// C L A S S
///////////////////////////////////////////////////////////////////////////////
 
/**
 * Acme Home subscription class.
 *
 * @category   apps
 * @package    acme-home
 * @subpackage libraries
 * @author     ClearFoundation <developer@clearfoundation.com>
 * @copyright  2013 ClearFoundation
 * @license    http://www.gnu.org/copyleft/lgpl.html GNU Lesser General Public License version 3 or later
 * @link       http://www.clearfoundation.com/docs/developer/apps/acme_home/
 */
 
class Acme_Home_Subscription extends Acme_Subscription_Engine
{
    ///////////////////////////////////////////////////////////////////////////////
    // M E T H O D S
    ///////////////////////////////////////////////////////////////////////////////
 
    /**
     * Acme Home subscription constructor.
     */
 
    public function __construct()
    {
        clearos_profile(__METHOD__, __LINE__);
 
        parent::__construct(lang('acme_home_app_name'));
    }
}

search?q=clearos%2C%20clearos%20content%2C%20dev%2C%20framework%2C%20tutorial%2C%20adding%20user%20or%20device%20limits%2C%20acme%2C%20maintainer_dloper&amp;btnI=lucky

content/en_us/dev_framework_tutorials_adding_user_or_device_limits_acme_home_subscription.txt · Last modified: 2014/12/23 22:32 by dloper