Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

non-actions hidden #134

Merged
merged 2 commits into from
Mar 12, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions actions/MediaImport.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

namespace oat\taoMediaManager\actions;

use oat\tao\model\routing\AnnotationReader\security;
use oat\taoMediaManager\model\FileImporter;
use oat\taoMediaManager\model\MediaService;
use oat\taoMediaManager\model\SharedStimulusImporter;
Expand All @@ -32,6 +33,10 @@ class MediaImport extends \tao_actions_Import
{
private $importHandlers;

/**
* MediaImport constructor.
* @security("hide")
*/
public function __construct()
{
parent::__construct();
Expand Down
6 changes: 6 additions & 0 deletions actions/MediaManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

namespace oat\taoMediaManager\actions;

use oat\tao\model\routing\AnnotationReader\security;
use oat\taoMediaManager\model\editInstanceForm;
use oat\taoMediaManager\model\MediaService;
use oat\taoMediaManager\model\MediaSource;
Expand All @@ -34,6 +35,11 @@ protected function getClassService()
return MediaService::singleton();
}

/**
* MediaManager constructor.
* @throws \common_ext_ExtensionException
* @security("hide")
*/
public function __construct()
{

Expand Down
4 changes: 2 additions & 2 deletions manifest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@
'label' => 'extension-tao-mediamanager',
'description' => 'TAO media manager extension',
'license' => 'GPL-2.0',
'version' => '5.0.3',
'version' => '6.0.0',
'author' => 'Open Assessment Technologies SA',
'requires' => array(
'tao' => '>=22.6.2',
'tao' => '>=27.2.0',
'generis' => '>=8.1.3',
'taoItems' => '>=6.0.0'
),
Expand Down
7 changes: 3 additions & 4 deletions scripts/update/Updater.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,17 @@

class Updater extends \common_ext_ExtensionUpdater
{

/**
*
* @param string $initialVersion
* @return string $versionUpdatedTo
* @return string|void
* @throws \common_exception_NotImplemented
*/
public function update($initialVersion)
{
if ($this->isBetween('0.0.0', '0.2.5')) {
throw new \common_exception_NotImplemented('Updates from versions prior to Tao 3.1 are not longer supported, please update to Tao 3.1 first');
}

$this->skip('0.3.0', '5.0.3');
$this->skip('0.3.0', '6.0.0');
}
}