Skip to content
This repository has been archived by the owner on Sep 10, 2021. It is now read-only.

Commit

Permalink
Merge pull request #184 from midasplatform/rm-demo-batchmake
Browse files Browse the repository at this point in the history
Remove batchmake and demo modules
  • Loading branch information
jamiesnape committed Feb 12, 2016
2 parents be78756 + 2d36ccc commit 524595d
Show file tree
Hide file tree
Showing 98 changed files with 5 additions and 4,890 deletions.
2 changes: 1 addition & 1 deletion app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,4 @@ skip_files:
- ^(.*/)?core/configs/.*\.local\.ini$
- ^(.*/)?(\.git|\.idea|\.vagrant|data|docs|env|log|provisioning|site|tests|tmp|utils)/.*
- ^(.*/)?(core|modules/.*)/(database/(pgsql|sqlite)|tests)/.*
- ^(.*/)?modules/(archive|batchmake|dicom.*|javauploaddownload|metadataextractor|pvw|remoteprocessing|solr|statistics|visualize)/.*
- ^(.*/)?modules/(archive|dicom.*|javauploaddownload|metadataextractor|pvw|remoteprocessing|solr|statistics|visualize)/.*
21 changes: 0 additions & 21 deletions core/AppController.php
Original file line number Diff line number Diff line change
Expand Up @@ -267,10 +267,6 @@ public function preDispatch()

// Init Dynamic Help (the order makes sense for the animation)
if ($this->view->isDynamicHelp) {
if ($this->isDemoMode()) {
$this->addDynamicHelp('.loginLink', MIDAS_DEMO_DYNAMIC_HELP, 'bottom left', 'top right');
}

if ($this->logged) {
$this->addDynamicHelp(
'#startingGuideLink',
Expand Down Expand Up @@ -434,23 +430,6 @@ public function addDynamicHelp($selector, $text, $location = 'bottom right', $ar
);
}

/**
* Check if demo mode is set.
*
* @return bool
*/
public function isDemoMode()
{
if (in_array('demo', Zend_Registry::get('modulesEnable'))) {
/** @var SettingModel $settingModel */
$settingModel = MidasLoader::loadModel('Setting');

return $settingModel->getValueByName('enabled', 'demo');
}

return false;
}

/** Disable the layout. */
public function disableLayout()
{
Expand Down
10 changes: 0 additions & 10 deletions core/controllers/AdminController.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,6 @@ class AdminController extends AppController
public $_components = array('Upgrade', 'Utility', 'MIDAS2Migration');
public $_forms = array('Admin', 'Assetstore', 'Migrate');

/** init the controller */
public function init()
{
if ($this->isDemoMode()) {
$this->disableView();

return false;
}
}

/** run a task */
public function taskAction()
{
Expand Down
2 changes: 1 addition & 1 deletion core/controllers/UserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,7 @@ public function userexistsAction()
/** Settings page action */
public function settingsAction()
{
if (!$this->logged || $this->isDemoMode()) {
if (!$this->logged) {
$this->disableView();

return false;
Expand Down
1 change: 0 additions & 1 deletion core/views/install/index.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
<li>Hosts public and private collections of data;</li>
<li>Handles massive collections and images;</li>
<li>Manages images, files, and metadata;</li>
<li>Integrates BatchMake technology for server-side and standalone batch processing;</li>
<li>Builds upon open source code and open standards.</li>
</ul>
<div class="separator"></div>
Expand Down
25 changes: 0 additions & 25 deletions modules/batchmake/AppController.php

This file was deleted.

24 changes: 0 additions & 24 deletions modules/batchmake/Bootstrap.php

This file was deleted.

70 changes: 0 additions & 70 deletions modules/batchmake/Notification.php

This file was deleted.

16 changes: 0 additions & 16 deletions modules/batchmake/configs/module.ini

This file was deleted.

118 changes: 0 additions & 118 deletions modules/batchmake/constant/module.php

This file was deleted.

Loading

0 comments on commit 524595d

Please sign in to comment.