change_permissions
extends upgradescript
in package
This is the class change_permissions
Tags
Table of Contents
- $optional : mixed
- $priority : mixed
- $from_version : mixed
- $to_version : mixed
- checkVersion() : bool
- This routine should simply test version number (upgrade script requirements vs database version) to see if upgrade script should be run
- chmod_recursive() : mixed
- function will chmod dirs and files recursively
- description() : string
- generic description of upgrade script
- name() : string
- name/title of upgrade script
- needed() : bool
- additional test(s) to see if upgrade script should be run
- prioritize() : bool
- Comparison function to prioritize upgrade scripts
- upgrade() : string
- Searches for and updates file/folder permissions globally
Properties
$optional
public
mixed
$optional
= \true
$priority
public
mixed
$priority
= 82
$from_version
protected
mixed
$from_version
= '0.0.0'
$to_version
protected
mixed
$to_version
= '9999.99.99'
Methods
checkVersion()
This routine should simply test version number (upgrade script requirements vs database version) to see if upgrade script should be run
public
checkVersion(object $version) : bool
Parameters
- $version : object
Return values
bool —chmod_recursive()
function will chmod dirs and files recursively
public
chmod_recursive(type $start_dir[, int $dir_perms = 0755 ][, int $file_perms = 0644 ]) : mixed
Parameters
- $start_dir : type
- $dir_perms : int = 0755
- $file_perms : int = 0644
Return values
mixed —description()
generic description of upgrade script
public
description() : string
Return values
string —name()
name/title of upgrade script
public
static name() : string
Return values
string —needed()
additional test(s) to see if upgrade script should be run
public
needed() : bool
Return values
bool —prioritize()
Comparison function to prioritize upgrade scripts
public
static prioritize( $a, $b) : bool
Parameters
Return values
bool —upgrade()
Searches for and updates file/folder permissions globally
public
upgrade() : string