Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
e55feb1e
Commit
e55feb1e
authored
Oct 22, 2016
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(mvc) unused, pull part of
https://github.com/opnsense/core/pull/1134
parent
f67ef5e7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
16 deletions
+0
-16
ApiMutableModelControllerBase.php
...ntrollers/OPNsense/Base/ApiMutableModelControllerBase.php
+0
-16
No files found.
src/opnsense/mvc/app/controllers/OPNsense/Base/ApiMutableModelControllerBase.php
View file @
e55feb1e
...
@@ -106,22 +106,6 @@ abstract class ApiMutableModelControllerBase extends ApiControllerBase
...
@@ -106,22 +106,6 @@ abstract class ApiMutableModelControllerBase extends ApiControllerBase
return
$this
->
modelHandle
;
return
$this
->
modelHandle
;
}
}
/**
* validate and save model after update or insertion.
* Use the reference node and tag to rename validation output for a specific node to a new offset, which makes
* it easier to reference specific uuids without having to use them in the frontend descriptions.
* @param $node reference node, to use as relative offset
* @return array result / validation output
*/
protected
function
validateAndSave
(
$node
=
null
)
{
$result
=
$this
->
validate
();
if
(
empty
(
$result
[
'result'
]))
{
return
$this
->
save
();
}
return
$result
;
}
/**
/**
* validate this model
* validate this model
* @param $node reference node, to use as relative offset
* @param $node reference node, to use as relative offset
...
...
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