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 Util

Util.

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

Methods summary

public
# query( )

Query multiple sql statements.

Query multiple sql statements.

public
# doActionAnyParentHas( $folder, $action, $args = null )
public
# buildTree( & $elements, $parentId = -1, $keyParent = 'parent', $key = 'id', $keyChildren = 'children' )

Build a tree from an array.

Build a tree from an array.

See

https://stackoverflow.com/questions/8840319/build-a-tree-from-a-flat-array-in-php
public
# clearTree( array & $tree, string[] $clear = array(), $keyChildren = 'children' )

Clears an array of a tree of the parent and id values.

Clears an array of a tree of the parent and id values.

Parameters

$tree
The result of this::buildTree
$clear
$keyChildren

Parma

string $keyChildren
public
# group_by( $array, $key )
public
# fixIsShortcutInPosts( )

Fixing the missing isShortcut parameter in wp_realmedialibrary_posts when SC is given in the guid.

Fixing the missing isShortcut parameter in wp_realmedialibrary_posts when SC is given in the guid.

public
# resetAllSlugsAndAbsolutePathes( $remap = null )

Allows to reset all names with slugs and absolute pathes.

Allows to reset all names with slugs and absolute pathes.

public
# resetAllSlugsAndAbsolutePathesTable( )
public static
# createSQLForAllParents( $folder, $includeSelf = false, $until = null, $options = null )

See

wp_rml_create_all_parents_sql()
public static
# createSQLForAllChildren( $folder, $includeSelf = false, $options = null )

See

wp_rml_create_all_children_sql()
public
# esc_sql_name( $name )
public static
# getInstance( )

Methods inherited from MatthiasWeb\RealMediaLibrary\base\Base

debug(), getCore(), getTableName()

API documentation generated by ApiGen