src/xPDO/Transport/xPDOTransport.php
public static function unpack(& $xpdo, $from, $to, $state = xPDOTransport::STATE_PACKED) {
        $manifest= null;
        if ($state !== xPDOTransport::STATE_UNPACKED) {
            $resources = xPDOTransport::_unpack($xpdo, $from, $to);
        } else {
            $resources = true;
        }
        if ($resources) {
            $manifestFilename = $to . basename($from, '.transport.zip') . '/manifest.php';
            if (file_exists($manifestFilename)) {
                $manifest= @include ($manifestFilename);
            } else {
                $xpdo->log(xPDO::LOG_LEVEL_ERROR, "Could not find package manifest at {$manifestFilename}");
            }
        }
        return $manifest;
    }
public static function unpack(& $xpdo, $from, $to, $state = xPDOTransport::STATE_PACKED) {
        $manifest= null;
        if ($state !== xPDOTransport::STATE_UNPACKED) {
            $resources = xPDOTransport::_unpack($xpdo, $from, $to);
        } else {
            $resources = true;
        }
        if ($resources) {
            $manifestFilename = $to . basename($from, '.transport.zip') . '/manifest.php';
            if (file_exists($manifestFilename)) {
                $manifest= @include ($manifestFilename);
            } else {
                $xpdo->log(xPDO::LOG_LEVEL_ERROR, "Could not find package manifest at {$manifestFilename}");
            }
        }
        return $manifest;
    }
public static function unpack ( & $ xpdo , $ from , $ to , $ state = xPDOTransport :: STATE_PACKED ) { $ manifest = null ; if ( $ state !== xPDOTransport :: STATE_UNPACKED ) { $ resources = xPDOTransport :: _unpack ( $ xpdo , $ from , $ to ) ; } else { $ resources = true ; } if ( $ resources ) { $ manifestFilename = $ to . basename ( $ from , '.transport.zip' ) . '/manifest.php' ; if ( file_exists ( $ manifestFilename ) ) { $ manifest = @ include ( $ manifestFilename ) ; } else { $ xpdo -> log ( xPDO :: LOG_LEVEL_ERROR , "Could not find package manifest at {$manifestFilename}" ) ; } } return $ manifest ; }
Unpack the package to prepare for installation and return a manifest.

@param xPDO &$xpdo A reference to an xPDO instance.
@param string $from Filename of the archive containing the transport package.
@param string $to The root path where the contents of the archive should be extracted.  This
path must be writable by the user executing the PHP process on the server.
@param integer $state The current state of the package, i.e. packed or unpacked.
@return array The manifest which is included after successful extraction.
Unpack the package to prepare for installation and return a manifest .