Class TemplatesControllerTemplate

Description

Template style controller class.

  • since: 1.6

Located in /administrator/components/com_templates/controllers/template.php (line 21)

JObject
   |
   --JControllerLegacy
      |
      --TemplatesControllerTemplate
Method Summary
 TemplatesControllerTemplate __construct ([array $config = array()])
 boolean allowEdit ()
 boolean allowSave ()
 void. cancel ()
 void. close ()
 boolean copy ()
 void copyFile ()
 void createFile ()
 void createFolder ()
 void cropImage ()
 void delete ()
 void deleteFolder ()
 void extractArchive ()
 JModelLegacy getModel ([string $name = 'Template'], [string $prefix = 'TemplatesModel'], [array $config = array()])
 void less ()
 void overrides ()
 void renameFile ()
 void resizeImage ()
 void save ()
 void uploadFile ()
Variables
Methods
Constructor __construct (line 31)

Constructor.

TemplatesControllerTemplate __construct ([array $config = array()])
  • array $config: An optional associative array of configuration settings.

Redefinition of:
JControllerLegacy::__construct()
Constructor.
allowEdit (line 184)

Method to check if you can add a new record.

  • since: 3.2
  • access: protected
boolean allowEdit ()
allowSave (line 196)

Method to check if you can save a new or existing record.

  • since: 3.2
  • access: protected
boolean allowSave ()
cancel (line 46)

Method for closing the template.

  • since: 3.2
  • access: public
void. cancel ()
close (line 58)

Method for closing a file.

  • since: 3.2
  • access: public
void. close ()
copy (line 74)

Method for copying the template.

  • return: true on success, false otherwise
  • since: 3.2
  • access: public
boolean copy ()
copyFile (line 673)

Method for copying a file.

  • since: 3.2
  • access: public
void copyFile ()
createFile (line 412)

Method for creating a new file.

  • since: 3.2
  • access: public
void createFile ()
createFolder (line 487)

Method for creating a new folder.

  • since: 3.2
  • access: public
void createFolder ()
cropImage (line 605)

Method for cropping an image.

  • since: 3.2
  • access: public
void cropImage ()
delete (line 376)

Method for deleting a file.

  • since: 3.2
  • access: public
void delete ()
deleteFolder (line 523)

Method for deleting a folder.

  • since: 3.2
  • access: public
void deleteFolder ()
extractArchive (line 708)

Method for extracting an archive file.

  • since: 3.2
  • access: public
void extractArchive ()
getModel (line 170)

Method to get a model object, loading it if required.

  • return: The model.
  • since: 3.2
  • access: public
JModelLegacy getModel ([string $name = 'Template'], [string $prefix = 'TemplatesModel'], [array $config = array()])
  • string $name: The model name. Optional.
  • string $prefix: The class prefix. Optional.
  • array $config: Configuration array for model. Optional (note, the empty array is atypical compared to other models).

Redefinition of:
JControllerLegacy::getModel()
Method to get a model object, loading it if required.
less (line 349)

Method for compiling LESS.

  • since: 3.2
  • access: public
void less ()
overrides (line 324)

Method for creating override.

  • since: 3.2
  • access: public
void overrides ()
renameFile (line 564)

Method for renaming a file.

  • since: 3.2
  • access: public
void renameFile ()
resizeImage (line 643)

Method for resizing an image.

  • since: 3.2
  • access: public
void resizeImage ()
save (line 208)

Saves a template source file.

  • since: 3.2
  • access: public
void save ()
uploadFile (line 456)

Method for uploading a file.

  • since: 3.2
  • access: public
void uploadFile ()

Inherited Methods

Inherited From JControllerLegacy

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

Inherited From JObject

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

Documentation generated on Tue, 19 Nov 2013 15:15:34 +0100 by phpDocumentor 1.4.3