Overview
  • Namespace
  • Class

Namespaces

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

Classes

  • CountCache
  • CustomField
  • Filter
  • Permissions
  • Shortcut
  • Structure
  • Upload

Class Shortcut

Handle the metadata and attached file for shortcuts.

MatthiasWeb\RealMediaLibrary\base\Base
Extended by MatthiasWeb\RealMediaLibrary\attachment\Shortcut
Namespace: MatthiasWeb\RealMediaLibrary\attachment
Located at attachment/Shortcut.class.php

Methods summary

public
# create( $postId, $fid, $isShortcut = false )

Creates a shortcut.

Creates a shortcut.

See

wp_rml_create_shortcuts()
_wp_rml_synchronize_attachment
public
# get_post_metadata( $check, $object_id, $meta_key, $single )

If it is a shortcut, read the metadata from the source file. It also handles the wp_delete_attachment process to avoid to delete the source files if shortcut.

If it is a shortcut, read the metadata from the source file. It also handles the wp_delete_attachment process to avoid to delete the source files if shortcut.

public
# add_post_metadata( $check, $object_id, $meta_key, $meta_value, $unique )

Avoids to generate own meta data for shortcuts.

Avoids to generate own meta data for shortcuts.

public
# update_post_metadata( $check, $object_id, $meta_key, $meta_value, $prev_value )

Avoids to generate own meta data for shortcuts.

Avoids to generate own meta data for shortcuts.

public
# getLastIds( )

See

wp_rml_created_shortcuts_last_ids()
public
# delete_attachment( $postId )

Delete all associated shortcuts.

Delete all associated shortcuts.

public
# _resetLastIds( )

This function should only be used in the Creatable::insert() function.

This function should only be used in the Creatable::insert() function.

public static
# getInstance( )

Methods inherited from MatthiasWeb\RealMediaLibrary\base\Base

debug(), getCore(), getTableName()

API documentation generated by ApiGen