Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
sg_mail
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TYPO3
sg_mail
Commits
48378d95
Commit
48378d95
authored
8 years ago
by
Torsten Oppermann
Browse files
Options
Downloads
Patches
Plain Diff
[TASK] Adding Model & Repository for TEmplate
parent
3f55dafd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Classes/Domain/Model/Template.php
+131
-0
131 additions, 0 deletions
Classes/Domain/Model/Template.php
Classes/Domain/Repository/TemplateRepository.php
+34
-0
34 additions, 0 deletions
Classes/Domain/Repository/TemplateRepository.php
with
165 additions
and
0 deletions
Classes/Domain/Model/Template.php
0 → 100644
+
131
−
0
View file @
48378d95
<?php
namespace
SGalinski\SgMail\Domain\Model
;
/***************************************************************
* Copyright notice
*
* (c) sgalinski Internet Services (https://www.sgalinski.de)
*
* All rights reserved
*
* This script is part of the TYPO3 project. The TYPO3 project is
* free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* The GNU General Public License can be found at
* http://www.gnu.org/copyleft/gpl.html.
*
* This script is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
use
TYPO3\CMS\Extbase\DomainObject\AbstractEntity
;
/**
* Template domain model
*/
class
Template
extends
AbstractEntity
{
/**
* @var string
*/
protected
$extensionKey
=
''
;
/**
* @var string
*/
protected
$subject
=
''
;
/**
* @var string
*/
protected
$templateName
=
''
;
/**
* @var string
*/
protected
$language
=
''
;
/**
* @var string
*/
protected
$content
=
''
;
/**
* @return string
*/
public
function
getExtensionKey
()
{
return
$this
->
extensionKey
;
}
/**
* @param string $extensionKey
*/
public
function
setExtensionKey
(
$extensionKey
)
{
$this
->
extensionKey
=
$extensionKey
;
}
/**
* @return string
*/
public
function
getSubject
()
{
return
$this
->
subject
;
}
/**
* @param string $subject
*/
public
function
setSubject
(
$subject
)
{
$this
->
subject
=
$subject
;
}
/**
* @return string
*/
public
function
getTemplateName
()
{
return
$this
->
templateName
;
}
/**
* @param string $templateName
*/
public
function
setTemplateName
(
$templateName
)
{
$this
->
templateName
=
$templateName
;
}
/**
* @return string
*/
public
function
getLanguage
()
{
return
$this
->
language
;
}
/**
* @param string $language
*/
public
function
setLanguage
(
$language
)
{
$this
->
language
=
$language
;
}
/**
* @return string
*/
public
function
getContent
()
{
return
$this
->
content
;
}
/**
* @param string $content
*/
public
function
setContent
(
$content
)
{
$this
->
content
=
$content
;
}
}
This diff is collapsed.
Click to expand it.
Classes/Domain/Repository/TemplateRepository.php
0 → 100644
+
34
−
0
View file @
48378d95
<?php
namespace
SGalinski\SgMail\Domain\Repository
;
/***************************************************************
* Copyright notice
*
* (c) sgalinski Internet Services (https://www.sgalinski.de)
*
* All rights reserved
*
* This script is part of the TYPO3 project. The TYPO3 project is
* free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* The GNU General Public License can be found at
* http://www.gnu.org/copyleft/gpl.html.
*
* This script is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
/**
* Repository for the Template object
*/
class
TemplateRepository
extends
AbstractRepository
{
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment