Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Nextcloud
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
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
Show more breadcrumbs
TeDomum
Nextcloud
Commits
b40f9670
Commit
b40f9670
authored
12 years ago
by
Robin Appelman
Browse files
Options
Downloads
Patches
Plain Diff
allow clearing hooks and fileproxies
parent
736739bb
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/fileproxy.php
+4
-0
4 additions, 0 deletions
lib/fileproxy.php
lib/hook.php
+17
-0
17 additions, 0 deletions
lib/hook.php
with
21 additions
and
0 deletions
lib/fileproxy.php
+
4
−
0
View file @
b40f9670
...
@@ -115,4 +115,8 @@ class OC_FileProxy{
...
@@ -115,4 +115,8 @@ class OC_FileProxy{
}
}
return
$result
;
return
$result
;
}
}
public
static
function
clearProxies
(){
self
::
$proxies
=
array
();
}
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
lib/hook.php
+
17
−
0
View file @
b40f9670
...
@@ -65,5 +65,22 @@ class OC_Hook{
...
@@ -65,5 +65,22 @@ class OC_Hook{
// return true
// return true
return
true
;
return
true
;
}
}
/**
* clear hooks
* @param string signalclass
* @param string signalname
*/
static
public
function
clear
(
$signalclass
=
''
,
$signalname
=
''
){
if
(
$signalclass
){
if
(
$signalname
){
self
::
$registered
[
$signalclass
][
$signalname
]
=
array
();
}
else
{
self
::
$registered
[
$signalclass
]
=
array
();
}
}
else
{
self
::
$registered
=
array
();
}
}
}
}
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