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
6459bcdc
Commit
6459bcdc
authored
8 years ago
by
Torsten Oppermann
Browse files
Options
Downloads
Patches
Plain Diff
[TASK] Adding Mail Model& Table
parent
c5b54ac9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1
Feature sg mail
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Classes/Model/Mail.php
+58
-0
58 additions, 0 deletions
Classes/Model/Mail.php
Classes/Repository/ModelRepository.php
+36
-0
36 additions, 0 deletions
Classes/Repository/ModelRepository.php
ext_tables.sql
+42
-0
42 additions, 0 deletions
ext_tables.sql
with
136 additions
and
0 deletions
Classes/Model/Mail.php
0 → 100644
+
58
−
0
View file @
6459bcdc
<?php
namespace
SGalinski\SgMail\Model
;
use
TYPO3\CMS\Extbase\DomainObject\AbstractEntity
;
/***************************************************************
* 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!
***************************************************************/
/**
* Mail
*/
class
Mail
extends
AbstractEntity
{
/**
* @var $mailContent
*/
protected
$mailContent
=
null
;
/**
* @var $mailContent
*/
protected
$toAddress
=
null
;
/**
* @var $mailContent
*/
protected
$fromAddress
=
null
;
/**
* @var $mailContent
*/
protected
$isSent
=
null
;
/**
* @var $mailContent
*/
protected
$scheduledTime
=
null
;
}
This diff is collapsed.
Click to expand it.
Classes/Repository/ModelRepository.php
0 → 100644
+
36
−
0
View file @
6459bcdc
<?php
namespace
SGalinski\SgMail\Repository
;
use
TYPO3\CMS\Extbase\Persistence\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!
***************************************************************/
/**
* MailRepository
*/
class
MailRepository
extends
Repository
{
}
This diff is collapsed.
Click to expand it.
ext_tables.sql
0 → 100644
+
42
−
0
View file @
6459bcdc
#
#
Table
structure
for
table
'sg_mail_domain_model_mail'
#
CREATE
TABLE
sg_mail_domain_model_mail
(
uid
int
(
11
)
NOT
NULL
auto_increment
,
pid
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
mail_content
varchar
(
255
)
DEFAULT
''
NOT
NULL
,
to_address
varchar
(
255
)
DEFAULT
''
NOT
NULL
,
from_address
varchar
(
255
)
DEFAULT
''
NOT
NULL
,
is_sent
boolean
DEFAULT
FALSE
NOT
NULL
,
scheduled_time
int
(
11
)
unsigned
DEFAULT
'0'
NOT
NULL
,
tstamp
int
(
11
)
unsigned
DEFAULT
'0'
NOT
NULL
,
crdate
int
(
11
)
unsigned
DEFAULT
'0'
NOT
NULL
,
cruser_id
int
(
11
)
unsigned
DEFAULT
'0'
NOT
NULL
,
deleted
tinyint
(
4
)
unsigned
DEFAULT
'0'
NOT
NULL
,
hidden
tinyint
(
4
)
unsigned
DEFAULT
'0'
NOT
NULL
,
starttime
int
(
11
)
unsigned
DEFAULT
'0'
NOT
NULL
,
endtime
int
(
11
)
unsigned
DEFAULT
'0'
NOT
NULL
,
t3ver_oid
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
t3ver_id
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
t3ver_wsid
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
t3ver_label
varchar
(
255
)
DEFAULT
''
NOT
NULL
,
t3ver_state
tinyint
(
4
)
DEFAULT
'0'
NOT
NULL
,
t3ver_stage
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
t3ver_count
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
t3ver_tstamp
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
t3ver_move_id
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
sys_language_uid
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
l10n_parent
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
l10n_diffsource
mediumblob
,
PRIMARY
KEY
(
uid
),
KEY
parent
(
pid
),
KEY
t3ver_oid
(
t3ver_oid
,
t3ver_wsid
),
KEY
language
(
l10n_parent
,
sys_language_uid
)
);
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