PHP Classes, Namespaces, Autoloading




CS174

Chris Pollett

Mar 13, 2017

Outline

Classes in PHP

Constructors/Destructors

Private, Protected, Public

Static and Const

Quiz

Which of the following statements is true?

  1. To delete a database table one typically uses the SQL DELETE command.
  2. A database table is in BCNF iff it has no functional dependencies.
  3. A GROUP BY clause in SQL might be used to control how an aggregation function such as COUNT is calculated.

Cloning

Inheritance

Referring to Parents, Final

Namespaces

Using Namespaces

Namespace Conventions

Autoloading

More Autoloading

Comments on the Yioop Autoloader