Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Shortcuts #4

Open
tkahl opened this issue Mar 31, 2011 · 1 comment
Open

New Shortcuts #4

tkahl opened this issue Mar 31, 2011 · 1 comment

Comments

@tkahl
Copy link

tkahl commented Mar 31, 2011

Here are some shortcuts i have added to my plugins dump.php:

/**
 * Shortcuts to dump declared Classes
 * Added by Thomas Kahl
 */
function dumpClasses() {
    dump( get_declared_classes(), 'Declared Classes');
}

/**
 * Shortcuts to dump declared Interfaces
 * Added by Thomas Kahl
 */
function dumpInterfaces() {
    dump( get_declared_interfaces(), 'Declared Interfaces');
}

/**
 * Shortcuts to dump included Files
 * Added by Thomas Kahl
 */
function dumpIncludes() {
    dump( get_included_files(), 'Included Files');
}

/**
 * Shortcuts to dump all defined Functions
 * Added by Thomas Kahl
 */
function dumpFunctions() {
    dump( get_defined_functions(), 'Defined Functions');
}

/**
 * Shortcuts to dump INI-Settings
 * Added by Thomas Kahl
 */
function dumpIni() {
    dump( ini_get_all(), 'INI-Settings');
}

/**
 * Shortcuts to dump HTTP Headers
 * Added by Thomas Kahl
 */
function dumpHeaders() {
    if(function_exists('getAllHeaders')) dump( getAllHeaders(), 'HTTP Headers');
}
@mathiasverraes
Copy link
Owner

(added markdown formatting, code wasn't parsed properly)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants