public function getExtendedAttribute($extendedAttributeId)
    {

        if ($extendedAttributeId == '')
            throw new Exception('Extended Attribute ID not specified');

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

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

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

        $json = json_decode($responseStream);

        if ($json->Code == 200)
            return $json->ExtendedAttribute;
        else
            return false;
    }
public function getExtendedAttribute($extendedAttributeId)
    {

        if ($extendedAttributeId == '')
            throw new Exception('Extended Attribute ID not specified');

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

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

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

        $json = json_decode($responseStream);

        if ($json->Code == 200)
            return $json->ExtendedAttribute;
        else
            return false;
    }
public function getExtendedAttribute ( $ extendedAttributeId ) { if ( $ extendedAttributeId == '' ) throw new Exception ( 'Extended Attribute ID not specified' ) ; //build URI $ strURI = Product :: $ baseProductUri . '/tasks/' . $ this -> getFileName ( ) . '/extendedAttributes/' . $ extendedAttributeId ; //sign URI $ signedURI = Utils :: sign ( $ strURI ) ; $ responseStream = Utils :: processCommand ( $ signedURI , 'GET' , '' , '' ) ; $ json = json_decode ( $ responseStream ) ; if ( $ json -> Code == 200 ) return $ json -> ExtendedAttribute ; else return false ; }
Get project extended attribute definition.

@param integer $extendedAttributeId

@return array Returns the extended attribute.
@throws Exception
Get project extended attribute definition .