



|
Openbiz Manual
Openbiz 2.2 Overview
- Roadmap of Openbiz 2.2
- Test drive Openbiz 2.2
- What to change to code
Roadmap of Openbiz 2.2
Build on Zend framework
- Replace ADODB database abstraction library with Zend_Db
(based on PDO). Benefits include higher performance and
lower memory footprint.
- Zend framework provides many useful functionalities
- Zend framework is official php framework, but it is
still a low level library. Openbiz application framework
bring your development inches away to your applications.
Leverage APC to improve performance
- Openbiz objects metadata data are caches in APC memory
to save the time of loading it from file system.
- PHP objects are cached in APC engine. This boosts the
performance of highly object-oriented PHP code.
- APC is developed with PHP folks, it'll be in PHP6.
Enhance BizDataObj
- Query usually returns records array by RunSearch() and
FetchRecords(). This simplifies the data query interface.
- Developer can get PDO statement by calling Query() to
have more control on the query results.
- Query result data is not cached across user session
(different with 2.1). This saves big amount of time to
load session data.
- Only single active record across user session
- Replace OtherSQL with GroupBy and Having (under
development)
Enhance BizForm
- Support more page navigation on table form. Users can
do PrevPage, NextPage, GotoPage and jump on any page they
type in.
- Multi-selection will be supported (under development)
- New layout configuration to greatly simplify the
development/maintenance work on form template files (under
development)
Enhance BizView
- View history contains BizDataObj bookmark that contains
page number, active record id, search rule and sort rule.
This ensures forward and backward page navigation brings
users the right content.
Test drive Openbiz 2.2
1. Download Openbiz
2.2 source, download Zend
Framework source. To get higher performance, enabling APC
extension is highly recommended. A
topic on apachelounge covers installing APC on windows.
2. Configure Zend framework path in openbiz_home/bin/sysheader.inc.
For example, if Zend framework library is under /htdocs/zf015/, the
following part is added in sysheader.inc.
// defined Zend framework library home as ZEND_FRWK_HOME
define('ZEND_FRWK_HOME',$_SERVER['DOCUMENT_ROOT']."/zf015/library");
// add zend framework to include path
set_include_path(get_include_path() . PATH_SEPARATOR .
ZEND_FRWK_HOME); |
3. Change Config.xml Driver attribute. http://us2.php.net/manual/en/ref.pdo.php#pdo.drivers
gives the list of supported PDO drivers.
4. Run Openbiz dempapp.
What to change in your code?
Data query in 2.1 or earlier version
$resultSet = db->excute($sql);
if ($resultSet === false) {
$errMsg = "Error in query: " . $sql . ". " . $db->ErrorMsg();
}
$sqlArr = $resultSet->FetchRow();
Data query in 2.2
try {
$pdo_stmt = $db->query($sql);
}
catch (Exception $e) {
$errMsg = "Error in query: " . $sql . ". " . $e->getMessage();
}
$sqlArr = $pdo_stmt ->fetch();
|
|
| Release |
|
|
| Support |
|
|
| 3rd party
packages |
|
|
|