Classes/Domain/Repository/MetaRepository.php
public function findEventTypeByID($id)
    {
        $eventTypes = $this->findEventTypes()->getTypes();

        $eventTypes->rewind();

        while ($eventTypes->valid()) {
            $eventType = $eventTypes->current();
            if ($eventType->getID() == $id) {
                return $eventType;
            }

            $eventTypes->next();
        }
    }
public function findEventTypeByID($id)
    {
        $eventTypes = $this->findEventTypes()->getTypes();

        $eventTypes->rewind();

        while ($eventTypes->valid()) {
            $eventType = $eventTypes->current();
            if ($eventType->getID() == $id) {
                return $eventType;
            }

            $eventTypes->next();
        }
    }
public function findEventTypeByID ( $ id ) { $ eventTypes = $ this -> findEventTypes ( ) -> getTypes ( ) ; $ eventTypes -> rewind ( ) ; while ( $ eventTypes -> valid ( ) ) { $ eventType = $ eventTypes -> current ( ) ; if ( $ eventType -> getID ( ) == $ id ) { return $ eventType ; } $ eventTypes -> next ( ) ; } }
return a event type

@param string event type id

@return Event
return a event type