concrete/src/Entity/File/Version.php
public function getVersionLogComments()
    {
        $app = Application::getFacadeApplication();
        $db = $app->make(Connection::class);
        $updates = [];
        $ga = $db->fetchAll(
            'SELECT fvUpdateTypeID, fvUpdateTypeAttributeID FROM FileVersionLog WHERE fID = ? AND fvID = ? ORDER BY fvlID ASC',
            [$this->getFileID(), $this->getFileVersionID()]
        );
        foreach ($ga as $a) {
            switch ($a['fvUpdateTypeID']) {
                case self::UT_REPLACE_FILE:
                    $updates[] = t('File');
                    break;
                case self::UT_TITLE:
                    $updates[] = t('Title');
                    break;
                case self::UT_DESCRIPTION:
                    $updates[] = t('Description');
                    break;
                case self::UT_TAGS:
                    $updates[] = t('Tags');
                    break;
                case self::UT_CONTENTS:
                    $updates[] = t('File Content');
                    break;
                case self::UT_RENAME:
                    $updates[] = t('File Name');
                    break;
                case self::UT_EXTENDED_ATTRIBUTE:
                    $val = $db->fetchColumn(
                        'SELECT akName FROM AttributeKeys WHERE akID = ?',
                        [$a['fvUpdateTypeAttributeID']]
                    );
                    if ($val !== false) {
                        $updates[] = $val;
                    }
                    break;
            }
        }

        return array_values(array_unique($updates));
    }
public function getVersionLogComments()
    {
        $app = Application::getFacadeApplication();
        $db = $app->make(Connection::class);
        $updates = [];
        $ga = $db->fetchAll(
            'SELECT fvUpdateTypeID, fvUpdateTypeAttributeID FROM FileVersionLog WHERE fID = ? AND fvID = ? ORDER BY fvlID ASC',
            [$this->getFileID(), $this->getFileVersionID()]
        );
        foreach ($ga as $a) {
            switch ($a['fvUpdateTypeID']) {
                case self::UT_REPLACE_FILE:
                    $updates[] = t('File');
                    break;
                case self::UT_TITLE:
                    $updates[] = t('Title');
                    break;
                case self::UT_DESCRIPTION:
                    $updates[] = t('Description');
                    break;
                case self::UT_TAGS:
                    $updates[] = t('Tags');
                    break;
                case self::UT_CONTENTS:
                    $updates[] = t('File Content');
                    break;
                case self::UT_RENAME:
                    $updates[] = t('File Name');
                    break;
                case self::UT_EXTENDED_ATTRIBUTE:
                    $val = $db->fetchColumn(
                        'SELECT akName FROM AttributeKeys WHERE akID = ?',
                        [$a['fvUpdateTypeAttributeID']]
                    );
                    if ($val !== false) {
                        $updates[] = $val;
                    }
                    break;
            }
        }

        return array_values(array_unique($updates));
    }
public function getVersionLogComments ( ) { $ app = Application :: getFacadeApplication ( ) ; $ db = $ app -> make ( Connection :: class ) ; $ updates = [ ] ; $ ga = $ db -> fetchAll ( 'SELECT fvUpdateTypeID, fvUpdateTypeAttributeID FROM FileVersionLog WHERE fID = ? AND fvID = ? ORDER BY fvlID ASC' , [ $ this -> getFileID ( ) , $ this -> getFileVersionID ( ) ] ) ; foreach ( $ ga as $ a ) { switch ( $ a [ 'fvUpdateTypeID' ] ) { case self :: UT_REPLACE_FILE : $ updates [ ] = t ( 'File' ) ; break ; case self :: UT_TITLE : $ updates [ ] = t ( 'Title' ) ; break ; case self :: UT_DESCRIPTION : $ updates [ ] = t ( 'Description' ) ; break ; case self :: UT_TAGS : $ updates [ ] = t ( 'Tags' ) ; break ; case self :: UT_CONTENTS : $ updates [ ] = t ( 'File Content' ) ; break ; case self :: UT_RENAME : $ updates [ ] = t ( 'File Name' ) ; break ; case self :: UT_EXTENDED_ATTRIBUTE : $ val = $ db -> fetchColumn ( 'SELECT akName FROM AttributeKeys WHERE akID = ?' , [ $ a [ 'fvUpdateTypeAttributeID' ] ] ) ; if ( $ val !== false ) { $ updates [ ] = $ val ; } break ; } } return array_values ( array_unique ( $ updates ) ) ; }
Get an array containing human-readable descriptions of everything that happened to this file version.

@return string[]
Get an array containing human - readable descriptions of everything that happened to this file version .