public function Field($properties = array())
    {
        $context = $this;
        $properties['Editable'] = $this->editable;
        $properties['Reservation'] = $this->getReservation();
        $properties['Attendees'] = $this->editable
            ? $this->getEditableAttendees()
            : $this->getReservation()->Attendees();

        if (count($properties)) {
            $context = $context->customise($properties);
        }

        $this->extend('onBeforeRender', $context);

        $result = $context->renderWith($this->getTemplates());

        if (is_string($result)) {
            $result = trim($result);
        } else {
            if ($result instanceof DBField) {
                $result->setValue(trim($result->getValue()));
            }
        }

        return $result;
    }
public function Field($properties = array())
    {
        $context = $this;
        $properties['Editable'] = $this->editable;
        $properties['Reservation'] = $this->getReservation();
        $properties['Attendees'] = $this->editable
            ? $this->getEditableAttendees()
            : $this->getReservation()->Attendees();

        if (count($properties)) {
            $context = $context->customise($properties);
        }

        $this->extend('onBeforeRender', $context);

        $result = $context->renderWith($this->getTemplates());

        if (is_string($result)) {
            $result = trim($result);
        } else {
            if ($result instanceof DBField) {
                $result->setValue(trim($result->getValue()));
            }
        }

        return $result;
    }
public function Field ( $ properties = array ( ) ) { $ context = $ this ; $ properties [ 'Editable' ] = $ this -> editable ; $ properties [ 'Reservation' ] = $ this -> getReservation ( ) ; $ properties [ 'Attendees' ] = $ this -> editable ? $ this -> getEditableAttendees ( ) : $ this -> getReservation ( ) -> Attendees ( ) ; if ( count ( $ properties ) ) { $ context = $ context -> customise ( $ properties ) ; } $ this -> extend ( 'onBeforeRender' , $ context ) ; $ result = $ context -> renderWith ( $ this -> getTemplates ( ) ) ; if ( is_string ( $ result ) ) { $ result = trim ( $ result ) ; } else { if ( $ result instanceof DBField ) { $ result -> setValue ( trim ( $ result -> getValue ( ) ) ) ; } } return $ result ; }
Get the field customized with tickets and reservation

@param array $properties

@return \HTMLText|string
Get the field customized with tickets and reservation