Re: [fw-general] Zend_Db_Mapper Proposal - Ready for Review

2009-01-27 Thread Ken Chau

Do you have any source code laying around anywhere for us to look at? I had
some aspirations to write an ActiveRecord component, but my recent
experience with models (well, and PHP's lack of late static binding support)
has led me searching for other model components. I would love to replace
Zend_Db_Table with yours in my applications!



beberlei wrote:
 
 Hello everyone,
 
 I finished up a new proposal that would greatly enhance domain driven 
 development with the ZF: A generic data mapper component.
 
 http://framework.zend.com/wiki/display/ZFPROP/Zend_Db_Mapper+-+Benjamin+Eberlei
 
 Its a contrasting proposal to Zend_Db_Table, for handling the underlying 
 persistence of your application layer. Its aiming at enterprise developers 
 that need to do more than the usually siple BlogPosts - Comments -
 Tags 
 examples. 
 
 The core concept is the Record (Entity Pattern) centric datastrcuture,
 rather 
 than the SQL datastructure. You build your applications domain logic of
 record 
 objects that communicate to each other and then persist them into the
 database 
 at the end of your session with following a defined mapping scheme.
 
 This component therefore tries to achieve the separation of Business logic 
 from the underlying persistence.
 
 comments are greatly appreciated,
 Benjamin
 
 -- 
 Benjamin Eberlei
 http://www.beberlei.de
 
 

-- 
View this message in context: 
http://www.nabble.com/Zend_Db_Mapper-Proposal---Ready-for-Review-tp21652525p21700669.html
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] Gdata API and SpreadsheetKey

2008-05-05 Thread Ken Chau

Am I safe to assume that from now on we have to hardcode in the 5th element
after a / delimited split to get spreadsheet keys? 

This is straight from the demo Gdata Spreadsheet app: 

$currKey = split('/', $feed-entries[$input]-id-text); 
$this-currKey = $currKey[5]; 
$query = new Zend_Gdata_Spreadsheets_DocumentQuery(); 
$query-setSpreadsheetKey($this-currKey); 
$feed = $this-gdClient-getWorksheetFeed($query); 
$input = getInput(\nSelection); 
$currWkshtId = split('/', $feed-entries[$input]-id-text); 
$this-currWkshtId = $currWkshtId[8]; 

The manual just tells me that I should get the key from the id... but it
doesn't really list what one looks like. So from the demo app, I just
concluded that it's the 5th element of a returned string. 

Is there a better way to do this?!
-- 
View this message in context: 
http://www.nabble.com/Gdata-API-and-SpreadsheetKey-tp17071462p17071462.html
Sent from the Zend Framework mailing list archive at Nabble.com.