Skip to content

Commit 1942dba

Browse files
author
yishuo
committed
2011/9/26/ v0.8 主线分支第三次合并
merge: from laboratory trunk version: 2896 features: v0.8 git-svn-id: http://svn.simba.taobao.com/svn/PW_WindFramework/trunk@2897 18ba2127-5a84-46d4-baec-3457e417f034
1 parent 6fadf62 commit 1942dba

13 files changed

Lines changed: 71 additions & 34 deletions

_compile/config/components_config.xml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
<components>
1111
<component name='windApplication' path='WIND:web.WindWebApplication'
12-
scope='singleton' proxy='true'>
12+
scope='singleton'>
1313
<properties>
1414
<property name='dispatcher' ref='dispatcher' />
1515
<property name='handlerAdapter' ref='router' />
@@ -84,8 +84,6 @@
8484
</component>
8585
<component name='windSession' path='WIND:http.session.WindSession'
8686
scope='singleton' destroy='commit'>
87-
<!--<constructor-args>
88-
<constructor-arg name='0' ref='windCache' />
89-
</constructor-args>
90-
--></component>
87+
<!--<constructor-args> <constructor-arg name='0' ref='windCache' /> </constructor-args> -->
88+
</component>
9189
</components>

demos/blog/compile/template/layout.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
</div>
3838
</div>
3939
<div class="main">
40-
<?php $this->content()?>
40+
<?php $this->content();?>
4141
</div>
4242
<div id="footer">
4343
<div class="footer">

demos/blog/template/layout.htm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
</div>
3838
</div>
3939
<div class="main">
40-
<!--#$this->content()#-->
40+
<!--#$this->content();#-->
4141
</div>
4242
<div id="footer">
4343
<div class="footer">

wind/base/WindEnableValidateModule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class WindEnableValidateModule {
3434
*
3535
* @var array
3636
*/
37-
private $_errors = array();
37+
protected $_errors = array();
3838
/**
3939
* 验证中产生错误信息时使用的默认错误信息
4040
*

wind/base/WindForwardException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* @copyright ©2003-2103 phpwind.com
1010
* @license http://www.windframework.com
1111
* @version $Id$
12-
* @package package_name
12+
* @package wind.base
1313
*/
1414
class WindForwardException extends WindException {
1515
/**

wind/components_config.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
'windApplication' => array(
33
'path' => 'WIND:web.WindWebApplication',
44
'scope' => 'singleton',
5-
'proxy' => true,
65
'properties' => array(
76
'dispatcher' => array(
87
'ref' => 'dispatcher',

wind/db/AbstractWindPdoAdapter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ protected function _getPdoDataType($variable) {
2828
/* (non-PHPdoc)
2929
* @see PDO::quote()
3030
*/
31-
public function quote($value) {
32-
return parent::quote($value, $this->_getPdoDataType(gettype($value)));
31+
public function quote($value, $type = null) {
32+
return parent::quote($value, $type ? $type : $this->_getPdoDataType(gettype($value)));
3333
}
3434

3535
/**

wind/filter/WindActionFilter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function __construct($forward, $errorMessage, $router, $args = array()) {
7575
$this->errorMessage = $errorMessage;
7676
$this->router = $router;
7777
foreach ($args as $key => $value)
78-
property_exists(get_class($this), $key) && $this->$key = $value;
78+
property_exists($this, $key) && $this->$key = $value;
7979
}
8080

8181
/**

wind/readme

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,29 @@
1-
版本说明:
2-
wind_0.3.0.v1882_20110315_b #默认配置为 php
3-
wind_0.3.0.v1882_20110315 #默认配置为xml
1+
当前 版本说明:
2+
wind_0.8.0
3+
release date: 2011.09.29
4+
description:
5+
8.0这个版本集中的优化了框架的核心机制,调整了框架的体系架构,使其性能效率上有了非常明显的改进,扩展能力上也更出色.
6+
7+
历史版本:
8+
wind_0.3.0.v1882_20110315_b
9+
wind_0.3.0.v1882_20110315
410
wind_0.1.0.v849_20101227
511

6-
Feature list: sfsfsdfs
12+
Feature list:
13+
1. 去掉默认模板的默认设置.
14+
2. 增加log立即flush支持.
15+
3. 增加windcache组件,基于框架cache组件机制.实现cache策略的无缝切换.
16+
4. 安全,基于模板体系的输出安全过滤.
17+
5. 多路由协议支持,UrlRewrite支持.
18+
6. 基于action监听过滤的表单处理机制.
19+
7. 支持action监听过滤链.
20+
8. 重定义默认应用配置.
21+
9. 组件对象,配置信息注册.
22+
10.支持多应用处理能力.
723

8-
Fixed bug list:sdfsdf
24+
Fixed bug list:
25+
BUG[2106] WindHttpRequest 中增加getRequest()方法
26+
BUG[2129] module/view配置文件获取错误
27+
BUG[2133] 关于Call to undefined method WindDbException::getError() 的异常错误
28+
BUG[2351] 异常处理;当没有处理action句柄被找到或者句柄错误时抛出错误
29+
BUG[2366] 输出变量安全过滤

wind/router/WindRouter.php

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class WindRouter extends AbstractWindRouter {
4242
public function route() {
4343
$this->setCallBack(array($this, 'defaultRoute'));
4444
$params = $this->getHandler()->handle();
45-
$this->setParams($params);
45+
$params && $this->setParams($params);
4646
}
4747

4848
/* (non-PHPdoc)
@@ -70,8 +70,15 @@ public function assemble($action, $args = array(), $route = null) {
7070
* @return array
7171
*/
7272
public function defaultRoute() {
73-
$_pathInfo = $this->getRequest()->getPathInfo();
74-
return $_pathInfo ? WindUrlHelper::urlToArgs($_pathInfo) : array();
73+
$action = $this->getRequest()->getRequest($this->actionKey);
74+
$controller = $this->getRequest()->getRequest($this->controllerKey);
75+
$module = $this->getRequest()->getRequest($this->moduleKey);
76+
$action && $this->setAction($action);
77+
$controller && $this->setController($controller);
78+
$module && $this->setModule($module);
79+
return;
80+
/*$_pathInfo = $this->getRequest()->getPathInfo();
81+
return $_pathInfo ? WindUrlHelper::urlToArgs($_pathInfo) : array();*/
7582
}
7683
}
7784

0 commit comments

Comments
 (0)