Giter Site home page Giter Site logo

assignment3's Introduction

assignment3

Repo for assignment 3, Object Oriented PHP

Instructions

assignment3.php

This will be the main "view" file where all the output will go. This is also where the HTML code will go. All of the data produced from the class and subclass will show on this page.

class.php

Similar to what we went over in class, we want to create a php class, with objects and methods that we can extent to another class.

Include the following:

  • function(s) that will take any type of paramters you want (string, number, array, etc), work with those parameters and deliver some sort of output.
  • make sure to use at least 2 php magic methods (one you pretty much have to have)
  • for example you could have the class accept text values and put them together for display (similar to what we did in class. you should try to come up with somethig original though)

subclass.php

Here we want to extend the class we created in the above file

You can have any number of methods that will in some way use the parent class but also implemennt it's own separate functionality

Include the following

  • at least 2 php magic methods
  • clone the original object for later use

Requirements

Fork and clone this repo locally Create a new branch to work on (not master) When you are done working, submit a pull request to the repo

When I run the code, I'm expecting the following

  • some sort of styled output (doesn't need to be a work of art, but do something to make it look nice)
  • use variables when appropriate
  • use arrays when appropriate
  • you don't need to do anything with js, unless you want to
  • there should be no php errors on the page (zero points if the code does not run)
  • display the data you created in the models
  • change that data and show any progression of change (like how we did in the class example)
  • you are free to create whatever data you want

you can also refer to the oop php example files that can be found on the class site

(file tree is the way it is for ease of including assets)

assignment3's People

Contributors

matty-digital avatar

Watchers

James Cloos avatar Annie Latsko avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.