Removing some not necessary files since the integration has been made at core level

This commit is contained in:
Gustavo Cruz
2015-03-12 11:19:55 -04:00
parent d7380b182e
commit 51e04ecc8b
7 changed files with 3 additions and 123 deletions

View File

@@ -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)

View File

@@ -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;
}
}

View File

@@ -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();
}

View File

@@ -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;
}
}

View File

@@ -1,10 +0,0 @@
<?php
namespace Features\ViewContainers;
/**
* Description of TaskContainer
*
*/
class ActivityContainer extends ViewContainer
{
}

View File

@@ -1,10 +0,0 @@
<?php
namespace Features\ViewContainers;
/**
* Description of TriggerContainer
*
*/
class TriggerContainer extends ViewContainer
{
}

View File

@@ -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;
}
}