public static function sync(Kwf_Model_Abstract $model, array $compareColumns, array $data, Kwf_Model_Select $select = null)
    {
        $sync = new Kwf_Util_ModelSync($model, $compareColumns);
        $sync->syncData($data, $select);
        return $sync->getMappingForLastSync();
    }
public static function sync(Kwf_Model_Abstract $model, array $compareColumns, array $data, Kwf_Model_Select $select = null)
    {
        $sync = new Kwf_Util_ModelSync($model, $compareColumns);
        $sync->syncData($data, $select);
        return $sync->getMappingForLastSync();
    }
public static function sync ( Kwf_Model_Abstract $ model , array $ compareColumns , array $ data , Kwf_Model_Select $ select = null ) { $ sync = new Kwf_Util_ModelSync ( $ model , $ compareColumns ) ; $ sync -> syncData ( $ data , $ select ) ; return $ sync -> getMappingForLastSync ( ) ; }
Syncs given array with given rowset

@param mixed Model
@param array() Name of columns which are used to compare the syncing rows
@param array Data to sync
@param mixed Which rows are to be considered for syncing
@return array Mapping of synced rows ("key of import array" => "id of synced row")
Syncs given array with given rowset