\

Namespaces

Pydio

Classes

SessionSwitcher Utilitary class for switching session

Constants

AJXP_CACHE_SERVICE_NS_NODES

AJXP_CACHE_SERVICE_NS_NODES

AJXP_CACHE_SERVICE_NS_SHARED

AJXP_CACHE_SERVICE_NS_SHARED

AJXP_EXEC

AJXP_EXEC

AJXP_FILTER_EMPTY

AJXP_FILTER_EMPTY

AJXP_FILTER_NOT_EMPTY

AJXP_FILTER_NOT_EMPTY

AJXP_META_SPACE_COMMENTS

AJXP_META_SPACE_COMMENTS

AJXP_METADATA_ALLUSERS

AJXP_METADATA_ALLUSERS

AJXP_METADATA_SCOPE_GLOBAL

AJXP_METADATA_SCOPE_GLOBAL

AJXP_METADATA_SCOPE_REPOSITORY

AJXP_METADATA_SCOPE_REPOSITORY

AJXP_METADATA_SHAREDUSER

AJXP_METADATA_SHAREDUSER

AJXP_NOTIF_NODE_ADD

AJXP_NOTIF_NODE_ADD

AJXP_NOTIF_NODE_CHANGE

AJXP_NOTIF_NODE_CHANGE

AJXP_NOTIF_NODE_COPY

AJXP_NOTIF_NODE_COPY

AJXP_NOTIF_NODE_COPY_FROM

AJXP_NOTIF_NODE_COPY_FROM

AJXP_NOTIF_NODE_COPY_TO

AJXP_NOTIF_NODE_COPY_TO

AJXP_NOTIF_NODE_DEL

AJXP_NOTIF_NODE_DEL

AJXP_NOTIF_NODE_MOVE

AJXP_NOTIF_NODE_MOVE

AJXP_NOTIF_NODE_MOVE_FROM

AJXP_NOTIF_NODE_MOVE_FROM

AJXP_NOTIF_NODE_MOVE_TO

AJXP_NOTIF_NODE_MOVE_TO

AJXP_NOTIF_NODE_RENAME

AJXP_NOTIF_NODE_RENAME

AJXP_NOTIF_NODE_VIEW

AJXP_NOTIF_NODE_VIEW

AJXP_PLUGINS_SCOPE_ALL

AJXP_PLUGINS_SCOPE_ALL

AJXP_PROMPT_EXCEPTION_ALERT

AJXP_PROMPT_EXCEPTION_ALERT

AJXP_PROMPT_EXCEPTION_CONFIRM

AJXP_PROMPT_EXCEPTION_CONFIRM

AJXP_PROMPT_EXCEPTION_PROMPT

AJXP_PROMPT_EXCEPTION_PROMPT

AJXP_REPO_SCOPE_ALL

AJXP_REPO_SCOPE_ALL

AJXP_REPO_SCOPE_SHARED

AJXP_REPO_SCOPE_SHARED

AJXP_REPOSITORY_TYPE_LOCAL

AJXP_REPOSITORY_TYPE_LOCAL

AJXP_SHARED_META_NAMESPACE

AJXP_SHARED_META_NAMESPACE

AJXP_THEME_FOLDER

AJXP_THEME_FOLDER

AJXP_VALUE_CLEAR

AJXP_VALUE_CLEAR

APC_EXTENSION_LOADED

APC_EXTENSION_LOADED

API_DOC_PAGE

API_DOC_PAGE

CLIENT_RESOURCES_FOLDER

CLIENT_RESOURCES_FOLDER

CLIENT_RESOURCES_FOLDER

CLIENT_RESOURCES_FOLDER

HASH_ALGORITHM_INDEX

HASH_ALGORITHM_INDEX

HASH_ITERATION_INDEX

HASH_ITERATION_INDEX

HASH_PBKDF2_INDEX

HASH_PBKDF2_INDEX

HASH_SALT_INDEX

HASH_SALT_INDEX

HASH_SECTIONS

HASH_SECTIONS

IDX_CMD_RC

IDX_CMD_RC

Index of command result code within SVN excution result array.

IDX_CMDLINE

IDX_CMDLINE

Index of commandline text within SVN excution result array.

IDX_ERROUT

IDX_ERROUT

Index of error output array within SVN excution result array.

IDX_NAME

IDX_NAME

Name text index

IDX_STDOUT

IDX_STDOUT

Index of standard output array within SVN excution result array.

IDX_TITLE

IDX_TITLE

Title text index of SVN command.

IDX_VALUE

IDX_VALUE

Value index

JSON_DIR

JSON_DIR

JSON_URL

JSON_URL

LOG_LEVEL_DEBUG

LOG_LEVEL_DEBUG

LOG_LEVEL_DEBUG

LOG_LEVEL_DEBUG

LOG_LEVEL_DEBUG

LOG_LEVEL_DEBUG

LOG_LEVEL_ERROR

LOG_LEVEL_ERROR

LOG_LEVEL_ERROR

LOG_LEVEL_ERROR

LOG_LEVEL_ERROR

LOG_LEVEL_ERROR

LOG_LEVEL_INFO

LOG_LEVEL_INFO

LOG_LEVEL_INFO

LOG_LEVEL_INFO

LOG_LEVEL_INFO

LOG_LEVEL_INFO

LOG_LEVEL_NOTICE

LOG_LEVEL_NOTICE

LOG_LEVEL_NOTICE

LOG_LEVEL_NOTICE

LOG_LEVEL_NOTICE

LOG_LEVEL_NOTICE

LOG_LEVEL_WARNING

LOG_LEVEL_WARNING

LOG_LEVEL_WARNING

LOG_LEVEL_WARNING

LOG_LEVEL_WARNING

LOG_LEVEL_WARNING

MEMCACHE_EXTENSION_LOADED

MEMCACHE_EXTENSION_LOADED

MEMCACHED_EXTENSION_LOADED

MEMCACHED_EXTENSION_LOADED

OCS_INVITATION_STATUS_ACCEPTED

OCS_INVITATION_STATUS_ACCEPTED

OCS_INVITATION_STATUS_ACCEPTED

OCS_INVITATION_STATUS_ACCEPTED

OCS_INVITATION_STATUS_PENDING

OCS_INVITATION_STATUS_PENDING

OCS_INVITATION_STATUS_PENDING

OCS_INVITATION_STATUS_PENDING

OCS_INVITATION_STATUS_REJECTED

OCS_INVITATION_STATUS_REJECTED

OCS_INVITATION_STATUS_REJECTED

OCS_INVITATION_STATUS_REJECTED

OCS_SQLSTORE_FORMAT

OCS_SQLSTORE_FORMAT

OCS_SQLSTORE_NS_INVITATION

OCS_SQLSTORE_NS_INVITATION

OCS_SQLSTORE_NS_REMOTE_SHARE

OCS_SQLSTORE_NS_REMOTE_SHARE

PARAM_USER_ENTRY_TYPE

PARAM_USER_ENTRY_TYPE

PARAM_USER_LOGIN_PREFIX

PARAM_USER_LOGIN_PREFIX

PARAM_USER_PASS_PREFIX

PARAM_USER_PASS_PREFIX

PARAM_USER_RIGHT_READ_PREFIX

PARAM_USER_RIGHT_READ_PREFIX

PARAM_USER_RIGHT_WATCH_PREFIX

PARAM_USER_RIGHT_WATCH_PREFIX

PARAM_USER_RIGHT_WRITE_PREFIX

PARAM_USER_RIGHT_WRITE_PREFIX

PBKDF2_HASH_ALGORITHM

PBKDF2_HASH_ALGORITHM

PBKDF2_HASH_BYTE_SIZE

PBKDF2_HASH_BYTE_SIZE

PBKDF2_ITERATIONS

PBKDF2_ITERATIONS

PBKDF2_SALT_BYTE_SIZE

PBKDF2_SALT_BYTE_SIZE

PHPCAS_MODE_CLIENT

PHPCAS_MODE_CLIENT

PHPCAS_MODE_PROXY

PHPCAS_MODE_PROXY

PYDIO_SESSION_NAME

PYDIO_SESSION_NAME

PYDIO_SESSION_QUERY_PARAM

PYDIO_SESSION_QUERY_PARAM

REDIS_EXTENSION_LOADED

REDIS_EXTENSION_LOADED

SMB4PHP_AUTHMODE

SMB4PHP_AUTHMODE

SMB4PHP_SMBCLIENT

SMB4PHP_SMBCLIENT

SMB4PHP_SMBCLIENT

SMB4PHP_SMBCLIENT

SMB4PHP_SMBCLIENT

SMB4PHP_SMBCLIENT

SMB4PHP_SMBOPTIONS

SMB4PHP_SMBOPTIONS

SMB4PHP_SMBTMP

SMB4PHP_SMBTMP

SMB4PHP_SMBTMP

SMB4PHP_SMBTMP

SMB4PHP_VERSION

SMB4PHP_VERSION

SVNLIB_PATH

SVNLIB_PATH

USE_OPENSSL_RANDOM

USE_OPENSSL_RANDOM

XCACHE_EXTENSION_LOADED

XCACHE_EXTENSION_LOADED

Functions

ajxp_gluecode_updateRole()

ajxp_gluecode_updateRole(  $loginData,   $userObject) 

Parameters

$loginData
$userObject

auth_remote_debug()

auth_remote_debug(  $str) 

Parameters

$str

BuildSvnDirTree()

BuildSvnDirTree(array  $paths, array  $tree, integer  $max_level, string  $parent_dir = '') : array

Builds SVN directory tree.

Parameters

array $paths

Reference to SVN path array

array $tree

Reference to 'svnlook tree' stdout that should be transformed into SVN paths.

integer $max_level

Mamimum level for paths.

string $parent_dir

Parent directory in path.

Returns

array —

Paths already found.

CheckoutWebspace()

CheckoutWebspace(\SwcConfig  $config) : array

Performs workspace (webspace) checkout and returns the output of 'svn checkout' contained in a result array as produced by <b>ExecSvnCmd</b>.

Parameters

\SwcConfig $config

SWC config for the operation.

Returns

array —

Result of svn checkout execution.

CleanupWebspace()

CleanupWebspace(\SwcConfig  $config) : array

Performs webspace cleanup and returns the output of <i>svn cleanup</i> contained in a result array as produced by <b>ExecSvnCmd</b>.

Parameters

\SwcConfig $config

SWC config for the operation.

Returns

array —

Result of svn cleanup execution.

drupal_remote_auth()

drupal_remote_auth(  $host,   $uri,   $login,   $pass, string  $formId = "") : array|string

Parameters

$host
$uri
$login
$pass
string $formId

Returns

array|string

ExecSvnCmd()

ExecSvnCmd(string  $cmd, string  $arg = '',   $switches = '') : array

Executes an SVN command.

Parameters

string $cmd

Command to execute

string $arg

Arguments of the command

$switches

Returns

array —

Result array containing commandline (idx = IDX_CMDLINE), standard out array (idx = IDX_STDOUT), error array (idx = IDX_ERROUT), and return code of the command (idx = IDX_CMD_RC).

extractResponseCookies()

extractResponseCookies(\HttpClient  $client) : array

Parameters

\HttpClient $client

Returns

array

GetBranches()

GetBranches(\SwcConfig  $config) : array

Returns the array of branches available in the repository.

Parameters

\SwcConfig $config

SWC config for the operation.

Returns

array —

Version branches.

GetHeadDate()

GetHeadDate(\SwcConfig  $config) : string

Returns the formated date of the latest changes within the repository.

Parameters

\SwcConfig $config

SWC config for the operation.

Returns

string —

Date of HEAD revision.

GetHeadRevision()

GetHeadRevision(\SwcConfig  $config) : integer

Returns the number of the youngest SVN revision (HEAD) available in the repository.

Parameters

\SwcConfig $config

SWC config for the operation.

Returns

integer —

Number of HEAD revision

GetLineArray()

GetLineArray(resource  $handle, integer  $length = 4096) : array

Reads data from a resource (e.g. pipe) and returns an array that contains each line for a separate index.

Parameters

resource $handle

Resource handle

integer $length

Maximum line length used if a line is not delimited.

Returns

array —

Array containing a delimited line per index.

GetLineString()

GetLineString(resource  $handle, integer  $length = 4096) : array

Reads data from a resource (e.g. pipe) and returns an array that contains each line for a separate index.

Parameters

resource $handle

Resource handle

integer $length

Maximum line length used if a line is not delimited.

Returns

array —

Array containing a delimited line per index.

GetRepositoryInfo()

GetRepositoryInfo(\SwcConfig  $config) : array

Returns the output of <i>svn info</i> for the repository contained in a result array as produced by <b>ExecSvnCmd</b>.

Parameters

\SwcConfig $config

SWC config for the operation.

Returns

array —

Output line by line.

GetRepositoryPaths()

GetRepositoryPaths(\SwcConfig  $config,   $roots, integer  $depth) : array

Returns an array of repository paths starting at $root with maximum directory count given in $level.

Parameters

\SwcConfig $config

SWC config for the operation.

$roots
integer $depth

Maximum directory depth.

Returns

array —

Array of paths of repository.

GetSvnAdminHelp()

GetSvnAdminHelp() : array

Returns the help output of <i>svnadmin</i>.

Returns

array —

svnadmin help output in form of a result array as produced by ExecSvnCmd.

GetSvnHelp()

GetSvnHelp() : array

Returns the help output of <i>svn</i>.

Returns

array —

svn help output in form of a result array as produced by ExecSvnCmd.

GetSvnLookHelp()

GetSvnLookHelp() : array

Returns the help output of <i>svnlook</i>.

Returns

array —

svnlook help output in form of a result array as produced by ExecSvnCmd.

GetSvnPw()

GetSvnPw(\SwcConfig  $config) : string

Returns the SVN password switch for the given config.

Parameters

\SwcConfig $config

Config for retrieving user.

Returns

string —

svn switch for password (empty string if no password is applied.

GetSvnUsr()

GetSvnUsr(\SwcConfig  $config) : string

Returns the SVN User switch for the given config.

Parameters

\SwcConfig $config

Config for retrieving user.

Returns

string —

svn switch for user (empty string if no user is applied.

GetSvnVersion()

GetSvnVersion() : string

Returns the version of SVN.

Returns

string —

Version of Subversion

GetSvnVersionHelp()

GetSvnVersionHelp() : array

Returns the help output of <i>svnversion</i>.

Returns

array —

svnversion help output in form of a result array as produced by ExecSvnCmd.

GetTags()

GetTags(\SwcConfig  $config) : array

Returns the array of tags available in the repository.

Parameters

\SwcConfig $config

SWC config for the operation.

Returns

array —

Version tags.

GetWebspaceInfo()

GetWebspaceInfo(\SwcConfig  $config, boolean  $xml_output = true) : array

Returns the output of <i>svn info</i> contained in a result array as produced by <b>ExecSvnCmd</b>.

Parameters

\SwcConfig $config

SWC config for the operation.

boolean $xml_output

Whether or not output shall be printed in xml format (default).

Returns

array —

Output line by line.

GetWebspaceLog()

GetWebspaceLog(\SwcConfig  $config,   $path) : array

Returns the output of <i>svn log</i> contained in a result array as produced by <b>ExecSvnCmd</b>.

Parameters

\SwcConfig $config

SWC config for the operation.

$path

Returns

array —

Result of svn log execution.

GetWebspaceRevision()

GetWebspaceRevision(\SwcConfig  $config) : integer

Returns the number of the SVN revision of the webspace.

Parameters

\SwcConfig $config

SWC config for the operation.

Returns

integer —

Webspace revision.

GetWebspaceRevisionDate()

GetWebspaceRevisionDate(\SwcConfig  $config) : string

Returns the formated date of the revision of the workspace.

Parameters

\SwcConfig $config

SWC config for the operation.

Returns

string —

Date of webspace revision.

GetWebspaceSourcePath()

GetWebspaceSourcePath(\SwcConfig  $config) : string

Returns the path of the repository where the webspace referes to with repository root directory.

Parameters

\SwcConfig $config

SWC config for the operation.

Returns

string —

Repository path the webspace points to.

GetWebspaceStatus()

GetWebspaceStatus(\SwcConfig  $config) : array

Returns the output of <i>svn status</i> contained in a result array as produced by <b>ExecSvnCmd</b>.

Parameters

\SwcConfig $config

SWC config for the operation.

Returns

array —

Result of svn status execution.

joomla_remote_auth()

joomla_remote_auth(  $host,   $uri,   $login,   $pass, string  $formId = "") : array|string

Parameters

$host
$uri
$login
$pass
string $formId

Returns

array|string

ListRepository()

ListRepository(\SwcConfig  $config,   $path) : array

Returns the output of <i>svn list</i> contained in a result array as produced by <b>ExecSvnCmd</b>.

Parameters

\SwcConfig $config

SWC config for the operation.

$path

Returns

array —

Result of svn list execution.

ParseArray()

ParseArray(array  $array, string  $startstr, string  $endstr = NULL) : string

Returns a string of the given array that is encapsulated within $startstr and $endstr.

Parameters

array $array

Line array as provided by 'GetLineArray' to search the string within.

string $startstr

String to search.

string $endstr

String to delimit search. If NULL, the returned string is not delimited.

Returns

string —

String within a 'line' of $array that starts with '$startstr' and ends with '$endstr'. If $startstr is not found, '?' is returned. $startstr is not returned.

PrintArray()

PrintArray(array  $array, string  $name = '', boolean  $encode_html_chars = true) 

HTML and user friendly output of an array.

Parameters

array $array

Array to print

string $name

Name of the array, also printed.

boolean $encode_html_chars

Whether or not to encode special characters to HTML equivalents (default).

securePath()

securePath(string  $path) : string

Remove all ".

./../" tentatives, replace double slashes

Parameters

string $path

Returns

string

SvnExecute()

SvnExecute(array  $results = NULL) : array

Executed SVN commands according to $_SESSION[IDX_ACTION].

Stores all execution results within $_SESSION[IDX_EXEC_RES] array.

Parameters

array $results

A result array that should be appended by the result of the command execution. A new array is returned if this parameter is set to NULL.

Returns

array —

Array containing results of command excution.

SwitchWebspace()

SwitchWebspace(\SwcConfig  $config, string  $path) : array

Switches webspace to given repository path.

Parameters

\SwcConfig $config

SWC config for the operation.

string $path

Repository path to switch to A path without repository root should be applied.

Returns

array —

Result of svn switch execution.

testCentOS()

testCentOS() 

testWin2K3()

testWin2K3() 

UpdateWebspace()

UpdateWebspace(\SwcConfig  $config) : array

Performs webspace update to head revision and returns the output of 'svn update' contained in a result array as produced by <b>ExecSvnCmd</b>.

Parameters

\SwcConfig $config

SWC config for the operation.

Returns

array —

Result of svn update execution.

wordpress_remote_auth()

wordpress_remote_auth(  $host,   $uri,   $login,   $pass, string  $formId = "") : array|string

Parameters

$host
$uri
$login
$pass
string $formId

Throws

\Pydio\Core\Exception\PydioException

Returns

array|string