Skip to content

Conceptually Organized Glossary

sweiguny edited this page Aug 26, 2014 · 8 revisions

In this chapter you can find an entire list of terms and their meaning. All these terms are used within the whole WIKI and comments in the source code as well.

The order of the terms conforms their relevance. That means, that terms that are often used and infuse the entire project are listed first.


PPA

PHP Persistence API


POPO

Plain-old-PHP-object (see also POJO). While talking of POPOs the PHP stdClass is meant.


Property

Class member variables are called "properties". You may also see them referred to using other terms such as "attributes" or "fields", but for the purposes of this project the term "property" is used.

For more information take a look at here: http://www.php.net/manual/en/language.oop5.properties.php


Entity

An entity is the representative class of a database table.

An entity can have relations to other entities alike a database table can have relations to other tables via foreign keys. To make an entity - or in other words: to enable a connection of a class to a database table - it must extend the PPA\core\Entity class.


Relation

For a general definition look at wikipedia.


Annotation

Every DocComment beginning with @.


Parameter

Every key-value pair within the parentheses after an annotation.


Eager Laoding

Eager Loading is opposite of Lazy Loading. This expression refers to the way of dealing with relations.

We are talking of Eager Loading if you're going to load an entity from database including its relations. So they are loaded instantly ('eagerly').

Example:

Let's imagine a Person who has many Contacts, what would be a one-to-many-relation. If you are now going to select one Person you will have retrieve also the Contacts of that Person.


Lazy Loading

Lazy Loading is the opposite of Eager Loading. This expression refers to the way of dealing with relations.

We are talking of Lazy Loading if you're going to load an entity from database excluding its relations. Only when they are needed, they are loaded afterwards ('lazily').

Considering the example above, it would mean to load the Person, but without its Contacts. In most cases the relations are replaced by mock objects. But if somewhen one of the mock objects is touched the real relations are loaded.

Clone this wiki locally