Class JInstallationModelFilesystem

Description

Filesystem configuration model for the Joomla Core Installer.

  • since: 1.6

Located in /installation/models/filesystem.php (line 19)

JObject
   |
   --JModel
      |
      --JModelLegacy
         |
         --JInstallationModelFilesystem
Method Summary
static boolean checkPermissions ()
mixed checkSettings (string $user, string $pass, string $root, [string $host = '127.0.0.1'], [string $port = '21'])
mixed detectFtpRoot (array $options)
boolean setFolderPermissions ( $folder,  $options, string $path, string $buffer)
void setFTPCfg (array $vars)
mixed verifyFtpSettings (array $options)
void _chmod ( $path,  $mode)
Variables
Methods
static method checkPermissions (line 246)

Check the webserver user permissions for writing files/folders

  • return: True if correct permissions exist
  • since: 1.5
  • access: public
static boolean checkPermissions ()
checkSettings (line 282)

Verify the FTP configuration values are valid

  • return: Boolean true on success or JError object on fail
  • since: 1.5
  • access: public
mixed checkSettings (string $user, string $pass, string $root, [string $host = '127.0.0.1'], [string $port = '21'])
  • string $user: Username of the ftp user to determine root for
  • string $pass: Password of the ftp user to determine root for
  • string $root
  • string $host
  • string $port
detectFtpRoot (line 29)

Find the ftp filesystem root for a given user/pass pair.

  • return: Filesystem root for given FTP user, or boolean false if not found.
  • since: 1.6
  • access: public
mixed detectFtpRoot (array $options)
  • array $options: Configuration options.
setFolderPermissions (line 402)

Set default folder permissions

  • return: True on success
  • since: 1.5
  • access: public
boolean setFolderPermissions ( $folder,  $options, string $path, string $buffer)
  • string $path: The full file path
  • string $buffer: The buffer to write
  • $folder
  • $options
setFTPCfg (line 460)

Inserts ftp variables to mainframe registry Needed to activate ftp layer for file operations in safe mode

  • access: public
void setFTPCfg (array $vars)
  • array $vars: The post values
verifyFtpSettings (line 123)

Verify the FTP settings as being functional and correct.

  • return: Filesystem root for given FTP user, or boolean false if not found.
  • since: 1.6
  • access: public
mixed verifyFtpSettings (array $options)
  • array $options: Configuration options.
_chmod (line 474)
void _chmod ( $path,  $mode)
  • $path
  • $mode

Inherited Methods

Inherited From JModelLegacy

JModelLegacy::addIncludePath()

Inherited From JModel

JModel::__construct()
JModel::addIncludePath()
JModel::addTablePath()
JModel::cleanCache()
JModel::getDbo()
JModel::getInstance()
JModel::getName()
JModel::getState()
JModel::getTable()
JModel::populateState()
JModel::setDbo()
JModel::setState()
JModel::_createFileName()
JModel::_createTable()
JModel::_getList()
JModel::_getListCount()

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:45 -0500 by phpDocumentor 1.4.4