[Laszlo-user] Laszlo CRUD
Aaron.BLISHEN at publicworks.qld.gov.au
Mon Jun 26 20:31:18 EDT 2006
I posted something similar to this in the Laszlo Forums. Instead of using MVC however, I used SOAP, and a generic way of handling CRUD operations. It is totally database independant. Im interested in the laszlo side of your framework to see how you handled the delegation of operations and if you have a crud template.
Here is the thread on openlaszlo:
From: laszlo-user-bounces at openlaszlo.org [mailto:laszlo-user-bounces at openlaszlo.org] On Behalf Of Daniel Salama
Sent: Tuesday, 27 June 2006 7:26 AM
To: Rodrigo Vera
Cc: Laszlo Users; Justin Kennedy
Subject: Re: [Laszlo-user] Laszlo CRUD
Would you mind sharing that with the community?
On Jun 23, 2006, at 4:50 PM, Rodrigo Vera wrote:
Well... As a part of a resent debvelopment of mine y had to use a PHP backend for connecting with a laszlo aplication via HTTP, primary using POST...
The idea was to create a class handling the http requests an dispatching them to the apropiate CRUD object: Creating,Reading, Updating and Deleting data from a database using a general connector so you can change the database engine. Every CRUD class implements a method with the name of a data model . This PHP backend is a susbistem wich inputs are: action, model and data... so yo can especify in the POST, by example: create user bob .... so the Dispatcher send the request (in the laszlo xml form) to the class Creating where there is a method called "user" which receives "bob"... inside this method there are instructions to do this in the database (translating the xml, with an instance of a helper XML class, and using the generic connector)... the ouptput is redirected then to a Reading object where every method (also representing a data model) just return the apropiate xml for laszlo....
As you can see there are also other helper classes like LaszloXML wich translate xml to arrays for making SQL operations and validators of data...
The product wich motivates this framework is ended but i consider the framework, still, a work in progress... in ALPHA development state.
If you like i can send you the framework, ill be glad if you use it. ;) it´s open source, totally.
PHP and Laszlo Developer.
2006/6/23, Justin Kennedy < justin at maritimesource.ca>:
I read on the laszlo forums that you are developing a crud framework in
Can you tell me more about it?
Maritime Source, Inc.
Laszlo-user mailing list
Laszlo-user at openlaszlo.org
***************************** Disclaimer *****************************
The contents of this electronic message and any attachments are intended only for the addressee and may contain privileged or confidential information. They may only be used for the purposes for which they were supplied. If you are not the addressee, you are notified that any transmission, distribution, downloading, printing or photocopying of the contents of this message or attachments is strictly prohibited. The privilege of confidentiality attached to this message and attachments is not waived, lost or destroyed by reason of mistaken delivery to you. If you receive this message in error please notify the sender by return e-mail or telephone.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Laszlo-user