Esempio n. 1
0
    }
    public function getNamespace()
    {
        return __NAMESPACE__;
    }
    public function getLine()
    {
        return __LINE__;
    }
    public function getMethod()
    {
        return __METHOD__;
    }
    public function getClass()
    {
        return __CLASS__;
    }
    public function getFunction()
    {
        return __FUNCTION__;
    }
}
$app = new MagicConstants();
echo $app->getFile() . PHP_EOL . "<br >";
echo $app->getDirectory() . PHP_EOL . "<br >";
echo $app->getTrait() . PHP_EOL . "<br >";
echo $app->getNamespace() . PHP_EOL . "<br >";
echo $app->getLine() . PHP_EOL . "<br >";
echo $app->getMethod() . PHP_EOL . "<br >";
echo $app->getClass() . PHP_EOL . "<br >";
echo $app->getFunction() . PHP_EOL . "<br >";
Esempio n. 2
0
 static function init()
 {
     self::$COMPONENTS_ARRAY = array("system", "motherboard", "bios", "memory", "video", "processor", "network", "disk", "windows", "sw");
     self::$DB_CONFIG = array("url" => "localhost", "user" => "root", "pass" => "patata", "schema" => "system_audit");
     self::$DB_TABLES = array("system", "motherboard_details", "bios_details", "memory_details", "video_details", "processor_details", "network_details", "disk_details", "windows_details");
 }