Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
Dwoo
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Common
Dwoo
Commits
22c9eacf
Commit
22c9eacf
authored
Jan 19, 2010
by
seldaek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Calling an undefined method on Dwoo now throws an exception if there is no plugin proxy, refs #51
git-svn-id:
http://svn.dwoo.org/trunk@324
0598d79b-80c4-4d41-97ba-ac86fbbd088b
parent
cb3c2b55
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
Dwoo.php
lib/Dwoo.php
+5
-1
No files found.
lib/Dwoo.php
View file @
22c9eacf
...
@@ -1558,6 +1558,10 @@ class Dwoo
...
@@ -1558,6 +1558,10 @@ class Dwoo
* @return mixed
* @return mixed
*/
*/
public
function
__call
(
$method
,
$args
)
{
public
function
__call
(
$method
,
$args
)
{
return
call_user_func_array
(
$this
->
getPluginProxy
()
->
getCallback
(
$method
),
$args
);
$proxy
=
$this
->
getPluginProxy
();
if
(
!
$proxy
)
{
throw
new
Dwoo_Exception
(
'Call to undefined method '
.
__CLASS__
.
'::'
.
$method
.
'()'
);
}
return
call_user_func_array
(
$proxy
->
getCallback
(
$method
),
$args
);
}
}
}
}
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