PHP Classes, Namespaces, Autoloading




CS174

Chris Pollett

Oct 17, 2016

Outline

Classes in PHP

Constructors/Destructors

Private, Protected, Public

Static and Const

Quiz

Which of the following statements is true?

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

Quiz

Which of the following statements is true?

  1. A table is in BCNF iff the left hand side of any non-trivial functional dependency always fixes a table row.
  2. An ORDER BY clause in SQL might be used to control how an aggregation function such as SUM is calculated.
  3. To insert a single row into a database table one typically uses the SQL CREATE command.

Cloning

Inheritance

Referring to Parents, Final

Namespaces

Using Namespaces

Namespace Conventions

Autoloading

More Autoloading

Comments on the Yioop Autoloader