Overview
  • Namespace
  • Class

Namespaces

  • MatthiasWeb
    • RealMediaLibrary
      • api
      • attachment
      • base
      • comp
        • complexquery
      • folder
      • general
      • metadata
      • order
      • rest
      • usersettings
  • None

Classes

  • Activator
  • Assets
  • Core
  • FolderShortcode
  • Lang
  • Migration
  • Options
  • QueryCount
  • Util
  • View

Exceptions

  • FolderAlreadyExistsException

Class Migration

This class handles all hooks for future updates (migrations).

MatthiasWeb\RealMediaLibrary\base\Base
Extended by MatthiasWeb\RealMediaLibrary\general\Migration
Namespace: MatthiasWeb\RealMediaLibrary\general
Located at general/Migration.class.php

Methods summary

public
# plugins_loaded( )
public
# migrate_20170925( $arr )

Do the migration to save the current owner to the database and reset the slugs.

Do the migration to save the current owner to the database and reset the slugs.

public
# migrate_20161229( $arr )

Do the migration if no multisite.

Do the migration if no multisite.

public
# do_20161229( )

Do the migration and migrate the order table to the posts table.

Do the migration and migrate the order table to the posts table.

public
# register_options_20161229( )

Register a migration button to copy the files from wp_postmeta to wp_realmedialibrary_posts table.

Register a migration button to copy the files from wp_postmeta to wp_realmedialibrary_posts table.

public
# html_rml_button_20161229( )
public
# migrate_07102016( $arr )

Do the migration if no multisite.

Do the migration if no multisite.

public
# do_07102016( )

Do the migration of the current blog id.

Do the migration of the current blog id.

public
# register_options_07102016( )

Register a migration button to copy the files from wp_postmeta to wp_realmedialibrary_posts table.

Register a migration button to copy the files from wp_postmeta to wp_realmedialibrary_posts table.

public
# html_rml_button_07102016( )
public
# migration( $old, $new )

CREATE MIGRATIONS.

CREATE MIGRATIONS.

Determines in a new update, if there is a migration available.

Array of migrations: { Idx: Build date [0] => $old version [1] => $new version [2] => Boolean if migration is active and not finished, yet }

public
# dismiss( string $build )

Dismiss an update notice.

Dismiss an update notice.

Parameters

$build
The build version of the update

Returns

boolean
public
# getMigrations( )

Get all available migrations.

Get all available migrations.

public
# updateMigration( $migrations )

Update the migration option rml_migration in wp_options.

Update the migration option rml_migration in wp_options.

public static
# getInstance( )

Methods inherited from MatthiasWeb\RealMediaLibrary\base\Base

debug(), getCore(), getTableName()

API documentation generated by ApiGen