##What's up with static?
What's up with static?
##Public properties
Public properties
##Global
Global
##Session
Session
##Further reading
Further reading
##What's up with static?
##Public properties
##Global
##Session
##Further reading
What's up with static?
Public properties
Global
Session
Further reading
Auth::setPDO()
and Auth::getPDO()
are mutator methods, keeping the class in line with encapsulation and any half decent IDE can generate them automatically for you. Notice that I return $this;
in the setter? That's because I like chaining my methods chaining my methods, up to you if you want to follow my style.
- Why is Global State so Evil?
- SOLID - Don't cheat, read all the linked articles.
- Dependency inversion principle
- Dependency injection
- Inversion of Control Containers and the Dependency Injection pattern
- When to Use Static Classes in C# When to Use Static Classes in C# - Not really C# specific, at least not the top voted answer.
Auth::setPDO()
and Auth::getPDO()
are mutator methods, keeping the class in line with encapsulation and any half decent IDE can generate them automatically for you. Notice that I return $this;
in the setter? That's because I like chaining my methods, up to you if you want to follow my style.
- Why is Global State so Evil?
- SOLID - Don't cheat, read all the linked articles.
- Dependency inversion principle
- Dependency injection
- Inversion of Control Containers and the Dependency Injection pattern
- When to Use Static Classes in C# - Not really C# specific, at least not the top voted answer.
Auth::setPDO()
and Auth::getPDO()
are mutator methods, keeping the class in line with encapsulation and any half decent IDE can generate them automatically for you. Notice that I return $this;
in the setter? That's because I like chaining my methods, up to you if you want to follow my style.
- Why is Global State so Evil?
- SOLID - Don't cheat, read all the linked articles.
- Dependency inversion principle
- Dependency injection
- Inversion of Control Containers and the Dependency Injection pattern
- When to Use Static Classes in C# - Not really C# specific, at least not the top voted answer.
- Why is Global State so Evil? Why is Global State so Evil?
- SOLID - Don't cheat, read all the linked articles.
- Dependency inversion principle
- Dependency injection
- Inversion of Control Containers and the Dependency Injection pattern
- When to Use Static Classes in C# - Not really C# specific, at least not the top voted answer.
- Why is Global State so Evil?
- SOLID - Don't cheat, read all the linked articles.
- Dependency inversion principle
- Dependency injection
- Inversion of Control Containers and the Dependency Injection pattern
- When to Use Static Classes in C# - Not really C# specific, at least not the top voted answer.
- Why is Global State so Evil?
- SOLID - Don't cheat, read all the linked articles.
- Dependency inversion principle
- Dependency injection
- Inversion of Control Containers and the Dependency Injection pattern
- When to Use Static Classes in C# - Not really C# specific, at least not the top voted answer.