Commit 4e3337df authored by Sebastian Diez's avatar Sebastian Diez

refactors classes to use namespaces

parent 77dcb15b
Pipeline #864 passed with stages
in 4 minutes and 59 seconds
<?php
namespace T3o\TerFe2\Cache;
/*******************************************************************
* Copyright notice
*
......@@ -26,7 +28,7 @@
/**
* Cache for extension files
*/
class Tx_TerFe2_Cache_FileCache implements \TYPO3\CMS\Core\SingletonInterface
class FileCache implements \TYPO3\CMS\Core\SingletonInterface
{
/**
......@@ -46,7 +48,7 @@ class Tx_TerFe2_Cache_FileCache implements \TYPO3\CMS\Core\SingletonInterface
if (empty($cacheDirectory)) {
throw new Exception('An empty cache directory is not allowed');
}
$this->cacheDirectory = Tx_TerFe2_Utility_File::getAbsoluteDirectory($cacheDirectory);
$this->cacheDirectory = \T3o\TerFe2\Utility\File::getAbsoluteDirectory($cacheDirectory);
}
......@@ -70,7 +72,7 @@ class Tx_TerFe2_Cache_FileCache implements \TYPO3\CMS\Core\SingletonInterface
public function getFile($filename)
{
$filename = $this->getFilePath($filename);
if (Tx_TerFe2_Utility_File::fileExists($filename)) {
if (\T3o\TerFe2\Utility\File::fileExists($filename)) {
return $filename;
}
return '';
......@@ -104,7 +106,7 @@ class Tx_TerFe2_Cache_FileCache implements \TYPO3\CMS\Core\SingletonInterface
return '';
}
$filename = $this->getFilePath($filename);
if (Tx_TerFe2_Utility_File::copyFile($fileUrl, $filename)) {
if (\T3o\TerFe2\Utility\File::copyFile($fileUrl, $filename)) {
return $filename;
}
return '';
......@@ -135,7 +137,7 @@ class Tx_TerFe2_Cache_FileCache implements \TYPO3\CMS\Core\SingletonInterface
public function removeFile($filename)
{
$filename = $this->getFilePath($filename);
if (!Tx_TerFe2_Utility_File::fileExists($fileUrl)) {
if (!\T3o\TerFe2\Utility\File::fileExists($fileUrl)) {
return FALSE;
}
return unlink($filename);
......
<?php
namespace T3o\TerFe2\Controller;
/*******************************************************************
* Copyright notice
*
......@@ -26,18 +28,18 @@
/**
* Abstract controller
*/
abstract class Tx_TerFe2_Controller_AbstractController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionController
abstract class AbstractController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionController
{
/**
* @var Tx_TerFe2_Security_Role
* @var \T3o\TerFe2\Security\Role;
*/
protected $securityRole;
/**
* @param Tx_TerFe2_Security_Role $securityRole
* @param \T3o\TerFe2\Security\Role $securityRole
*/
public function injectSecurityRole(Tx_TerFe2_Security_Role $securityRole)
public function injectSecurityRole(\T3o\TerFe2\Security\Role $securityRole)
{
$this->securityRole = $securityRole;
}
......@@ -50,7 +52,7 @@ abstract class Tx_TerFe2_Controller_AbstractController extends \TYPO3\CMS\Extbas
public function initializeAction()
{
// Pre-parse settings
$this->settings = Tx_TerFe2_Utility_TypoScript::parse($this->settings);
$this->settings = \T3o\TerFe2\Utility\TypoScript::parse($this->settings);
// Initialize the controller
$this->initializeController();
......
<?php
namespace T3o\TerFe2\Controller;
/*******************************************************************
* Copyright notice
*
......@@ -26,7 +28,7 @@
/**
* Abstract controller
*/
abstract class Tx_TerFe2_Controller_AbstractTerBasedController extends Tx_TerFe2_Controller_AbstractController
abstract class AbstractTerBasedController extends \T3o\TerFe2\Controller\AbstractController
{
/**
......@@ -35,7 +37,7 @@ abstract class Tx_TerFe2_Controller_AbstractTerBasedController extends Tx_TerFe2
protected $frontendUser = array();
/**
* @var Tx_TerFe2_Service_Ter
* @var \T3o\TerFe2\Service\Ter
*/
protected $terConnection;
......@@ -105,7 +107,7 @@ abstract class Tx_TerFe2_Controller_AbstractTerBasedController extends Tx_TerFe2
/**
* Create a connection to the TER server
*
* @return Tx_TerFe2_Service_Ter The TER connection
* @return \T3o\TerFe2\Service\Ter The TER connection
*/
protected function getTerConnection()
{
......@@ -116,7 +118,7 @@ abstract class Tx_TerFe2_Controller_AbstractTerBasedController extends Tx_TerFe2
// Create connection
$wsdl = $this->terSettings['wsdl'];
return $this->objectManager->get('Tx_TerFe2_Service_Ter', $wsdl, $this->terAccount['username'], $this->terAccount['password']);
return $this->objectManager->get(\T3o\TerFe2\Service\Ter::class, $wsdl, $this->terAccount['username'], $this->terAccount['password']);
}
}
<?php
namespace T3o\TerFe2\Controller;
/*******************************************************************
* Copyright notice
*
......@@ -26,16 +28,16 @@
/**
* Controller for the author object
*/
class Tx_TerFe2_Controller_AuthorController extends Tx_TerFe2_Controller_AbstractController
class AuthorController extends \T3o\TerFe2\Controller\AbstractController
{
/**
* @var Tx_TerFe2_Domain_Repository_AuthorRepository
* @var \T3o\TerFe2\Domain\Repository\AuthorRepository
*/
protected $authorRepository;
/**
* @var Tx_TerFe2_Domain_Repository_ExtensionRepository
* @var \T3o\TerFe2\Domain\Repository\ExtensionRepository
*/
protected $extensionRepository;
......@@ -47,8 +49,8 @@ class Tx_TerFe2_Controller_AuthorController extends Tx_TerFe2_Controller_Abstrac
*/
protected function initializeController()
{
$this->authorRepository = $this->objectManager->get('Tx_TerFe2_Domain_Repository_AuthorRepository');
$this->extensionRepository = $this->objectManager->get('Tx_TerFe2_Domain_Repository_ExtensionRepository');
$this->authorRepository = $this->objectManager->get(\T3o\TerFe2\Domain\Repository\AuthorRepository::class);
$this->extensionRepository = $this->objectManager->get(\T3o\TerFe2\Domain\Repository\ExtensionRepository::class);
}
......@@ -66,10 +68,10 @@ class Tx_TerFe2_Controller_AuthorController extends Tx_TerFe2_Controller_Abstrac
/**
* Action that displays a single author
*
* @param Tx_TerFe2_Domain_Model_Author $author The author to display
* @param \T3o\TerFe2\Domain\Model\Author $author The author to display
* @return void
*/
public function showAction(Tx_TerFe2_Domain_Model_Author $author)
public function showAction(\T3o\TerFe2\Domain\Model\Author $author)
{
$this->view->assign('author', $author);
$authorExtensions = $this->extensionRepository->findByAuthor($author);
......@@ -80,11 +82,11 @@ class Tx_TerFe2_Controller_AuthorController extends Tx_TerFe2_Controller_Abstrac
/**
* Displays a form to edit an existing author
*
* @param Tx_TerFe2_Domain_Model_Author $author The author to display
* @param \T3o\TerFe2\Domain\Model\Author $author The author to display
* @return void
* @dontvalidate $author
*/
public function editAction(Tx_TerFe2_Domain_Model_Author $author)
public function editAction(\T3o\TerFe2\Domain\Model\Author $author)
{
$this->view->assign('author', $author);
}
......@@ -93,10 +95,10 @@ class Tx_TerFe2_Controller_AuthorController extends Tx_TerFe2_Controller_Abstrac
/**
* Updates an existing author
*
* @param Tx_TerFe2_Domain_Model_Author $author Author to update
* @param \T3o\TerFe2\Domain\Model\Author $author Author to update
* @return void
*/
public function updateAction(Tx_TerFe2_Domain_Model_Author $author)
public function updateAction(\T3o\TerFe2\Domain\Model\Author $author)
{
$this->authorRepository->update($author);
$this->redirectWithMessage($this->translate('msg.author_updated'), 'list');
......
<?php
namespace T3o\TerFe2\Controller\Eid;
/*
* This file is part of the TYPO3 CMS project.
......@@ -14,9 +15,9 @@
*/
/**
* Class Tx_TerFe2_Controller_Eid_ExtensionController
* Class \T3o\TerFe2\Controller\Eid\ExtensionController
*/
class Tx_TerFe2_Controller_Eid_ExtensionController
class ExtensionController
{
/**
......@@ -90,5 +91,5 @@ class Tx_TerFe2_Controller_Eid_ExtensionController
}
}
$controller = new Tx_TerFe2_Controller_Eid_ExtensionController();
$controller = new ExtensionController();
$controller->dispatch(\TYPO3\CMS\Core\Utility\GeneralUtility::_GET('action'));
<?php
namespace T3o\TerFe2\Controller;
/* * *****************************************************************
* Copyright notice
......@@ -28,16 +29,16 @@
/**
* Controller for the extension key registration
*/
class Tx_TerFe2_Controller_RegisterkeyController extends Tx_TerFe2_Controller_AbstractTerBasedController
class RegisterkeyController extends \T3o\TerFe2\Controller\AbstractTerBasedController
{
/**
* @var Tx_TerFe2_Domain_Repository_ExtensionRepository
* @var \T3o\TerFe2\Domain\Repository\ExtensionRepository
*/
protected $extensionRepository;
/**
* @var Tx_TerFe2_Domain_Repository_VersionRepository
* @var \T3o\TerFe2\Domain\Repository\VersionRepository
*/
protected $versionRepository;
......@@ -53,8 +54,8 @@ class Tx_TerFe2_Controller_RegisterkeyController extends Tx_TerFe2_Controller_Ab
*/
protected function initializeController()
{
$this->extensionRepository = $this->objectManager->get('Tx_TerFe2_Domain_Repository_ExtensionRepository');
$this->versionRepository = $this->objectManager->get('Tx_TerFe2_Domain_Repository_VersionRepository');
$this->extensionRepository = $this->objectManager->get(\T3o\TerFe2\Domain\Repository\ExtensionRepository::class);
$this->versionRepository = $this->objectManager->get(\T3o\TerFe2\Domain\Repository\VersionRepository::class);
$this->userRepository = $this->objectManager->get(\TYPO3\CMS\Extbase\Domain\Repository\FrontendUserRepository::class);
}
......@@ -100,7 +101,7 @@ class Tx_TerFe2_Controller_RegisterkeyController extends Tx_TerFe2_Controller_Ab
// Register the extension key at ter server, if successfull, add it to the extension table
if ($this->terConnection->registerExtension($extensionData)) {
// Create extension model
$extension = $this->objectManager->get('Tx_TerFe2_Domain_Model_Extension');
$extension = $this->objectManager->get(\T3o\TerFe2\Domain\Model\Extension::class);
$extension->setExtKey($extensionKey);
$extension->setFrontendUser($this->frontendUser['username']);
......@@ -115,10 +116,10 @@ class Tx_TerFe2_Controller_RegisterkeyController extends Tx_TerFe2_Controller_Ab
);
}
} else {
/** @var Tx_TerFe2_Domain_Model_Extension $extension */
/** @var \T3o\TerFe2\Domain\Model\Extension $extension */
$extension = $this->extensionRepository->findOneByExtKey($extensionKey);
$message = '';
if ($extension instanceof Tx_TerFe2_Domain_Model_Extension && $extension->getFrontendUser()) {
if ($extension instanceof \T3o\TerFe2\Domain\Model\Extension && $extension->getFrontendUser()) {
/** @var \TYPO3\CMS\Extbase\Domain\Model\FrontendUser $frontendUser */
$frontendUser = $this->userRepository->findOneByUsername($extension->getFrontendUser());
if ($frontendUser instanceof \TYPO3\CMS\Extbase\Domain\Model\FrontendUser) {
......@@ -180,7 +181,7 @@ class Tx_TerFe2_Controller_RegisterkeyController extends Tx_TerFe2_Controller_Ab
// );
$countSkipped++;
} else {
$extensionModel = $this->objectManager->get('Tx_TerFe2_Domain_Model_Extension');
$extensionModel = $this->objectManager->get(\T3o\TerFe2\Domain\Model\Extension::class);
$extensionModel->setExtKey($extensionKey);
$extensionModel->setFrontendUser($extension['ownerusername']);
......@@ -258,11 +259,11 @@ class Tx_TerFe2_Controller_RegisterkeyController extends Tx_TerFe2_Controller_Ab
/**
* Display the edit form
*
* @param Tx_TerFe2_Domain_Model_Extension $extension Extension to modify
* @param \T3o\TerFe2\Domain\Model\Extension $extension Extension to modify
* @dontvalidate $extension
* @return void
*/
public function editAction(Tx_TerFe2_Domain_Model_Extension $extension)
public function editAction(\T3o\TerFe2\Domain\Model\Extension $extension)
{
// check if the extension belongs to the current user
......@@ -279,10 +280,10 @@ class Tx_TerFe2_Controller_RegisterkeyController extends Tx_TerFe2_Controller_Ab
/**
* Update an existing extension
*
* @param Tx_TerFe2_Domain_Model_Extension $extension Extension to modify
* @param \T3o\TerFe2\Domain\Model\Extension $extension Extension to modify
* @return void
*/
public function updateAction(Tx_TerFe2_Domain_Model_Extension $extension)
public function updateAction(\T3o\TerFe2\Domain\Model\Extension $extension)
{
// check if the extension belongs to the current user
......@@ -327,10 +328,10 @@ class Tx_TerFe2_Controller_RegisterkeyController extends Tx_TerFe2_Controller_Ab
* Transfer an extension key to another user
*
* @param string $newUser Username of the assignee
* @param Tx_TerFe2_Domain_Model_Extension $extension Extension to transfer
* @param \T3o\TerFe2\Domain\Model\Extension $extension Extension to transfer
* @return void
*/
public function transferAction($newUser, Tx_TerFe2_Domain_Model_Extension $extension)
public function transferAction($newUser, \T3o\TerFe2\Domain\Model\Extension $extension)
{
$newUser = trim($newUser);
......@@ -366,10 +367,10 @@ class Tx_TerFe2_Controller_RegisterkeyController extends Tx_TerFe2_Controller_Ab
/**
* Delete an extension key from ter server
*
* @param Tx_TerFe2_Domain_Model_Extension $extension Extension to delete
* @param \T3o\TerFe2\Domain\Model\Extension $extension Extension to delete
* @return void
*/
public function deleteAction(Tx_TerFe2_Domain_Model_Extension $extension)
public function deleteAction(\T3o\TerFe2\Domain\Model\Extension $extension)
{
if ($extension->getVersionCount() > 0) {
......@@ -400,12 +401,12 @@ class Tx_TerFe2_Controller_RegisterkeyController extends Tx_TerFe2_Controller_Ab
* Sets the expire back to zero and touches the extension
* The process for getting expiring extensions will be back in 1 year
*
* @param \Tx_TerFe2_Domain_Model_Extension $extension
* @param \T3o\TerFe2\Domain\Model\Extension $extension
* @dontvalidate $extension
* @return void
* @throws \TYPO3\CMS\Extbase\Mvc\Exception\UnsupportedRequestTypeException
*/
public function keepAction(Tx_TerFe2_Domain_Model_Extension $extension)
public function keepAction(\T3o\TerFe2\Domain\Model\Extension $extension)
{
$extension->setExpire(0);
$this->extensionRepository->update($extension);
......@@ -415,11 +416,11 @@ class Tx_TerFe2_Controller_RegisterkeyController extends Tx_TerFe2_Controller_Ab
/**
* Delete an extension version from ter server
*
* @param Tx_TerFe2_Domain_Model_Version $version Extension to delete
* @param \T3o\TerFe2\Domain\Model\Version $version Extension to delete
* @dontvalidate $version
* @return void
*/
public function deleteExtensionVersionAction(Tx_TerFe2_Domain_Model_Version $version)
public function deleteExtensionVersionAction(\T3o\TerFe2\Domain\Model\Version $version)
{
if (!$this->securityRole->isAdmin()) {
$this->addFlashMessage(
......
<?php
namespace T3o\TerFe2\Controller;
/*******************************************************************
* Copyright notice
*
......@@ -26,7 +28,7 @@
/**
* Controller for the extension review
*/
class Tx_TerFe2_Controller_ReviewController extends Tx_TerFe2_Controller_AbstractTerBasedController
class ReviewController extends \T3o\TerFe2\Controller\AbstractTerBasedController
{
/**
......@@ -49,11 +51,11 @@ class Tx_TerFe2_Controller_ReviewController extends Tx_TerFe2_Controller_Abstrac
/**
* Set unsecure flag of all given versions
*
* @param Tx_TerFe2_Domain_Model_Extension $extension The extension to update
* @param \T3o\TerFe2\Domain\Model\Extension $extension The extension to update
* @param mixed $unsecureVersions Version UIDs or empty string of no version was selected
* @return void
*/
public function updateAction(Tx_TerFe2_Domain_Model_Extension $extension, $unsecureVersions)
public function updateAction(\T3o\TerFe2\Domain\Model\Extension $extension, $unsecureVersions)
{
$unsecureVersions = (is_array($unsecureVersions) ? $unsecureVersions : array());
$extensionKey = $extension->getExtKey();
......
<?php
namespace T3o\TerFe2\Controller;
/*******************************************************************
* Copyright notice
*
......@@ -26,17 +28,17 @@
/**
* Controller for the tag object
*/
class Tx_TerFe2_Controller_TagController extends Tx_TerFe2_Controller_AbstractController
class TagController extends \T3o\TerFe2\Controller\AbstractController
{
/**
* @var Tx_TerFe2_Domain_Repository_TagRepository
* @var \T3o\TerFe2\Domain\Repository\TagRepository
*/
protected $tagRepository;
/**
* @var Tx_TerFe2_Domain_Repository_ExtensionRepository
* @var \T3o\TerFe2\Domain\Repository\ExtensionRepository
*/
protected $extensionRepository;
......@@ -48,7 +50,7 @@ class Tx_TerFe2_Controller_TagController extends Tx_TerFe2_Controller_AbstractCo
*/
protected function initializeController()
{
$this->tagRepository = $this->objectManager->get('Tx_TerFe2_Domain_Repository_TagRepository');
$this->tagRepository = $this->objectManager->get(\T3o\TerFe2\Domain\Repository\TagRepository::class);
}
......@@ -66,10 +68,10 @@ class Tx_TerFe2_Controller_TagController extends Tx_TerFe2_Controller_AbstractCo
/**
* Action that displays a single tag
*
* @param Tx_TerFe2_Domain_Model_Tag $tag The tag to display
* @param \T3o\TerFe2\Domain\Model\Tag $tag The tag to display
* @return void
*/
public function showAction(Tx_TerFe2_Domain_Model_Tag $tag)
public function showAction(\T3o\TerFe2\Domain\Model\Tag $tag)
{
$this->view->assign('tag', $tag);
}
......@@ -78,12 +80,12 @@ class Tx_TerFe2_Controller_TagController extends Tx_TerFe2_Controller_AbstractCo
/**
* Displays a form for creating a new tag
*
* @param Tx_TerFe2_Domain_Model_Extension $extension The extension to add the new tag
* @param Tx_TerFe2_Domain_Model_Tag $newTag New tag object
* @param \T3o\TerFe2\Domain\Model\Extension $extension The extension to add the new tag
* @param \T3o\TerFe2\Domain\Model\Tag $newTag New tag object
* @return void
* @dontvalidate $newTag
*/
public function newAction(Tx_TerFe2_Domain_Model_Extension $extension, Tx_TerFe2_Domain_Model_Tag $newTag = NULL)
public function newAction(\T3o\TerFe2\Domain\Model\Extension $extension, \T3o\TerFe2\Domain\Model\Tag $newTag = NULL)
{
$this->view->assign('newTag', $newTag);
$this->view->assign('extension', $extension);
......@@ -93,11 +95,11 @@ class Tx_TerFe2_Controller_TagController extends Tx_TerFe2_Controller_AbstractCo
/**
* Creates a new tag
*
* @param Tx_TerFe2_Domain_Model_Tag $newTag New tag object
* @param Tx_TerFe2_Domain_Model_Extension $extension The extension to add the new tag
* @param \T3o\TerFe2\Domain\Model\Tag $newTag New tag object
* @param \T3o\TerFe2\Domain\Model\Extension $extension The extension to add the new tag
* @return void
*/
public function createAction(Tx_TerFe2_Domain_Model_Tag $newTag, Tx_TerFe2_Domain_Model_Extension $extension)
public function createAction(\T3o\TerFe2\Domain\Model\Tag $newTag, \T3o\TerFe2\Domain\Model\Extension $extension)
{
if ($tag = $this->tagRepository->findByTitle($newTag->getTitle())->getFirst()) {
$extension->addTag($tag);
......@@ -113,11 +115,11 @@ class Tx_TerFe2_Controller_TagController extends Tx_TerFe2_Controller_AbstractCo
/**
* Displays a form to edit an existing tag
*
* @param Tx_TerFe2_Domain_Model_Tag $tag The tag to display
* @param \T3o\TerFe2\Domain\Model\Tag $tag The tag to display
* @return void
* @dontvalidate $tag
*/
public function editAction(Tx_TerFe2_Domain_Model_Tag $tag)
public function editAction(\T3o\TerFe2\Domain\Model\Tag $tag)
{
$this->view->assign('tag', $tag);
}
......@@ -126,10 +128,10 @@ class Tx_TerFe2_Controller_TagController extends Tx_TerFe2_Controller_AbstractCo
/**
* Updates an existing tag
*
* @param Tx_TerFe2_Domain_Model_Tag $tag Tag to update
* @param \T3o\TerFe2\Domain\Model\Tag $tag Tag to update
* @return void
*/
public function updateAction(Tx_TerFe2_Domain_Model_Tag $tag)
public function updateAction(\T3o\TerFe2\Domain\Model\Tag $tag)
{
$this->tagRepository->update($tag);
// TODO: Update extension too
......@@ -141,10 +143,10 @@ class Tx_TerFe2_Controller_TagController extends Tx_TerFe2_Controller_AbstractCo
/**
* Deletes an existing tag
*
* @param Tx_TerFe2_Domain_Model_Tag $tag The tag to delete
* @param \T3o\TerFe2\Domain\Model\Tag $tag The tag to delete
* @return void
*/
public function deleteAction(Tx_TerFe2_Domain_Model_Tag $tag)
public function deleteAction(\T3o\TerFe2\Domain\Model\Tag $tag)
{
$this->tagRepository->remove($tag);
// TODO: Remove from extension too
......
<?php
namespace T3o\TerFe2\Domain\Model;
/*******************************************************************
* Copyright notice
*
......@@ -26,7 +28,7 @@
/**
* Abstract entity
*/
class Tx_TerFe2_Domain_Model_AbstractEntity extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
class AbstractEntity extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
{
/**
......@@ -36,7 +38,7 @@ class Tx_TerFe2_Domain_Model_AbstractEntity extends \TYPO3\CMS\Extbase\DomainObj
*/
public function toArray()
{
return Tx_TerFe2_Utility_Array::objectToArray($this);
return \T3o\TerFe2\Utility\ArrayUtility::objectToArray($this);
}
}
<?php
namespace T3o\TerFe2\Domain\Model;
/*******************************************************************
* Copyright notice
*
......@@ -26,7 +28,7 @@
/**
* Abstract value object
*/
class Tx_TerFe2_Domain_Model_AbstractValueObject extends \TYPO3\CMS\Extbase\DomainObject\AbstractValueObject
class AbstractValueObject extends \TYPO3\CMS\Extbase\DomainObject\AbstractValueObject
{
/**
......@@ -36,7 +38,7 @@ class Tx_TerFe2_Domain_Model_AbstractValueObject extends \TYPO3\CMS\Extbase\Doma
*/
public function toArray()
{
return Tx_TerFe2_Utility_Array::objectToArray($this);
return \T3o\TerFe2\Utility\ArrayUtility::objectToArray($this);
}
}
<?php
namespace T3o\TerFe2\Domain\Model;
/*******************************************************************
* Copyright notice
*
......@@ -26,7 +28,7 @@
/**
* Author of an extension
*/
class Tx_TerFe2_Domain_Model_Author extends Tx_TerFe2_Domain_Model_AbstractEntity
class Author extends \T3o\TerFe2\Domain\Model\AbstractEntity
{
/**
......@@ -62,7 +64,7 @@ class Tx_TerFe2_Domain_Model_Author extends Tx_TerFe2_Domain_Model_AbstractEntit
/**
* versions
* @var \TYPO3\CMS\Extbase\Persistence\ObjectStorage<Tx_TerFe2_Domain_Model_Version>
* @var \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\T3o\TerFe2\Domain\Model\Version>
* @lazy
*/
protected $versions;
......@@ -212,7 +214,7 @@ class Tx_TerFe2_Domain_Model_Author extends Tx_TerFe2_Domain_Model_AbstractEntit
/**
* Getter for versions
*
* @return \TYPO3\CMS\Extbase\Persistence\ObjectStorage<Tx_TerFe2_Domain_Model_Version> versions
* @return \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\T3o\TerFe2\Domain\Model\Version> versions
*/
public function getVersions()
{
......@@ -223,10 +225,10 @@ class Tx_TerFe2_Domain_Model_Author extends Tx_TerFe2_Domain_Model_AbstractEntit
/**
* Adds a version
*
* @param Tx_TerFe2_Domain_Model_Version $version The Version to be added
* @param \T3o\TerFe2\Domain\Model\Version $version The Version to be added
* @return void
*/
public function addVersion(Tx_TerFe2_Domain_Model_Version $version)
public function addVersion(\T3o\TerFe2\Domain\Model\Version $version)
{
$this->versions->attach($version);
}
......@@ -235,10 +237,10 @@ class Tx_TerFe2_Domain_Model_Author extends Tx_TerFe2_Domain_Model_AbstractEntit
/**
* Removes a version
*
* @param Tx_TerFe2_Domain_Model_Version $version The Version to be removed
* @param \T3o\TerFe2\Domain\Model\Version $version The Version to be removed
* @return void
*/
public function removeVersion(Tx_TerFe2_Domain_Model_Version $version)
public function removeVersion(\T3o\TerFe2\Domain\Model\Version $version)
{
$this->versions->detach($version);
}
......
<?php
namespace T3o\TerFe2\Domain\Model;
/*******************************************************************
* Copyright notice
*
......@@ -26,7 +28,7 @@
/**
* Extension container
*/
class Tx_TerFe2_Domain_Model_Extension extends Tx_TerFe2_Domain_Model_AbstractEntity
class Extension extends \T3o\TerFe2\Domain\Model\AbstractEntity
{
/**
......@@ -39,7 +41,7 @@ class Tx_TerFe2_Domain_Model_Extension extends Tx_TerFe2_Domain_Model_AbstractEn
* Link to forge project
*
* @var string
* @validate Tx_Terfe2_Validation_Validator_UrlValidator
* @validate \T3o\TerFe2\Validation\Validator\UrlValidator
*/
protected $forgeLink;
......@@ -51,20 +53,20 @@ class Tx_TerFe2_Domain_Model_Extension extends Tx_TerFe2_Domain_Model_AbstractEn
/**
* Tags
* @var \TYPO3\CMS\Extbase\Persistence\ObjectStorage<Tx_TerFe2_Domain_Model_Tag>
* @var \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\T3o\TerFe2\Domain\Model\Tag>
*/
protected $tags;
/**
* Versions
* @var \TYPO3\CMS\Extbase\Persistence\ObjectStorage<Tx_TerFe2_Domain_Model_Version>