[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/api/components/com_media/src/Controller/ -> MediaController.php (summary)

(no description)

Copyright: (C) 2021 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
File Size: 410 lines (10 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

MediaController:: (11 methods):
  displayList()
  displayItem()
  setModelState()
  add()
  allowAdd()
  edit()
  allowEdit()
  save()
  checkContent()
  delete()
  allowDelete()


Class: MediaController  - X-Ref

Media web service controller.

displayList()   X-Ref
Display a list of files and/or folders.

return: static  A \JControllerLegacy object to support chaining.

displayItem($path = '')   X-Ref
Display one specific file or folder.

param: string  $path  The path of the file to display. Leave empty if you want to retrieve data from the request.
return: static  A \JControllerLegacy object to support chaining.

setModelState(array $mappings)   X-Ref
Set model state using a list of mappings between query parameters and model state names.

param: array  $mappings  A list of mappings between query parameters and model state names.
return: void

add()   X-Ref
Method to add a new file or folder.

return: void

allowAdd($data = array()   X-Ref
Method to check if it's allowed to add a new file or folder

param: array  $data  An array of input data.
return: boolean

edit()   X-Ref
Method to modify an existing file or folder.

return: void

allowEdit($data = array()   X-Ref
Method to check if it's allowed to modify an existing file or folder.

param: array  $data  An array of input data.
return: boolean

save($recordKey = null)   X-Ref
Method to create or modify a file or folder.

param: integer  $recordKey  The primary key of the item (if exists)
return: string   The path

checkContent()   X-Ref
Performs various checks to see if it is allowed to save the content.

return: void

delete($id = null)   X-Ref
Method to delete an existing file or folder.

return: void

allowDelete()   X-Ref
Method to check if it's allowed to delete an existing file or folder.

return: boolean



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer