getDbAdapter(); $modifier = $db->fetchRow( $db->select()->from( 'import_row_modifier', array('id', 'provider_class') )->where('property_id = ?', $property_id) ); $settings = $db->fetchPairs( $db->select()->from( 'import_row_modifier_settings', array('setting_name', 'setting_value') )->where('modifier_id = ?', $modifier->id) ); $obj = new $modifier->provider_class; $obj->setSettings($settings); return $obj; } public function setSettings($settings) { $this->settings = $settings; return $this; } /** * Methode to transform the given value * * @return value */ abstract public function transform($value); /** * Override this method if you want to extend the settings form * * @param QuickForm $form QuickForm that should be extended * @return QuickForm */ public static function addSettingsFormFields(QuickForm $form) { return $form; } }