Ejemplo n.º 1
0
<?php

# Include requirements if not testing:
if (!class_exists('Composer\\Autoload\\ClassLoader')) {
    $wd = getcwd();
    chdir(dirname(__FILE__));
    require '../vendor/autoload.php';
    chdir($wd);
}
# Start logging
LogMore::open('ZipArchiveEx');
/**
 * Class: ZipArchiveEx
 */
class ZipArchiveEx extends ZipArchive
{
    /**
     * Function: addDir
     *
     * Wrapper for the recursiveAddDir method.
     *
     * Parameters:
     *
     * 	$dirname - The directory to add.
     *
     * Returns:
     *
     * 	TRUE on success or FALSE on failure.
     */
    public function addDir($dirname)
    {
Ejemplo n.º 2
0
<?php

# Include requirements if not testing:
if (!defined('CODELESS_SCRIPTJOINER_TEST')) {
    require '../vendor/autoload.php';
}
# Start logging:
LogMore::open('scriptjoiner');
LogMore::debug('Including ScriptJoiner');
/**
 * Class: ScriptJoiner
 */
class ScriptJoiner extends PHPParser_PrettyPrinter_Zend
{
    /**
     * Variable: $masterfile
     *
     * Absolute or relative path to the projects master-/mainfile.
     */
    private $masterfile;
    /**
     * Variable: $outfile
     *
     * Absolute or relative path to the projects outfile. If the 
     * outfile is empty or null, the final script will get printed
     * on stdout.
     */
    private $outfile;
    /**
     * Variable: $comments
     *
Ejemplo n.º 3
0
<?php

# Start logging:
LogMore::open('jugglecode');
LogMore::debug('Including JuggleCode PHP Manipulation Tool');
/**
 * Class: JuggleCode
 */
class JuggleCode extends PHPParser_PrettyPrinter_Zend
{
    /**
     * Constants: Callhandling
     *
     * JC_OPPRESS - Oppress call to function or method
     * JC_REPLACE - Replace call to function or method
     */
    const JC_OPPRESS = 1;
    const JC_REPLACE = 2;
    /**
     * Variable: $masterfile
     *
     * Absolute or relative path to the projects master-/mainfile.
     */
    private $masterfile;
    /**
     * Variable: $outfile
     *
     * Absolute or relative path to the projects outfile. If the 
     * outfile is empty or null, the final script will get printed
     * on stdout.
     */