Class MediaControllerFile

Description

Media File Controller

  • since: 1.5

Located in /administrator/components/com_media/controllers/file.php (line 20)

JObject
   |
   --JController
      |
      --MediaControllerFile
Variable Summary
mixed $folder
Method Summary
boolean authoriseUser (string $action)
void delete ()
array reformatFilesArray (string $name, string $type, string $tmp_name, string $error, string $size)
void upload ()
Variables
Methods
authoriseUser (line 176)

Check that the user is authorized to perform this action

  • access: protected
boolean authoriseUser (string $action)
  • string $action: - the action to be peformed (create or delete)
delete (line 193)

Deletes paths from the current path

  • since: 1.5
  • access: public
void delete ()
reformatFilesArray (line 155)

Used as a callback for array_map, turns the multi-file input array into a sensible array of files Also, removes illegal characters from the 'name' and sets a 'filepath' as the final destination of the file

  • access: protected
array reformatFilesArray (string $name, string $type, string $tmp_name, string $error, string $size)
  • string $name: - file name ($files['name'])
  • string $type: - file type ($files['type'])
  • string $tmp_name: - temporary name ($files['tmp_name'])
  • string $error: - error info ($files['error'])
  • string $size: - file size ($files['size'])
upload (line 32)

Upload one or more files

  • since: 1.5
  • access: public
void upload ()

Inherited Methods

Inherited From JController

JController::__construct()
JController::addModelPath()
JController::addPath()
JController::addViewPath()
JController::authorise()
JController::authorize()
JController::checkEditId()
JController::createFileName()
JController::createModel()
JController::createView()
JController::display()
JController::execute()
JController::getInstance()
JController::getModel()
JController::getName()
JController::getTask()
JController::getTasks()
JController::getView()
JController::holdEditId()
JController::redirect()
JController::registerDefaultTask()
JController::registerTask()
JController::releaseEditId()
JController::setAccessControl()
JController::setMessage()
JController::setPath()
JController::setRedirect()
JController::unregisterTask()

Inherited From JObject

JObject::__construct()
JObject::def()
JObject::get()
JObject::getError()
JObject::getErrors()
JObject::getProperties()
JObject::set()
JObject::setError()
JObject::setProperties()
JObject::toString()
JObject::__toString()

Documentation generated on Mon, 25 Jun 2012 13:54:43 -0500 by phpDocumentor 1.4.4