• Namespace
  • Class
  • Tree
  • Deprecated
  • Todo
  • Hooks

Namespaces

  • None
  • SIW
    • Admin
    • API
    • Async
    • Batch
    • Compatibility
    • Data
    • Elements
    • Email
    • External
    • Forms
    • Modules
    • Newsletter
    • Page_Builder
    • Plato
    • Widgets
    • WooCommerce
      • Admin
      • Checkout
      • Email
      • Export
      • Frontend
      • Import

Classes

  • Animation
  • Assets
  • Attachment
  • Autoloader
  • Bootstrap
  • CSS
  • Elements
  • Formatting
  • Forms
  • Head
  • htaccess
  • HTML
  • i18n
  • Icons
  • Login
  • Media_Taxonomies
  • Options
  • Properties
  • Scheduler
  • Shortcodes
  • Update
  • Upload_Subdir
  • Util
  • Widgets

Class Attachment

Class om attachment aan te maken o.b.v. een (tijdelijk) bestand

Namespace: SIW
Copyright: 2019 SIW Internationale Vrijwilligersprojecten
Since: 3.0.0
Todo: subclasses voor bestandstypes?
Located at attachment.php

Methods summary

public
# __construct( string $filetype, string $subdir )

Init

Init

Parameters

$filetype
$subdir
public integer
# add( string $temp_file, string $filename, string $title )

Voegt attachment toe

Voegt attachment toe

Parameters

$temp_file
$filename
$title

Returns

integer
protected string
# move_file( string $temp_file, string $filename )

Verplaatst bestand naar upload-directory

Verplaatst bestand naar upload-directory

Parameters

$temp_file
$filename

Returns

string
public
# set_minimum_resolution( integer $width, integer $height )

Zet minimum resolutie van afbeelding

Zet minimum resolutie van afbeelding

Parameters

$width
$height
public
# set_maximimum_resolution( integer $width, integer $height )

Zet maximum resolutie van afbeelding

Zet maximum resolutie van afbeelding

Parameters

$width
$height
protected integer
# create_attachment( string $relative_path, string $title )

Voegt attachment toe aan database

Voegt attachment toe aan database

Parameters

$relative_path
$title

Returns

integer
protected string|boolean
# check_image( string $relative_path )

Controleer afbeelding

Controleer afbeelding

  • Verwijderen en afbreken als afbeelding te klein is
  • Resizen als afbeelding te groot is

Parameters

$relative_path

Returns

string|boolean
public string
# set_upload_subdir( )

Zet upload directory

Zet upload directory

Returns

string

Properties summary

protected string $upload_dir

Path van upload directory

Path van upload directory

#
protected string $upload_url

URL van upload directory

URL van upload directory

#
protected string $subdir

Subdirectory voor upload

Subdirectory voor upload

#
protected integer $minimum_width

Minimum breedte van afbeelding

Minimum breedte van afbeelding

#
protected integer $minimum_height

Minimum hoogte van afbeelding

Minimum hoogte van afbeelding

#
protected integer $maximum_width

Maximum breedte van afbeelding

Maximum breedte van afbeelding

# SIW\Properties::MAX_IMAGE_SIZE
protected integer $maximum_height

Maximum hoogte van afbeelding

Maximum hoogte van afbeelding

# SIW\Properties::MAX_IMAGE_SIZE
protected string $filetype

Soort bestand

Soort bestand

#
SIW API documentation generated by ApiGen