public function getCalendar($calendarUid)
    {


        if ($calendarUid == '')
            throw new Exception('Calendar Uid not specified');

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

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

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

        $json = json_decode($responseStream);

        if ($json->Code == 200)
            return $json->Calendar;
        else
            return false;
    }
public function getCalendar($calendarUid)
    {


        if ($calendarUid == '')
            throw new Exception('Calendar Uid not specified');

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

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

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

        $json = json_decode($responseStream);

        if ($json->Code == 200)
            return $json->Calendar;
        else
            return false;
    }
public function getCalendar ( $ calendarUid ) { if ( $ calendarUid == '' ) throw new Exception ( 'Calendar Uid not specified' ) ; //build URI $ strURI = Product :: $ baseProductUri . '/tasks/' . $ this -> getFileName ( ) . '/calendars/' . $ calendarUid ; //sign URI $ signedURI = Utils :: sign ( $ strURI ) ; $ responseStream = Utils :: processCommand ( $ signedURI , 'GET' , '' , '' ) ; $ json = json_decode ( $ responseStream ) ; if ( $ json -> Code == 200 ) return $ json -> Calendar ; else return false ; }
Get project calendar.

@param integer $calendarUid The uid of the project calendar.

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