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
d630b126
Commit
d630b126
authored
Feb 24, 2009
by
darh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added magic __call() method to allow more friendly calls from <?php ?> block in the templates
git-svn-id:
svn://dwoo.org/dwoo/trunk@253
0598d79b-80c4-4d41-97ba-ac86fbbd088b
parent
703f3039
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
Dwoo.php
lib/Dwoo.php
+11
-0
No files found.
lib/Dwoo.php
View file @
d630b126
...
@@ -1502,4 +1502,15 @@ class Dwoo
...
@@ -1502,4 +1502,15 @@ class Dwoo
{
{
return
$this
->
scope
;
return
$this
->
scope
;
}
}
/**
* Redirects all calls to unexisting to plugin proxy.
*
* @param string Method name
* @param array List of arguments
* @return mixed
*/
public
function
__call
(
$method
,
$args
)
{
return
call_user_func_array
(
$this
->
getPluginProxy
()
->
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