public function getAssignment($assignmentId)
    {
        if ($assignmentId == '')
            throw new Exception('Assignment ID not specified');

        //build URI
        $strURI = Product::$baseProductUri . '/tasks/' . $this->getFileName() . '/assignments/' . $assignmentId;

        //sign URI
        $signedURI = Utils::sign($strURI);

        $responseStream = Utils::processCommand($signedURI, 'GET', '', '');

        $json = json_decode($responseStream);

        if ($json->Code == 200)
            return $json->Assignment;
        else
            return false;
    }
public function getAssignment($assignmentId)
    {
        if ($assignmentId == '')
            throw new Exception('Assignment ID not specified');

        //build URI
        $strURI = Product::$baseProductUri . '/tasks/' . $this->getFileName() . '/assignments/' . $assignmentId;

        //sign URI
        $signedURI = Utils::sign($strURI);

        $responseStream = Utils::processCommand($signedURI, 'GET', '', '');

        $json = json_decode($responseStream);

        if ($json->Code == 200)
            return $json->Assignment;
        else
            return false;
    }
public function getAssignment ( $ assignmentId ) { if ( $ assignmentId == '' ) throw new Exception ( 'Assignment ID not specified' ) ; //build URI $ strURI = Product :: $ baseProductUri . '/tasks/' . $ this -> getFileName ( ) . '/assignments/' . $ assignmentId ; //sign URI $ signedURI = Utils :: sign ( $ strURI ) ; $ responseStream = Utils :: processCommand ( $ signedURI , 'GET' , '' , '' ) ; $ json = json_decode ( $ responseStream ) ; if ( $ json -> Code == 200 ) return $ json -> Assignment ; else return false ; }
Get project assignment.

@param integer $assignmentId The id of assignment.

@return array Returns the assignment.
@throws Exception
Get project assignment .