Skip to content

Commit

Permalink
Fix namespace references
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Babker committed Apr 14, 2019
1 parent 3f4c413 commit 1d08673
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
Expand Up @@ -14,6 +14,7 @@
use Joomla\CMS\Language\Text;
use Joomla\CMS\MVC\Controller\FormController;
use Joomla\CMS\Router\Route;
use Joomla\Component\Privacy\Administrator\Model\ConsentsModel;

/**
* Consents management controller class.
Expand Down Expand Up @@ -43,7 +44,7 @@ public function invalidate($key = null, $urlVar = null)
else
{
// Get the model.
/** @var PrivacyModelConsents $model */
/** @var ConsentsModel $model */
$model = $this->getModel();

// Publish the items.
Expand Down Expand Up @@ -82,7 +83,7 @@ public function invalidateAll()
}

// Get the model.
/** @var PrivacyModelConsents $model */
/** @var ConsentsModel $model */
$model = $this->getModel();

// Publish the items.
Expand Down
Expand Up @@ -17,6 +17,10 @@
use Joomla\CMS\MVC\Model\BaseDatabaseModel;
use Joomla\CMS\Router\Route;
use Joomla\CMS\Uri\Uri;
use Joomla\Component\Privacy\Administrator\Model\ExportModel;
use Joomla\Component\Privacy\Administrator\Model\RemoveModel;
use Joomla\Component\Privacy\Administrator\Model\RequestModel;
use Joomla\Component\Privacy\Administrator\Table\RequestTable;

/**
* Request management controller class.
Expand All @@ -40,10 +44,10 @@ public function complete($key = null, $urlVar = null)
// Check for request forgeries.
$this->checkToken();

/** @var PrivacyModelRequest $model */
/** @var RequestModel $model */
$model = $this->getModel();

/** @var PrivacyTableRequest $table */
/** @var RequestTable $table */
$table = $model->getTable();

// Determine the name of the primary key for the data.
Expand Down Expand Up @@ -144,7 +148,7 @@ public function complete($key = null, $urlVar = null)
*/
public function emailexport()
{
/** @var PrivacyModelExport $model */
/** @var ExportModel $model */
$model = $this->getModel('Export');

$recordId = $this->input->getUint('id');
Expand Down Expand Up @@ -309,7 +313,7 @@ public function invalidate($key = null, $urlVar = null)
*/
public function remove()
{
/** @var PrivacyModelRemove $model */
/** @var RemoveModel $model */
$model = $this->getModel('Remove');

$recordId = $this->input->getUint('id');
Expand Down
Expand Up @@ -32,7 +32,7 @@ class RequestsController extends AdminController
*
* @since 3.9.0
*/
public function getModel($name = 'Request', $prefix = 'PrivacyModel', $config = ['ignore_request' => true])
public function getModel($name = 'Request', $prefix = 'Administrator', $config = ['ignore_request' => true])
{
return parent::getModel($name, $prefix, $config);
}
Expand Down

0 comments on commit 1d08673

Please sign in to comment.