Upgrade Your Drupal Skills

We trained 1,000+ Drupal Developers over the last decade.

See Advanced Courses NAH, I know Enough

New Class: Introduction to Object Oriented PHP

Parent Feed: 
Object Oriented PHP

We're delighted to launch an important new class called, "Introduction to Object Oriented PHP".

Object oriented programming (OOP) is the most popular model used by PHP developers.

You'll find object oriented code in most major CMS's and platforms. Joomla has relied on OOP since version 1.5. Drupal 8 was completely rewritten, in part to introduce OOP principles.

In this class, you'll learn the fundamentals of OOP and, in particular, how they apply to PHP.

This class focuses on the use of classes, objects and methods in OOP and covers the following topics:

  • How to Create a Class in OO PHP
  • How to Create an Object from a Class
  • How to Access Object Information in a Template
  • How to Add Methods to Classes
  • How to Use the Construct Method and Magic Methods
  • How to Incorporate Global Variables into a Class
  • Public, Private and Protected Visibility
  • Why Should You Use Private Visibility?
  • Using Subclasses (or Child Classes) in OOP

An introductory video from the class


About the author

Steve is the founder of OSTraining. Originally from the UK, he now lives in Sarasota in the USA. He was a teacher for many years before starting OSTraining. Steve wrote the best-selling Drupal and Joomla books.

Author: 
Original Post: 

About Drupal Sun

Drupal Sun is an Evolving Web project. It allows you to:

  • Do full-text search on all the articles in Drupal Planet (thanks to Apache Solr)
  • Facet based on tags, author, or feed
  • Flip through articles quickly (with j/k or arrow keys) to find what you're interested in
  • View the entire article text inline, or in the context of the site where it was created

See the blog post at Evolving Web

Evolving Web