Your IP : 10.10.0.253


Current Path : /var/www/plugins/attachments/attachments_plugin_framework/
Upload File :
Current File : /var/www/plugins/attachments/attachments_plugin_framework/attachments_plugin_framework.php

<?php
/**
 * Manager for plugins for Attachments
 *
 * @package		Attachments
 * @subpackage	Attachments_Plugin_Framework
 *
 * @author		Jonathan M. Cameron <jmcameron@jmcameron.net>
 * @copyright	Copyright (C) 2009-2015 Jonathan M. Cameron, All Rights Reserved
 * @license		http://www.gnu.org/licenses/gpl-3.0.html GNU/GPL
 * @link		http://joomlacode.org/gf/project/attachments/frs/
 */

// No direct access
defined('_JEXEC') or die('Restricted access');

/**
 * Get the singleton plugin manager for attachments
 *
 * @return the plugin manager singleton object
 */
function &getAttachmentsPluginManager()
{
	static $instance;

	if (!is_object($instance))
	{
		require_once dirname(__FILE__) . '/attachments_plugin_manager.php';
		$instance = new AttachmentsPluginManager;
	}

	return $instance;
}


/** Make sure the plugin class is loaded for derived classes */
require_once dirname(__FILE__) . '/attachments_plugin.php';