public function isEnabledRecord($table, $record)
    {
        if (
            (empty($record))
            ||
            (isset($this->tca[$table]['ctrl']['enablecolumns']['disabled']) && !empty($record[$this->tca[$table]['ctrl']['enablecolumns']['disabled']]))
            ||
            (isset($this->tca[$table]['ctrl']['delete']) && !empty($record[$this->tca[$table]['ctrl']['delete']]))
            ||
            ($table === 'pages' && !empty($record['no_search']))
        ) {
            return false;
        }

        return true;
    }
public function isEnabledRecord($table, $record)
    {
        if (
            (empty($record))
            ||
            (isset($this->tca[$table]['ctrl']['enablecolumns']['disabled']) && !empty($record[$this->tca[$table]['ctrl']['enablecolumns']['disabled']]))
            ||
            (isset($this->tca[$table]['ctrl']['delete']) && !empty($record[$this->tca[$table]['ctrl']['delete']]))
            ||
            ($table === 'pages' && !empty($record['no_search']))
        ) {
            return false;
        }

        return true;
    }
public function isEnabledRecord ( $ table , $ record ) { if ( ( empty ( $ record ) ) || ( isset ( $ this -> tca [ $ table ] [ 'ctrl' ] [ 'enablecolumns' ] [ 'disabled' ] ) && ! empty ( $ record [ $ this -> tca [ $ table ] [ 'ctrl' ] [ 'enablecolumns' ] [ 'disabled' ] ] ) ) || ( isset ( $ this -> tca [ $ table ] [ 'ctrl' ] [ 'delete' ] ) && ! empty ( $ record [ $ this -> tca [ $ table ] [ 'ctrl' ] [ 'delete' ] ] ) ) || ( $ table === 'pages' && ! empty ( $ record [ 'no_search' ] ) ) ) { return false ; } return true ; }
Checks if a record is "enabled"

A record is considered "enabled" if
- it is not hidden
- it is not deleted
- as a page it is not set to be excluded from search

@param string $table The record's table name
@param array $record The record to check
@return bool TRUE if the record is enabled, FALSE otherwise
Checks if a record is enabled