1 / 21

Code Report For PALMail System

Code Report For PALMail System. Prepared by: Mohammed Al-Azaiza Mohammed El- Kahlout Mohammed Erheem. Supervised by: Prof. Mohammad A. Mikki. Introduction. Architectural Strategies. Policies and Tactics. Model–view–controller (MVC). glossary. Table of contents. Introduction.

beyla
Download Presentation

Code Report For PALMail System

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Code Report For PALMail System Prepared by: Mohammed Al-Azaiza Mohammed El-Kahlout Mohammed Erheem Supervised by: Prof. Mohammad A. Mikki

  2. Introduction Architectural Strategies. Policies and Tactics Model–view–controller (MVC) glossary Table of contents

  3. Introduction • Web mail is one of the most useful web applications on the Internet, it allows you to access, send, receive and manage your email through a web browser. • PALMail includes all previous service in addition to the possibilities and other services such as attachingfiles and images with storagespace for each user, and system protection from unwantedmessages and advertising messages, as well as a system of protection from viruses, with the possibility of development of those services in the future.

  4. Architectural strategies • This software will be written in PHP5. The PHP programming language is ideal for large scale projects like this one, it simplifies the development process. PHP contains many of the redistributable components for use in a useful and fast without the establishment of new components. • The large amount of data that will be worked on has to be managed by database software. A possible candidate for this is MySQL Server. • The user interface straightforward and the output simple and using it intuitive.

  5. Policies and tactics • The software will be developed using Dreamweaver CS5, and programmer notepad. • We have plans to maintain this system even after the end of the semester. Future plans include porting it to different functions. • We extend our sincere thanks to the Power-link for hosting our system on power-link servers

  6. Model–view–controller (MVC) Interface

  7. Model: • Classes • 1- DbConnector. • To connect with MySQL database • 2- usersBean. • This class to create new account, modify, delete and get account information. • 3- logBean. • This class records any process in the pal mail system.

  8. Model: cont • 4- inboxBean. • This class to store inbox, sent, deletes messages for pal mail system. • 5- attachmentBean. • This class to store files for messages. • 6- filesBean. • This class for pal drive to store files for users. • The PDO is a default class included in PHP programming language used to connect MySQL database or any database.

  9. 1. class DbConnector inheritance from • PDO class. • Attributes • private pdo • private hostname = "server IP address" • private username = "Database user name" • private password = " Database password" • private database = " Database name"

  10. class DbConnector inheritance from Methods • function __construct() : Call “open” function. • function query(query, values) : have two parameter query (SQL statement), values for SQL statement. • function open() : connect to database using PDO driver. • function close() : close Database connection.

  11. 2. class usersBean inheritance from DbConnector.

  12. 2. class usersBean inheritance from DbConnector. Methods • This method to set values for the private parameter. • public function set”method name”(“parameter name”) • { this->“ parameter name”= “ parameter name” } • This method to get values for the private parameter . • public function get”method name” () • { return this->“ parameter name” } • This two methods applied for each private parameters.

  13. 2. class usersBean inheritance from DbConnector. • function AddUser(“object”) : to adding new user. • function UpdateUser(“object”) : to modify user information. • function DeleteUser(“object”) : to delete user. • function GetUser(“user email”) : to get user information by user email. • function CheckUser(“user email”) : check user is available or not, we use it in create new account. • function GetUsers() : return all users information. • function ComposeElementUser($row) : set values in private parameter from SQL statement.

  14. Database: • We use MySQL database with stored procedure, functions,views and triggers. • A stored procedure is a subroutine available to applications accessing a relational database system. Stored procedures (sometimes called a proc, sproc, StoPro, StoredProc, or SP) are actually stored in the database data dictionary. • There are four stored procedures type using in each class

  15. Add user stored procedure :

  16. Delete user :

  17. Update user :

  18. Get user :

  19. Glossary Accounting Periods A defined period of time whereby performance reports may be extracted. (normally 4 week periods). Association A relationship between two or more entities. Implies a connection of some type - for example one entity uses the services of another, or one entity is connected to another over a network link. Class A logical entity encapsulating data and behavior. A class is a template for an object - the class is the design, the object the runtime instance. Component Model The component model provides a detailed view of the various hardware and software components that make up the proposed system. It shows both where these components reside and how they inter-relate with other components. Component requirements detail what responsibilities a component has to supply

  20. Glossary Customer A person or a company that requests An entity to transport goods on their behalf. Deployment Architecture A view of the proposed hardware that will make up the new system, together with the physical components that will execute on that hardware. Includes specifications for machine, operating system, network links, backup units &etc. Deployment Model A model of the system as it will be physically deployed Extends Relationship A relationship between two use cases in which one use case 'extends' the behavior of another. Typically this represents optional behavior in a use case scenario - for example a user may optionally request a list or report at some point in a performing a business use case.

  21. For more details read the code document. Thank You!

More Related