Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
TypoScript-Forger
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
TYPO3
TypoScript-Forger
Commits
babc062b
Commit
babc062b
authored
9 years ago
by
damjan
Browse files
Options
Downloads
Patches
Plain Diff
[TASK] Use IDs instead of objects
parent
3559692e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Classes/SGalinski/TypoScriptReferenceFrontend/Domain/Model/Attribute.php
+11
-13
11 additions, 13 deletions
...ki/TypoScriptReferenceFrontend/Domain/Model/Attribute.php
with
11 additions
and
13 deletions
Classes/SGalinski/TypoScriptReferenceFrontend/Domain/Model/Attribute.php
+
11
−
13
View file @
babc062b
...
...
@@ -55,12 +55,12 @@ class Attribute {
private
$typo3Group
=
Attribute
::
NORMAL_GROUP
;
/**
* @var
Attribute
* @var
int
*/
private
$type
;
/**
* @var
Attribute
* @var
int
*/
private
$parent
;
...
...
@@ -204,7 +204,7 @@ class Attribute {
/**
* Set parent
*
* @param
Attribute
$parent
* @param
int
$parent
* @return Attribute
*/
public
function
setParent
(
$parent
)
{
...
...
@@ -214,9 +214,9 @@ class Attribute {
}
/**
* Get parent
* Get parent
id.
*
* @return
Attribute
* @return
int
*/
public
function
getParent
()
{
return
$this
->
parent
;
...
...
@@ -295,14 +295,14 @@ class Attribute {
}
/**
* @return
Attribute
* @return
int
*/
public
function
getType
()
{
return
$this
->
type
;
}
/**
* @param
Attribute
$type
* @param
int
$type
* @return Attribute
*/
public
function
setType
(
$type
)
{
...
...
@@ -354,10 +354,10 @@ class Attribute {
$attributeArray
[
'maxVersion'
]
=
$this
->
maxVersion
;
}
if
(
isset
(
$this
->
parent
))
{
$attributeArray
[
'parent'
]
=
$this
->
parent
->
getId
()
;
$attributeArray
[
'parent'
]
=
$this
->
parent
;
}
if
(
isset
(
$this
->
type
))
{
$attributeArray
[
'type'
]
=
$this
->
type
->
getId
()
;
$attributeArray
[
'type'
]
=
$this
->
type
;
}
if
(
isset
(
$this
->
typo3Group
))
{
$attributeArray
[
'typo3Group'
]
=
$this
->
typo3Group
;
...
...
@@ -408,14 +408,12 @@ class Attribute {
$this
->
maxVersion
=
NULL
;
}
if
(
isset
(
$attribute
->
parent
))
{
$this
->
parent
=
new
Attribute
();
$this
->
parent
->
setId
(
$attribute
->
parent
);
$this
->
parent
=
$attribute
->
parent
;
}
else
{
$this
->
parent
=
NULL
;
}
if
(
isset
(
$attribute
->
type
))
{
$this
->
type
=
new
Attribute
();
$this
->
type
->
setId
(
$attribute
->
type
);
$this
->
type
=
$attribute
->
type
;
}
else
{
$this
->
type
=
NULL
;
}
...
...
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