public function isEndTimeInPast($table, $record)
    {
        $endTimeInPast = false;

        if (isset($this->tca[$table]['ctrl']['enablecolumns']['endtime'])) {
            $endTimeField = $this->tca[$table]['ctrl']['enablecolumns']['endtime'];
            if ($record[$endTimeField] > 0) {
                $endTimeInPast = $record[$endTimeField] < $this->getTime();
            }
        }

        return $endTimeInPast;
    }
public function isEndTimeInPast($table, $record)
    {
        $endTimeInPast = false;

        if (isset($this->tca[$table]['ctrl']['enablecolumns']['endtime'])) {
            $endTimeField = $this->tca[$table]['ctrl']['enablecolumns']['endtime'];
            if ($record[$endTimeField] > 0) {
                $endTimeInPast = $record[$endTimeField] < $this->getTime();
            }
        }

        return $endTimeInPast;
    }
public function isEndTimeInPast ( $ table , $ record ) { $ endTimeInPast = false ; if ( isset ( $ this -> tca [ $ table ] [ 'ctrl' ] [ 'enablecolumns' ] [ 'endtime' ] ) ) { $ endTimeField = $ this -> tca [ $ table ] [ 'ctrl' ] [ 'enablecolumns' ] [ 'endtime' ] ; if ( $ record [ $ endTimeField ] > 0 ) { $ endTimeInPast = $ record [ $ endTimeField ] < $ this -> getTime ( ) ; } } return $ endTimeInPast ; }
Checks whether a end time field exists for the record's table and if so
determines if a time is set and whether that time is in the past,
making the record invisible on the website.

@param string $table The table name.
@param array $record An array with record fields that may affect visibility.
@return bool True if the record's end time is in the past, FALSE otherwise.
Checks whether a end time field exists for the record s table and if so determines if a time is set and whether that time is in the past making the record invisible on the website .