Archive for June, 2006

Trigger Management

MySQL 5支持Trigger, 但一时找不到Trigger的管理工具, 于是在Diggmore中我们加入了一个trigger的管理的功能, 你可以在diggmore的svn中获得源码.
Screenshots:

trigger_diggmore_1 

trigger_diggmore_2

赞美澳大利亚

丑陋的意大利
丑陋的点球
更加丑陋的黄健翔

Change Wordpress Pagination into Yahoo Pattern

Yahoo! Item Pagination is a pattern for display navigating pagination. And the default pagination of wordpress is really ugly. So I spent ten minutes to use pagination solution in diggmore to replace the default one. Looks nice. :)

How to Integrate HessianPHP with Diggmore Action

Hessian是Caucho的一个Web Service协议, 使用二进制数据传输. 相比SOAP来更加简单, 而且速度更快. 目前该协议有多种语言的实现, 如java, .net, ruby等等. 而HessianPHP是hessian的PHP的实现.

Diggmore是PHPMore在Zend Framework基础上所做的一个框架性应用. Action是Diggmore中的基本执行单元. 执行的时候会by Name的Autoware. 下面是一个简单的范例.

code 1 HessianResultType
require_once(dirname(__FILE__).”/ResultType.php”);
require_once(dirname(__FILE__).”/../3rd/hessianphp/HessianService.php”);

/**
* @package DiggMore
* @subpackage Core
* @copyright Copyright (c) 2006 PHP More. (http://www.phpmore.com/)
* @author Binzy Wu
*/
class HessianResultType implements ResultType
{
/**
*
* @see ResultType::process
*
*/
public function process($result, Action $action, $controller = null)
{
$wrapper = new HessianService();

$action_config = $action->getConfig();
$resource = $action_config[$result][’resource’];

$wrapper->registerObject($action->$resource);
$wrapper->displayInfo = true;
$wrapper->service();

}
}
(more…)

Data Has Been Recovered

Thanks a lot to David Jia for his recovering job.