protected function hasFrontendGroupsRemoved($table, $record)
    {
        if (!isset($GLOBALS['TCA'][$table]['ctrl']['enablecolumns']['fe_group'])) {
            return false;
        }

        $frontendGroupsField = $GLOBALS['TCA'][$table]['ctrl']['enablecolumns']['fe_group'];

        $previousGroups = explode(',', (string)$this->trackedRecords[$table][$record['uid']][$frontendGroupsField]);
        $currentGroups = explode(',', (string)$record[$frontendGroupsField]);
        $removedGroups = array_diff($previousGroups, $currentGroups);

        return (boolean)count($removedGroups);
    }
protected function hasFrontendGroupsRemoved($table, $record)
    {
        if (!isset($GLOBALS['TCA'][$table]['ctrl']['enablecolumns']['fe_group'])) {
            return false;
        }

        $frontendGroupsField = $GLOBALS['TCA'][$table]['ctrl']['enablecolumns']['fe_group'];

        $previousGroups = explode(',', (string)$this->trackedRecords[$table][$record['uid']][$frontendGroupsField]);
        $currentGroups = explode(',', (string)$record[$frontendGroupsField]);
        $removedGroups = array_diff($previousGroups, $currentGroups);

        return (boolean)count($removedGroups);
    }
protected function hasFrontendGroupsRemoved ( $ table , $ record ) { if ( ! isset ( $ GLOBALS [ 'TCA' ] [ $ table ] [ 'ctrl' ] [ 'enablecolumns' ] [ 'fe_group' ] ) ) { return false ; } $ frontendGroupsField = $ GLOBALS [ 'TCA' ] [ $ table ] [ 'ctrl' ] [ 'enablecolumns' ] [ 'fe_group' ] ; $ previousGroups = explode ( ',' , ( string ) $ this -> trackedRecords [ $ table ] [ $ record [ 'uid' ] ] [ $ frontendGroupsField ] ) ; $ currentGroups = explode ( ',' , ( string ) $ record [ $ frontendGroupsField ] ) ; $ removedGroups = array_diff ( $ previousGroups , $ currentGroups ) ; return ( boolean ) count ( $ removedGroups ) ; }
Checks whether the a frontend group field exists for the record and if so
whether groups have been removed from accessing the record thus making
the record invisible to at least some people.

@param string $table The table name.
@param array $record An array with record fields that may affect visibility.
@return bool TRUE if frontend groups have been removed from access to the record, FALSE otherwise.
Checks whether the a frontend group field exists for the record and if so whether groups have been removed from accessing the record thus making the record invisible to at least some people .