public function fromXmlArray(array $parsed = null)
    {
        $this->setSignedIdentifiers(array());

        // Initialize signed identifiers.
        if (!empty($parsed) &&
                is_array($parsed[Resources::XTAG_SIGNED_IDENTIFIER])
        ) {
            $entries = $parsed[Resources::XTAG_SIGNED_IDENTIFIER];
            $temp    = Utilities::getArray($entries);

            foreach ($temp as $value) {
                $accessPolicy = $value[Resources::XTAG_ACCESS_POLICY];
                $startString  = urldecode(
                    $accessPolicy[Resources::XTAG_SIGNED_START]
                );
                $expiryString = urldecode(
                    $accessPolicy[Resources::XTAG_SIGNED_EXPIRY]
                );
                $start        = Utilities::convertToDateTime($startString);
                $expiry       = Utilities::convertToDateTime($expiryString);
                $permission   = $accessPolicy[Resources::XTAG_SIGNED_PERMISSION];
                $id           = $value[Resources::XTAG_SIGNED_ID];
                $this->addSignedIdentifier($id, $start, $expiry, $permission);
            }
        }
    }
public function fromXmlArray(array $parsed = null)
    {
        $this->setSignedIdentifiers(array());

        // Initialize signed identifiers.
        if (!empty($parsed) &&
                is_array($parsed[Resources::XTAG_SIGNED_IDENTIFIER])
        ) {
            $entries = $parsed[Resources::XTAG_SIGNED_IDENTIFIER];
            $temp    = Utilities::getArray($entries);

            foreach ($temp as $value) {
                $accessPolicy = $value[Resources::XTAG_ACCESS_POLICY];
                $startString  = urldecode(
                    $accessPolicy[Resources::XTAG_SIGNED_START]
                );
                $expiryString = urldecode(
                    $accessPolicy[Resources::XTAG_SIGNED_EXPIRY]
                );
                $start        = Utilities::convertToDateTime($startString);
                $expiry       = Utilities::convertToDateTime($expiryString);
                $permission   = $accessPolicy[Resources::XTAG_SIGNED_PERMISSION];
                $id           = $value[Resources::XTAG_SIGNED_ID];
                $this->addSignedIdentifier($id, $start, $expiry, $permission);
            }
        }
    }
public function fromXmlArray ( array $ parsed = null ) { $ this -> setSignedIdentifiers ( array ( ) ) ; // Initialize signed identifiers. if ( ! empty ( $ parsed ) && is_array ( $ parsed [ Resources :: XTAG_SIGNED_IDENTIFIER ] ) ) { $ entries = $ parsed [ Resources :: XTAG_SIGNED_IDENTIFIER ] ; $ temp = Utilities :: getArray ( $ entries ) ; foreach ( $ temp as $ value ) { $ accessPolicy = $ value [ Resources :: XTAG_ACCESS_POLICY ] ; $ startString = urldecode ( $ accessPolicy [ Resources :: XTAG_SIGNED_START ] ) ; $ expiryString = urldecode ( $ accessPolicy [ Resources :: XTAG_SIGNED_EXPIRY ] ) ; $ start = Utilities :: convertToDateTime ( $ startString ) ; $ expiry = Utilities :: convertToDateTime ( $ expiryString ) ; $ permission = $ accessPolicy [ Resources :: XTAG_SIGNED_PERMISSION ] ; $ id = $ value [ Resources :: XTAG_SIGNED_ID ] ; $ this -> addSignedIdentifier ( $ id , $ start , $ expiry , $ permission ) ; } } }
Construct the signed identifiers from a given parsed XML in array
representation.

@param array|null  $parsed The parsed XML into array representation.

@internal

@return void
Construct the signed identifiers from a given parsed XML in array representation .