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
2e126167
Commit
2e126167
authored
Apr 19, 2009
by
darh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes #31
git-svn-id:
svn://dwoo.org/dwoo/trunk@259
0598d79b-80c4-4d41-97ba-ac86fbbd088b
parent
f71d4289
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
12 deletions
+14
-12
View.php
lib/Dwoo/Adapters/ZendFramework/View.php
+14
-12
No files found.
lib/Dwoo/Adapters/ZendFramework/View.php
View file @
2e126167
...
...
@@ -33,6 +33,14 @@ class Dwoo_Adapters_ZendFramework_View extends Zend_View_Abstract
* @var Dwoo_Compiler
*/
protected
$_compiler
=
null
;
/**
* Changing Filter's scope to play nicely
*
* @var array
*/
protected
$_filter
=
array
();
/**
* @var string
...
...
@@ -95,14 +103,8 @@ class Dwoo_Adapters_ZendFramework_View extends Zend_View_Abstract
}
// end BC
// Making sure that everything is loaded.
$defaults
=
array
(
'engine'
=>
'Dwoo'
,
'dataProvider'
=>
'Dwoo_Data'
,
'compiler'
=>
'Dwoo_Compiler'
,
);
$opt
=
array_merge
(
$defaults
,
$opt
);
// Making sure that everything is loaded.
$classes
=
array
(
'engine'
,
'dataProvider'
,
'compiler'
);
// Setting options to Dwoo objects...
foreach
(
$opt
as
$type
=>
$settings
)
{
...
...
@@ -118,7 +120,7 @@ class Dwoo_Adapters_ZendFramework_View extends Zend_View_Abstract
call_user_func
(
array
(
$this
,
'set'
.
$type
),
$settings
[
'type'
]);
}
if
(
array_key_exists
(
$type
,
$default
s
))
{
if
(
in_array
(
$type
,
$classe
s
))
{
// Call get so that the class is initialized
$rel
=
call_user_func
(
array
(
$this
,
'get'
.
$type
));
...
...
@@ -330,9 +332,9 @@ class Dwoo_Adapters_ZendFramework_View extends Zend_View_Abstract
* @return Dwoo_Data
*/
public
function
getCompiler
()
{
if
(
null
===
$this
->
_compiler
)
{
$this
->
_compiler
=
new
Dwoo_Compiler
;
{
if
(
null
===
$this
->
_compiler
)
{
$this
->
_compiler
=
Dwoo_Compiler
::
compilerFactory
()
;
}
return
$this
->
_compiler
;
...
...
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