File: examples/db/datamapper/mapping01.xml

Recommend this page to a friend!
  Classes of Haseeb Ahmad Basil  >  PHP Skeleton Framework  >  examples/db/datamapper/mapping01.xml  >  Download  
File: examples/db/datamapper/mapping01.xml
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP Skeleton Framework
Extensive Web application development framework
Author: By
Last change:
Date: 5 years ago
Size: 843 bytes
 

Contents

Class file image Download
<?xml version="1.0" encoding="utf-8" ?>
<map>
	<class>User</class>

	<table>users</table>

	<mapping>
		<property>username</property>
		<field>userid</field>
		<type>string</type>
		<size>20</size>
		<is_key>1</is_key>
		<table></table>
		<filters></filters>
	</mapping>

	<mapping>
		<property>password</property>
		<field>password</field>
		<type>string</type>
		<size>24</size>
		<is_key></is_key>
		<table></table>
		<filters></filters>
	</mapping>

	<mapping>
		<property>active</property>
		<field>inactive</field>
		<type>string</type>
		<size>20</size>
		<is_key></is_key>
		<table>company</table>
		<filters></filters>
	</mapping>

	<join>
		<table1>users</table1>
		<field1>userid</field1>
		<table2>company</table2>
		<field2>users_id</field2>
		<join_type>LEFT</join_type>
	</join>
</map>
For more information send a message to info at phpclasses dot org.