Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Σταύρος Παπαδάκης
gredu_labs
Commits
bfcee8d9
Commit
bfcee8d9
authored
Feb 23, 2016
by
Georgios Tsakalos
Browse files
add remove software method - update interface
parent
ab2992e8
Changes
2
Hide whitespace changes
Inline
Side-by-side
module/schools/src/Service/SoftwareService.php
View file @
bfcee8d9
...
...
@@ -89,6 +89,11 @@ class SoftwareService implements SoftwareServiceInterface
return
$software
->
exportAll
();
}
public
function
removeSoftware
(
$id
)
{
R
::
trash
(
'software'
,
$id
);
}
private
function
exportAll
(
$beans
)
{
$exported
=
[];
...
...
module/schools/src/Service/SoftwareServiceInterface.php
View file @
bfcee8d9
...
...
@@ -20,5 +20,6 @@ interface SoftwareServiceInterface
public
function
getSoftwareById
(
$id
);
public
function
getSoftwareBySchoolId
(
$id
);
public
function
getSoftwareByLabId
(
$id
);
public
function
removeSoftware
(
$id
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment