AddToListCommand::__construct PHP Method

__construct() public method

public __construct ( array &$list )
$list array passed by reference so we can acces 'list' from outside this class
    public function __construct(&$list)
    {
        //pass by reference
        $this->list =& $list;
    }
AddToListCommand