Created
January 26, 2016 13:05
-
-
Save pixelbart/c84b89fb090105219577 to your computer and use it in GitHub Desktop.
Namespace im WordPress Plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Plugin_Name\Klasse; | |
class Klasse | |
{ | |
public function init($irgendwas) | |
{} | |
} | |
namespace Plugin_Name\Klasse2; | |
class Klasse2 | |
{ | |
public function init($irgendwas) | |
{} | |
} | |
// Es gibt keine Konflikte, da die jeweiligen Klassen innerhalb eines Namespace sind. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment