Removing some not necessary files since the integration has been made at core level
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
/**
|
||||
* Description of ActionsByEmailFeature
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
if (!class_exists('enterprisePlugin')) {
|
||||
@@ -41,6 +41,7 @@ class ActionsByEmailFeature extends PMFeature
|
||||
}
|
||||
$this->registerTrigger(PM_CREATE_NEW_DELEGATION, 'sendActionsByEmail');
|
||||
} catch (Exception $error) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -53,7 +54,7 @@ class ActionsByEmailFeature extends PMFeature
|
||||
require_once PATH_FEATURES. $this->sFeatureFolder . DS .$this->classInstance['filename'];
|
||||
$actionsByEmail = new $this->classInstance['classname']();
|
||||
$actionsByEmail->$method($data);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function registerTrigger($triggerId, $method)
|
||||
|
||||
@@ -1,36 +0,0 @@
|
||||
<?php
|
||||
namespace Features;
|
||||
/**
|
||||
* Description of ConfigurationManager
|
||||
*
|
||||
*/
|
||||
class ConfigurationHandler
|
||||
{
|
||||
public function retrieveFeatureConfiguration($feature)
|
||||
{
|
||||
$configuration = new stdClass();
|
||||
$configuration->views = $this->retrieveViews($feature);
|
||||
}
|
||||
|
||||
public function retrieveViews($feature, $type = 'configuration')
|
||||
{
|
||||
require_once $feature->path . PATH_SEPARATOR . $feature->name;
|
||||
}
|
||||
|
||||
public function getViewList($feature)
|
||||
{
|
||||
$forbiddenFolders = array();
|
||||
$views = glob($feature->path.'/*', GLOB_ONLYDIR);
|
||||
$viewFiles = array();
|
||||
foreach ($views as $directory) {
|
||||
$feature = new stdClass();
|
||||
if (in_array($directory, $forbiddenFolders)) {
|
||||
continue;
|
||||
}
|
||||
$feature->path = PATH_FEATURES . PATH_SEP . $directory;
|
||||
$feature->name = $directory;
|
||||
$viewFiles[] = $feature;
|
||||
}
|
||||
return $viewFiles;
|
||||
}
|
||||
}
|
||||
@@ -1,20 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace Features\ActionsByEmail;
|
||||
/*
|
||||
* To change this license header, choose License Headers in Project Properties.
|
||||
* To change this template file, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
* @author gustav
|
||||
*/
|
||||
interface EnterpriseFeature
|
||||
{
|
||||
public function setup();
|
||||
public function install();
|
||||
public function enable();
|
||||
public function disable();
|
||||
}
|
||||
@@ -1,20 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Description of ExtensionManager
|
||||
*
|
||||
*/
|
||||
class ExtensionManager
|
||||
{
|
||||
public function registerView($view, ExtensionContainer $container)
|
||||
{
|
||||
$view = $this->prepareView($view);
|
||||
$container->register($view);
|
||||
}
|
||||
|
||||
public function prepareView($view)
|
||||
{
|
||||
return $view;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
<?php
|
||||
namespace Features\ViewContainers;
|
||||
/**
|
||||
* Description of TaskContainer
|
||||
*
|
||||
*/
|
||||
class ActivityContainer extends ViewContainer
|
||||
{
|
||||
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
<?php
|
||||
namespace Features\ViewContainers;
|
||||
/**
|
||||
* Description of TriggerContainer
|
||||
*
|
||||
*/
|
||||
class TriggerContainer extends ViewContainer
|
||||
{
|
||||
|
||||
}
|
||||
@@ -1,25 +0,0 @@
|
||||
<?php
|
||||
namespace Features\ViewContainers;
|
||||
/**
|
||||
* Description of Container
|
||||
*
|
||||
*/
|
||||
class ViewContainer
|
||||
{
|
||||
protected $viewList = array();
|
||||
|
||||
public function register($view)
|
||||
{
|
||||
$this->viewList[] = $view;
|
||||
}
|
||||
|
||||
public function getView($id)
|
||||
{
|
||||
return $this->viewList[$id];
|
||||
}
|
||||
|
||||
public function getAllViews()
|
||||
{
|
||||
return $this->viewList;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user