API Joomla 1.5.26
Documentation des API du CMS Joomla en version 1.5
|
JPath::canChmod | ( | $ | path | ) |
Checks if a path's permissions can be changed
string | $path | Path to check |
Références $path.
Référencé par mosIsChmodable(), et JInstallationHelper::setDirPerms().
JPath::check | ( | $ | path | ) |
Checks for snooping outside of the file system root
string | $path | A file system path to check |
Références $path, clean(), jexit(), et JError::raiseError().
Référencé par ConfigModelComponent::getParams().
JPath::clean | ( | $ | path, |
$ | ds = DS |
||
) | [static] |
Function to strip additional / or \ in a path name
string | $path | The path to clean |
string | $ds | Directory separator (optional) |
Références $path.
Référencé par JInstallationHelper::_chmod(), JArchiveZip::_extract(), InstallerModelInstall::_getPackageFromFolder(), JModel::addIncludePath(), JHTML::addIncludePath(), check(), JInstallerHelper::cleanupInstall(), JFolder::copy(), JFile::copy(), JInstaller::copyFiles(), JFolder::create(), MediaControllerFolder::create(), JFolder::delete(), MediaControllerFolder::delete(), JFile::delete(), MediaControllerFile::delete(), TemplatesController::editTemplate(), JFolder::exists(), JFile::exists(), JArchiveTar::extract(), JArchive::extract(), JFolder::files(), JFolder::folders(), JLog::getInstance(), MediaModelList::getList(), ConfigModelComponent::getParams(), getPermissions(), JInstallerComponent::install(), JFolder::listFolderTree(), mosPathName(), JFolder::move(), JFile::move(), JInstaller::parseMedia(), JInstallationModel::saveConfig(), JInstallationHelper::setDirPerms(), JInstallerComponent::uninstall(), JInstallerHelper::unpack(), JInstallationHelper::unpack(), JFile::upload(), MediaControllerFile::upload(), et JFile::write().
JPath::find | ( | $ | paths, |
$ | file | ||
) |
Searches the directory paths for a given file.
protected
array | string | $path | An path or array of path to search in |
string | $file | The file name to look for. |
Références $path.
Référencé par JHTML::_(), JController::_createView(), JTable::getInstance(), JModel::getInstance(), JToolBar::loadButtonType(), JParameter::loadElement(), JView::loadHelper(), et JView::loadTemplate().
JPath::getPermissions | ( | $ | path | ) |
JPath::isOwner | ( | $ | path | ) | [static] |
Method to determine if script owns the path
string | $path | Path to check ownership |
Références $path, $return, JFile::delete(), JUserHelper::genRandomPassword(), jimport(), et JFile::write().
Référencé par ConfigControllerApplication::save(), TemplatesController::saveTemplate(), et TemplatesController::saveTemplateCSS().
JPath::setPermissions | ( | $ | path, |
$ | filemode = '0644' , |
||
$ | foldermode = '0755' |
||
) |
Chmods files and directories recursivly to given permissions
string | $path | Root path to begin changing mode [without trailing slash] |
string | $filemode | Octal representation of the value to change file mode to [null = no change] |
string | $foldermode | Octal representation of the value to change folder mode to [null = no change] |
Référencé par mosChmod(), mosChmodRecursive(), ConfigControllerApplication::save(), TemplatesController::saveTemplate(), TemplatesController::saveTemplateCSS(), TemplatesController::saveTemplateSource(), et JFile::upload().