PluginFlyvemdmFile - btry/glpi-plugin GitHub Wiki

PluginFlyvemdmFile

  • Class name: PluginFlyvemdmFile
  • Namespace:
  • Parent class: CommonDBTM

Properties

$rightname

public mixed $rightname = 'flyvemdm:file'
  • Visibility: public
  • This property is static.

$usenotepad

protected boolean $usenotepad = true
  • Visibility: protected

$usenotepadRights

protected boolean $usenotepadRights = true
  • Visibility: protected

Methods

getTypeName

mixed PluginFlyvemdmFile::getTypeName(integer $nb)

Localized name of the type

  • Visibility: public
  • This method is static.

Arguments

  • $nb integer - <p>number of item in the type (default 0)</p>

getMenuPicture

string PluginFlyvemdmFile::getMenuPicture()

Returns the URI to the picture file relative to the front/folder of the plugin

  • Visibility: public
  • This method is static.

addNeededInfoToInput

mixed PluginFlyvemdmFile::addNeededInfoToInput($input)
  • Visibility: public

Arguments

  • $input mixed

prepareInputForAdd

mixed PluginFlyvemdmFile::prepareInputForAdd($input)

(non-PHPdoc)

  • Visibility: public

Arguments

  • $input mixed

prepareInputForUpdate

mixed PluginFlyvemdmFile::prepareInputForUpdate($input)

(non-PHPdoc)

  • Visibility: public

Arguments

  • $input mixed

saveUploadedFile

\canonical PluginFlyvemdmFile::saveUploadedFile($source, $destination)

move and rename the uploaded file

  • Visibility: public

Arguments

  • $source mixed
  • $destination mixed

getFileURL

string|boolean PluginFlyvemdmFile::getFileURL()

get the URL to download the file

  • Visibility: public

createEntityDirectory

mixed PluginFlyvemdmFile::createEntityDirectory(string $dir)

Create a directory

  • Visibility: protected

Arguments

  • $dir string

getSearchOptions

mixed PluginFlyvemdmFile::getSearchOptions()
  • Visibility: public

pre_deleteItem

mixed PluginFlyvemdmFile::pre_deleteItem()
  • Visibility: public

post_addItem

mixed PluginFlyvemdmFile::post_addItem()
  • Visibility: public

post_getFromDB

mixed PluginFlyvemdmFile::post_getFromDB()

Actions done after the getFromDB method

  • Visibility: public

post_updateItem

mixed PluginFlyvemdmFile::post_updateItem($history)
  • Visibility: public

Arguments

  • $history mixed

post_purgeItem

mixed PluginFlyvemdmFile::post_purgeItem()
  • Visibility: public

sendFile

mixed PluginFlyvemdmFile::sendFile()

Sends a file

  • Visibility: protected

hook_entity_purge

mixed PluginFlyvemdmFile::hook_entity_purge(\CommonDBTM $item)

Deletes files related to the entity being purged

  • Visibility: public

Arguments

  • $item CommonDBTM

showForm

mixed PluginFlyvemdmFile::showForm(integer $ID, array $options)

Display a form to view, create or edit

  • Visibility: public

Arguments

  • $ID integer - <p>ID of the item to show</p>
  • $options array
⚠️ **GitHub.com Fallback** ⚠️