Codice PHP:
<?php
namespace woo\controller;

//require_once( 'woo/base/Registry.php' );
require_once( 'woo/base/Exceptions.php' );

class 
Request {
    private 
$appreg;
    private 
$properties;
    private 
$objects = array();
    private 
$feedback = array();
    private 
$lastCommand;

    function 
__construct() {
        
$this->init();
    }

    function 
init() {
        if ( isset( 
$_SERVER['REQUEST_METHOD'] ) ) {
            if ( 
$_SERVER['REQUEST_METHOD'] ) {
                
$this->properties $_REQUEST;
                return;
            }
        }
        foreach( 
$_SERVER['argv'] as $arg ) {
            if ( 
strpos$arg'=' ) ) {
                list( 
$key$val )=explode"="$arg );
                
$this->setProperty$key$val );
            }
        }
    }
Come faccio a capire come funziona questo metodo?

Non riesco ad individuare il valore di questo $_SERVER['REQUEST_METHOD'], per il resto penso di non avere problemi.