Академический Документы
Профессиональный Документы
Культура Документы
Entity
(entity type, class)
Employee
MMS application
A simple web application which allows an
account holder to send a photo from a
mobile phone to a web site to be added to
a photo gallery
Server Technology
Data storage in MySQL relational database
Scripting language : PHP
MMS Photo Gallery
Documentation
mmsmail@cems.uwe.ac.uk
MMS mailbox
Originating phoneno
mime2db.php
MySql
database
mimedecode.php
mms1
php scripts index.php
getpage.php
getimage.php
MMS Photo : EAR diagram
Entity
Each Photo created
by exactly one
Member
Relationship
Attribute
Or
none
Each Member has
Primary key
created many
Photos
Data Type
M1 M2 M4
P1 P4 P5 P7 P3
One-one
One-many
Member Photo
Many-many
1..n 1..n
It is hard to get this notation the right way
round.
Always read it both ways
Every X is related to how many Ys?
Every Y is related to how many Xs?
Relationship OPTIONALITY
M1 M3 M2
P1 P4 P5 P7 P7 P3
One-many
Member Photo
QSEE
Class Exercise - KML
A Folder has a name and contains zero, one or more
PlaceMarks and some Styles
A Placemark has attributes of :
A name
A description
A position defined by its longitude, latitude and Altitude, each
represented by a signed decimal number
A Style defines the appearance of a placemark the
symbol to show, the size, the foreground and
background colour.
Each Placemark has a Style
Draw an ERM for this simplified description of a KML
Folder.