src/FlexiPeeHP/Priloha.php
public static function getAttachmentsList($object)
    {
        $fburl       = $object->getFlexiBeeURL();
        $attachments = [];
        $oFormat = $object->format;
        $object->setFormat('json');
        $atch        = $object->getFlexiData($fburl.'/prilohy'.(count($object->defaultUrlParams)
                ? '?'.http_build_query($object->defaultUrlParams) : ''));
        $object->setFormat($oFormat);
        if (count($atch) && ($object->lastResponseCode == 200)) {
            foreach ($atch as $attachmentID => $attachmentData) {
                $attachments[$attachmentID]        = $attachmentData;
                $attachments[$attachmentID]['url'] = $object->url.'/c/'.$object->company.'/priloha/'.$attachmentData['id'];
            }
        }
        return $attachments;
    }
public static function getAttachmentsList($object)
    {
        $fburl       = $object->getFlexiBeeURL();
        $attachments = [];
        $oFormat = $object->format;
        $object->setFormat('json');
        $atch        = $object->getFlexiData($fburl.'/prilohy'.(count($object->defaultUrlParams)
                ? '?'.http_build_query($object->defaultUrlParams) : ''));
        $object->setFormat($oFormat);
        if (count($atch) && ($object->lastResponseCode == 200)) {
            foreach ($atch as $attachmentID => $attachmentData) {
                $attachments[$attachmentID]        = $attachmentData;
                $attachments[$attachmentID]['url'] = $object->url.'/c/'.$object->company.'/priloha/'.$attachmentData['id'];
            }
        }
        return $attachments;
    }
public static function getAttachmentsList ( $ object ) { $ fburl = $ object -> getFlexiBeeURL ( ) ; $ attachments = [ ] ; $ oFormat = $ object -> format ; $ object -> setFormat ( 'json' ) ; $ atch = $ object -> getFlexiData ( $ fburl . '/prilohy' . ( count ( $ object -> defaultUrlParams ) ? '?' . http_build_query ( $ object -> defaultUrlParams ) : '' ) ) ; $ object -> setFormat ( $ oFormat ) ; if ( count ( $ atch ) && ( $ object -> lastResponseCode == 200 ) ) { foreach ( $ atch as $ attachmentID => $ attachmentData ) { $ attachments [ $ attachmentID ] = $ attachmentData ; $ attachments [ $ attachmentID ] [ 'url' ] = $ object -> url . '/c/' . $ object -> company . '/priloha/' . $ attachmentData [ 'id' ] ; } } return $ attachments ; }
Obtain Record related attachments list

@param FlexiBeeRO $object

@return array
Obtain Record related attachments list