Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
wp-basic-requirements
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wpdesk
wp-basic-requirements
Commits
75303348
Commit
75303348
authored
6 years ago
by
Piotr Po
Browse files
Options
Downloads
Patches
Plain Diff
Added plugin name methods
parent
5085922f
Branches
feature/plugin-name
No related tags found
1 merge request
!11
Added plugin name methods
Pipeline
#8564
passed with stages
in 3 minutes and 27 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+4
-0
4 additions, 0 deletions
CHANGELOG.md
src/Plugin/Plugin_Info.php
+18
-0
18 additions, 0 deletions
src/Plugin/Plugin_Info.php
with
22 additions
and
0 deletions
CHANGELOG.md
+
4
−
0
View file @
75303348
## [2.3.2] - 2019-04-16
### Added
-
Plugin name methods
## [2.3.1] - 2019-03-25
### Fixed
-
Backward compatibility
...
...
This diff is collapsed.
Click to expand it.
src/Plugin/Plugin_Info.php
+
18
−
0
View file @
75303348
...
...
@@ -31,6 +31,9 @@ class WPDesk_Plugin_Info implements WPDesk_Translatable, WPDesk_Buildable, WPDes
/** @var string */
private
$version
;
/** @var string */
private
$plugin_name
;
/** @var string */
private
$product_id
;
...
...
@@ -96,6 +99,21 @@ class WPDesk_Plugin_Info implements WPDesk_Translatable, WPDesk_Buildable, WPDes
$this
->
version
=
$version
;
}
/**
* @return string
*/
public
function
get_plugin_name
()
{
return
$this
->
plugin_name
;
}
/**
* @param string $product_id
*/
public
function
set_plugin_name
(
$plugin_name
)
{
$this
->
plugin_name
=
$plugin_name
;
}
/**
* @return string
*/
...
...
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