Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Stud.IP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jan-Hendrik Willms
Stud.IP
Commits
387d02b4
Commit
387d02b4
authored
1 year ago
by
Elmar Ludwig
Browse files
Options
Downloads
Patches
Plain Diff
revert API change, fixes #2949
Closes #2949 Merge request
studip/studip!2040
parent
b192f35c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/classes/forms/Part.php
+8
-8
8 additions, 8 deletions
lib/classes/forms/Part.php
with
8 additions
and
8 deletions
lib/classes/forms/Part.php
+
8
−
8
View file @
387d02b4
...
...
@@ -67,13 +67,13 @@ abstract class Part
/**
* Adds an Input to this Part.
* @param Input $input
* @return
$this
* @return
Input
*/
public
function
addInput
(
Input
$input
)
{
$input
->
setParent
(
$this
);
$this
->
parts
[]
=
$input
;
return
$
this
;
return
$
input
;
}
/**
...
...
@@ -81,15 +81,15 @@ abstract class Part
*
* @param string $text The text to be added.
* @param bool $text_is_html Whether the text is HTML (true) or plain text (false). Defaults to true.
* @return
$this
* @return
Text The added text form part.
*/
public
function
addText
(
string
$text
,
bool
$text_is_html
=
true
)
public
function
addText
(
string
$text
,
bool
$text_is_html
=
true
)
:
Text
{
$text_part
=
new
Text
();
$text_part
->
setText
(
$text
,
$text_is_html
);
$text_part
->
setParent
(
$this
);
$this
->
parts
[]
=
$text_part
;
return
$t
his
;
return
$t
ext_part
;
}
/**
...
...
@@ -100,16 +100,16 @@ abstract class Part
* @param \Icon|null $icon The icon to be used for the link.
* @param array $attributes Additional link attributes.
*
* @return
$this
* @return
Link The Text form element containing the link as HTML.
*/
public
function
addLink
(
string
$title
,
string
$url
,
?
\Icon
$icon
=
null
,
array
$attributes
=
[])
public
function
addLink
(
string
$title
,
string
$url
,
?
\Icon
$icon
=
null
,
array
$attributes
=
[])
:
Link
{
$link
=
new
Link
(
$url
,
$title
,
$icon
);
$link
->
setAttributes
(
$attributes
);
$this
->
addPart
(
$link
);
return
$
this
;
return
$
link
;
}
/**
...
...
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