otli4nika
- Bulgaria
- Exclusive Author
- Has been a member for 2-3 years
- Sold between 100 and 1 000 dollars
17
Purchases
Buyer Rating: Minimum of 3 votes required
| Created | 31 July 10 |
| Last Update | 16 August 10 |
| Compatible Browsers | Chrome 4, Chrome 5, Firefox, IE6, IE7, IE8, Opera, Safari |
| Software Version | PHP 5.x, MySQL 5.x, jQuery |
| Software Framework | N/A |
| Files Included | HTML, PHP, SQL, XML |
© All Rights Reserved otli4nika -
Contact Envato Support


Demo?
Hello, there is no demo but You could see screenshots and there is demonstrated how much simple is to use the tool.
You should ask CodeCanyon to relocate this script. Why the heck is it in the PHP /Calendars category? There’s actually a database category…
Jeff, You are right man. I have noticed that the category is not the most appropriate but I think that they take desicions concerning the category. I will send a request fot category change …
Thanks a lot
Does it support JOIN ?
Thanks bro.
P.S. great looking product, looking forward to your response.
Hi, i am happy that the product is usable for you and you like it. Yes you could make JOIN . Just write whatever mysql query in the entit xml file and prepare an entity class with the fields you want and it will work. If you need concreet example please contact me on my email, i will help you. The idea of the mapper is to map sql queries to php class instances and to isolate the database. Good luck and thans for the response
Sure man, i’d love to know how it does the JOINS . 2 Thumbs UP
The idea of the tool comes from j2ee jpa api, but there are no facilities to manage object relations. You could just store slq queries in xml files under some name, execute this queries and produce php class instances instead of recordsets. You could use JOIN query like every other query.
Example: Let suppose that you have some join query and you would like to load its result in some class instances. You must create a php class with fields coresponding to the query resultset fields names.
select f1, f2, f3 …. from table1, table 2 where …
class MyExample { f1; f2; f3;
}
Store your query in MyExample.xml and give it some name. Register MyExample.xml in maps.xml. By using the entity manager you could execute the query and it will produce an arry of MyExample instances. So the you could execute whatever sql query you want. The good things : 1. the code is better structured, more object oriented 2. database access is under some level of isolation so you could migrate to other database by writting new entity manager and modify some slq but not the business logic of all the application
ahhh i know J2EE , this sounds like Hibernate… I’ll purchase it as soon as possible
Yes something like Hibernate but very simple one with the same idea. if you need such product in PHP and you want it, you are wellcome
seriously – does it handle object models from a GET method-(like a router so i can build a controller and use it as a makeshift orm?)
Hi, sorry for the lating answer. Yes, You could pass thee mapping ideentifier by get request, but you need to write a script which load the data using this identifier and appropriate entity class. This library will help you to isolate the database and queries in xml file, while working with php objects in the business logic part.