XPlanner::Project - projects in XPlanner


XPlanner documentation Contained in the XPlanner distribution.

Index


Code Index:

NAME

Top

XPlanner::Project - projects in XPlanner

SYNOPSIS

Top

  use XPlanner;

  my $xp->login(...);

  my $project = $xp->projects->{"Project Name"};
  $project->delete;

  my $iterations = $project->iterations;




DESCRIPTION

Top

An object representing a project within XPlanner.

Methods

iterations

  my $iterations = $project->iterations;

Lists all iterations of this project keyed by name.

delete

  $project->delete;

Deletes this project from XPlanner.


XPlanner documentation Contained in the XPlanner distribution.
package ProjectData;

@ISA = qw(XPlanner::Project);


package XPlanner::Project;

use strict;
use base qw(XPlanner::Object);

sub _proxy_class { "ProjectData" }


sub iterations {
    my $self = shift;

    return $self->_map_from_soap('name', 'getIterations', 
                                 'XPlanner::Iteration');
}


sub delete {
    my $self = shift;
    my $proxy = $self->{_proxy};

    $proxy->removeProject($self->{id});
}