BaseEventTypeController::hasPrevious PHP Method

hasPrevious() public method

Are there one or more previous instances of an element?
public hasPrevious ( ElementType $element_type, integer $exclude_event_id = null ) : boolean
$element_type ElementType
$exclude_event_id integer
return boolean
    public function hasPrevious($element_type, $exclude_event_id = null)
    {
        if ($episode = $this->episode) {
            return count($episode->getElementsOfType($element_type, $exclude_event_id)) > 0;
        } else {
            return false;
        }
    }
BaseEventTypeController