protected function getAccessRootline(Item $item)
    {
        $accessRestriction = '0';
        $itemRecord = $item->getRecord();

        // TODO support access restrictions set on storage page

        if (isset($GLOBALS['TCA'][$item->getType()]['ctrl']['enablecolumns']['fe_group'])) {
            $accessRestriction = $itemRecord[$GLOBALS['TCA'][$item->getType()]['ctrl']['enablecolumns']['fe_group']];

            if (empty($accessRestriction)) {
                // public
                $accessRestriction = '0';
            }
        }

        return 'r:' . $accessRestriction;
    }
protected function getAccessRootline(Item $item)
    {
        $accessRestriction = '0';
        $itemRecord = $item->getRecord();

        // TODO support access restrictions set on storage page

        if (isset($GLOBALS['TCA'][$item->getType()]['ctrl']['enablecolumns']['fe_group'])) {
            $accessRestriction = $itemRecord[$GLOBALS['TCA'][$item->getType()]['ctrl']['enablecolumns']['fe_group']];

            if (empty($accessRestriction)) {
                // public
                $accessRestriction = '0';
            }
        }

        return 'r:' . $accessRestriction;
    }
protected function getAccessRootline ( Item $ item ) { $ accessRestriction = '0' ; $ itemRecord = $ item -> getRecord ( ) ; // TODO support access restrictions set on storage page if ( isset ( $ GLOBALS [ 'TCA' ] [ $ item -> getType ( ) ] [ 'ctrl' ] [ 'enablecolumns' ] [ 'fe_group' ] ) ) { $ accessRestriction = $ itemRecord [ $ GLOBALS [ 'TCA' ] [ $ item -> getType ( ) ] [ 'ctrl' ] [ 'enablecolumns' ] [ 'fe_group' ] ] ; if ( empty ( $ accessRestriction ) ) { // public $ accessRestriction = '0' ; } } return 'r:' . $ accessRestriction ; }
Generates an Access Rootline for an item.

@param Item $item Index Queue item to index.
@return string The Access Rootline for the item
Generates an Access Rootline for an item .