Debugger



( ZN >= 4.0.0 )

This library is used to retrieve information about the place where it is used.

 

 

# Methods


Object current ( Void )
Object parent ( Int $ index = 1 )
Mixed output ( Scalar $ type = 'array' )

 

 

# Current ( ZN >= 4.0.0 )


This method provides information about where it is used.

Parameters

void
return Object

Use of

File: Controllers / home.php
<?php namespace Project\Controllers;

use Debugger;

class Home extends Controller
{
    public function main()
    {
        output( Debugger::current() );
    }   
}
file => string '/var/www/html/projects/example/controllers/home.php' (length = 53 )
line => integer 9 (length = 1 )
args => object
(
        0 => string 'test' ( length = 6 )
)
function => string 'main' (length = 6 )
class => string 'Project \ Controllers \ Home' (length = 26 )
type => string '::' (length = 4 )
method => string 'Project \ Controllers \ Home :: main () " (length = 34 )
internalmethod => string ' Home :: main () " (length = 14 )

 

 

# Parent ( ZN >= 5.4.75 )


This method provides information about one or more layers of where it is used.

Parameters

Int $ index = 1 Layer index.
return Object

Use of

File: Controllers / home.php
<?php namespace Project\Controllers;

use Debugger;

class Home extends Controller
{
    public function main()
    {
        output( Debugger::parent()  );
        output( Debugger::parent(2) );
        output( Debugger::parent(3) );
    }   
}
file => string '/var/www/html/Internal/Requirements/System/Kernel.php' (length = 55 )
line => integer 146 (length = 3 )
args => object
(
)
function => string 'run' (length = 5 )
class => string "ZN \ Core \ Kernel ' (length = 16 )
type => string ' :: ' (length = 4 )
method => string "ZN \ Core \ Kernel :: run () " (length = 23 )
internalmethod => string 'Kernel :: run () " (length = 15 )

--------------- -------------------------------------------------- --------
file => string '/var/www/html/ınternal/requirements/system/zn.php' (length = 51 )
line => integer 151 (length = 3 )
args => object
(
)
function => string 'run' (length = 5 )
class => string 'Project \ Controllers \ Zn (length = 24 )
type => string ' :: ' (length = 4 )
method => string ' Project \ Controllers \ ZN :: run () " (length = 31 )
internalmethod => string " ZN :: run () " (length = 11 )

------------------------ -------------------------------------------------
file => string '/var/www/html/zeroneed.php' (length = 28 )
line => integer 44 (length = 2 )
args => NULL (length = 0 )
function => NULL (length = 0 )
class => NULL (length = 0 )
type => string '::' (length = 4 )
method => string ': :()' (length = 6 )
internalMethod => string ': :()' (length = 6 )

 

 

# Output ( ZN> = 4.0.0 )


This method is used to get information about all the places and layers that are used.

Parameters

scaler $ type = 'array' Output type.
array The output is produced in the array type.
string The output is used to transfer the variable.
ID Used to catch the element of the index specified by id
return Object

Use of

File: Controllers / home.php
<?php namespace Project\Controllers;

use Debugger;

class Home extends Controller
{
    public function main()
    {
        output( Debugger::output()  );
        output( Debugger::output(1) );
    }   
}
0 => array
(
        file => string '/var/www/html/Projects/Example/Controllers/home.php' (length = 53 )
        line => integer 9 (length = 1 )
        args => array
        (
                0 => string 'test' (length = 6 )
        )
        function => string 'main' (length = 6 )
        class => string 'Project \ Controllers \ Home' (length= 26 )
        type => string '::' (length = 4 )
        method => string 'Project \ Controllers \ Home :: main () " (length = 34 )
        internalmethod => string ' Home :: main () ' ( length = 14 )
)
1 => array
(
        file => string '/var/www/html/Internal/Requirements/System/ZN.php' (length = 51 )
        line = integer 151 (length = 3 )
        function => string 'run' (length = 5 )
        class => string "ZN \ Core \ Kernel ' (length = 16 )
        type => string ' :: ' (length = 4 )
        args = > array
        (
        )
)
2 => array
(
        file => string '/var/www/html/zeroneed.php' (length = 28 )
        line => integer 44 (length = 2 )
        function => string 'run' (length = 5 )
        class => string 'Project \ Controllers \ Zn (length = 24 )
        type => string ' :: ' (length = 4 )
        args => array
        (
        )
)
------------------------------------------ ----------------------------------------

file => string '/var/www/html/ınternal/requirements/system/zn.php' (length = 51 )
line => integer 151 (length = 3 )
function => string 'run' (length = 5 )
class => string ' ZN \ Core \ Kernel ' (length = 16 )
type => string ' :: ' (length = 4 )
args => object
(
)