Пример #1
0
 * - Jeff Standen, Mike Fogg, Brenan Cavish, Darren Sugita, Dan Hildebrandt
 * 		and Joe Geck.
 *   WEBGROUP MEDIA LLC. - Developers of Cerberus Helpdesk
 */
define("APP_BUILD", 2010011501);
define("APP_MAIL_PATH", APP_STORAGE_PATH . '/mail/');
require_once APP_PATH . "/api/DAO.class.php";
require_once APP_PATH . "/api/Model.class.php";
require_once APP_PATH . "/api/Extension.class.php";
// App Scope ClassLoading
$path = APP_PATH . '/api/app/';
DevblocksPlatform::registerClasses($path . 'Bayes.php', array('CerberusBayes'));
DevblocksPlatform::registerClasses($path . 'Mail.php', array('CerberusMail'));
DevblocksPlatform::registerClasses($path . 'Parser.php', array('CerberusParser', 'CerberusParserMessage', 'ParserFile'));
DevblocksPlatform::registerClasses($path . 'Update.php', array('ChUpdateController'));
DevblocksPlatform::registerClasses($path . 'Utils.php', array('CerberusUtils'));
/**
 * Application-level Facade
 */
class CerberusApplication extends DevblocksApplication
{
    const INDEX_TICKETS = 'tickets';
    const VIEW_SEARCH = 'search';
    const VIEW_MAIL_WORKFLOW = 'mail_workflow';
    const VIEW_OVERVIEW_ALL = 'overview_all';
    const CACHE_HELPDESK_FROMS = 'ch_helpdesk_froms';
    /**
     * @return CerberusVisit
     */
    static function getVisit()
    {
Пример #2
0
|   unless specifically noted otherwise.
|
| By using this software, you acknowledge having read the license
| and agree to be bound thereby.
| ______________________________________________________________________
|	http://www.feg.com	  http://www.webgroupmedia.com/
***********************************************************************/
define("APP_BUILD", 2011010501);
require_once APP_PATH . "/api/DAO.class.php";
require_once APP_PATH . "/api/Model.class.php";
require_once APP_PATH . "/api/Extension.class.php";
// App Scope ClassLoading
$path = APP_PATH . '/api/app/';
DevblocksPlatform::registerClasses($path . 'Update.php', array('FegUpdateController'));
DevblocksPlatform::registerClasses($path . 'Snpp.php', array('FegSnpp'));
DevblocksPlatform::registerClasses($path . 'Hylafax.php', array('FegFax'));
/**
 * Application-level Facade
 */
class FegApplication extends DevblocksApplication
{
    /**
     * @return CerberusVisit
     */
    static function getVisit()
    {
        $session = DevblocksPlatform::getSessionService();
        return $session->getVisit();
    }
    /**
     * @return Model_Worker
Пример #3
0
|-----------------------------------------------------------------------
| All source code & content (c) Copyright 2010, WebGroup Media LLC
|   unless specifically noted otherwise.
|
| By using this software, you acknowledge having read the license
| and agree to be bound thereby.
| ______________________________________________________________________
|	http://www.usermeet.com	  http://www.webgroupmedia.com/
***********************************************************************/
define("APP_BUILD", 2010021201);
require_once APP_PATH . "/api/DAO.class.php";
require_once APP_PATH . "/api/Model.class.php";
require_once APP_PATH . "/api/Extension.class.php";
// App Scope ClassLoading
$path = APP_PATH . '/api/app/';
DevblocksPlatform::registerClasses($path . 'Update.php', array('UmUpdateController'));
/**
 * Application-level Facade
 */
class UsermeetApplication extends DevblocksApplication
{
    /**
     * @return CerberusVisit
     */
    static function getVisit()
    {
        $session = DevblocksPlatform::getSessionService();
        return $session->getVisit();
    }
    /**
     * @return Model_Worker
Пример #4
0
 /**
  * Creates and loads a usable extension from a manifest record.  The object returned 
  * will be of type $class defined by the manifest.  $instance_id is passed as an 
  * argument to uniquely identify multiple instances of an extension.
  *
  * @param integer $instance_id
  * @return object
  */
 function createInstance()
 {
     if (empty($this->id) || empty($this->plugin_id)) {
         // empty($instance_id) ||
         return null;
     }
     if (null == ($plugin = DevblocksPlatform::getPlugin($this->plugin_id))) {
         return;
     }
     $class_file = APP_PATH . '/' . $plugin->dir . '/' . $this->file;
     $class_name = $this->class;
     DevblocksPlatform::registerClasses($class_file, array($class_name));
     if (!class_exists($class_name, true)) {
         return null;
     }
     $instance = new $class_name($this);
     return $instance;
 }
Пример #5
0
 /**
  * Creates and loads a usable extension from a manifest record.  The object returned 
  * will be of type $class defined by the manifest.  $instance_id is passed as an 
  * argument to uniquely identify multiple instances of an extension.
  *
  * @param integer $instance_id
  * @return object
  */
 function createInstance($instance_id = 1)
 {
     if (empty($this->id) || empty($this->plugin_id)) {
         // empty($instance_id) ||
         return null;
     }
     $plugin = DevblocksPlatform::getPlugin($this->plugin_id);
     /* @var $plugin DevblocksPluginManifest */
     $class_file = DEVBLOCKS_PLUGIN_PATH . $plugin->dir . '/' . $this->file;
     $class_name = $this->class;
     DevblocksPlatform::registerClasses($class_file, array($class_name));
     if (!class_exists($class_name)) {
         return null;
     }
     $instance = new $class_name($this, $instance_id);
     return $instance;
 }