/** * Convert a TrackEngine instance to a TrackEngine of another type. * * @see getConversionTargets() * * @param type $conversionTargetClass */ public function convertTo($conversionTargetClass) { if ($conversionTargetClass == 'AnyStepEngine') { //TODO: Check for right sequence of rounds } else { parent::convertTo($conversionTargetClass); } }
/** * Returns a model that can be used to retrieve or save the data. * * @param boolean $detailed Create a model for the display of detailed item data or just a browse table * @param string $action The current action * @return \MUtil_Model_ModelAbstract */ public function getRoundModel($detailed, $action) { $model = parent::getRoundModel($detailed, $action); $model->set('gro_valid_for_id', 'default', '0'); return $model; }