-
Notifications
You must be signed in to change notification settings - Fork 0
Pencioner/tnetv
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This is project which implements a PHP backend task: 1. Implement a comment system – a form, that allows you to submit comments, save them in the DB, and display the comments. 2. Implement an event manager class. It should implement the singleton pattern, and support pluggable observers. The class will allow you to subscribe to events, fire events, and when the events are fired – call the appropriate callbacks. 3. Create a DB table that will hold a list of observers, and will initialize them one by one. 4. Implement an 'onSubmit' event for the comment submission. 5. Write an observer, that subscribes to the 'onSubmit' event for the comment, fires on the submission of a new comment, and replaces all smileys with corresponding images of the smileys. 6. All code should be covered with PHPDoc, and unit tests, including the event manager, the observer, and any other code. Keep in mind, that usage of pre-existing frameworks is forbidden. Try to keep the code PEAR styled. All DB code should be in a .sql file attached. The implementation and usage of additional observers, events and design patterns is encouraged. Also, please attach a README file, with explanations as to how to run the code. This repository contains: /server_root/ - the code itself /sql/ - database schema and initial data /test/ - phpunit tests phpunit.xml - -----//------ INSTALL - install script (only will work on Ubuntu and probably Debian) which is also just an installation reference README - this file To run it - configure variables in INSTALL and then run it, if you can't just run it (f.e. being on another distro) - copy and paste commands in terminal, correcting the differences After all is done, open web-browser and go to http://localhost:8580 (if you changed port - use the one from your config)
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published