Browse Source

Unify links to php.net

Update all links to https://www.php.net/

Signed-off-by: J0WI <J0WI@users.noreply.github.com>
tags/v21.0.0beta3
J0WI 3 years ago
parent
commit
68ce17e59b

+ 1
- 1
apps/files/lib/Command/Scan.php View File

/** /**
* Processes PHP errors as exceptions in order to be able to keep track of problems * Processes PHP errors as exceptions in order to be able to keep track of problems
* *
* @see https://secure.php.net/manual/en/function.set-error-handler.php
* @see https://www.php.net/manual/en/function.set-error-handler.php
* *
* @param int $severity the level of the error raised * @param int $severity the level of the error raised
* @param string $message * @param string $message

+ 1
- 1
apps/files/lib/Command/ScanAppData.php View File

/** /**
* Processes PHP errors as exceptions in order to be able to keep track of problems * Processes PHP errors as exceptions in order to be able to keep track of problems
* *
* @see https://secure.php.net/manual/en/function.set-error-handler.php
* @see https://www.php.net/manual/en/function.set-error-handler.php
* *
* @param int $severity the level of the error raised * @param int $severity the level of the error raised
* @param string $message * @param string $message

+ 1
- 1
apps/files_external/3rdparty/icewind/smb/src/Native/NativeShare.php View File

* Multibyte unicode safe version of basename() * Multibyte unicode safe version of basename()
* *
* @param string $path * @param string $path
* @link http://php.net/manual/en/function.basename.php#121405
* @link https://www.php.net/manual/en/function.basename.php#121405
* @return string * @return string
*/ */
protected static function mb_basename($path) { protected static function mb_basename($path) {

+ 1
- 1
apps/files_sharing/lib/SharedStorage.php View File

} }


/** /**
* see http://php.net/manual/en/function.rename.php
* see https://www.php.net/manual/en/function.rename.php
* *
* @param string $path1 * @param string $path1
* @param string $path2 * @param string $path2

+ 1
- 1
apps/settings/lib/Controller/CheckSetupController.php View File



/** /**
* Whether the php version is still supported (at time of release) * Whether the php version is still supported (at time of release)
* according to: https://secure.php.net/supported-versions.php
* according to: https://www.php.net/supported-versions.php
* *
* @return array * @return array
*/ */

+ 1
- 1
apps/settings/templates/settings/admin/server.php View File

} else { } else {
print_unescaped(str_replace( print_unescaped(str_replace(
['{linkstart}', '{linkend}'], ['{linkstart}', '{linkend}'],
['<a href="http://php.net/manual/en/book.posix.php">', ' ↗</a>'],
['<a href="https://www.php.net/manual/en/book.posix.php">', ' ↗</a>'],
$l->t('To run this you need the PHP POSIX extension. See {linkstart}PHP documentation{linkend} for more details.') $l->t('To run this you need the PHP POSIX extension. See {linkstart}PHP documentation{linkend} for more details.')
)); ));
} ?></em> } ?></em>

+ 1
- 1
apps/user_ldap/lib/Access.php View File

* *
* @param string $oguid the ObjectGUID in it's binary form as retrieved from AD * @param string $oguid the ObjectGUID in it's binary form as retrieved from AD
* @return string * @return string
* @link http://www.php.net/manual/en/function.ldap-get-values-len.php#73198
* @link https://www.php.net/manual/en/function.ldap-get-values-len.php#73198
*/ */
private function convertObjectGUID2Str($oguid) { private function convertObjectGUID2Str($oguid) {
$hex_guid = bin2hex($oguid); $hex_guid = bin2hex($oguid);

+ 1
- 1
apps/user_ldap/lib/ILDAPWrapper.php View File

* @param string $dn * @param string $dn
* @param int @withAttrib * @param int @withAttrib
* @return array|false * @return array|false
* @link http://www.php.net/manual/en/function.ldap-explode-dn.php
* @link https://www.php.net/manual/en/function.ldap-explode-dn.php
*/ */
public function explodeDN($dn, $withAttrib); public function explodeDN($dn, $withAttrib);



+ 1
- 1
apps/user_ldap/lib/LDAP.php View File

* @param string $dn * @param string $dn
* @param int @withAttrib * @param int @withAttrib
* @return array|false * @return array|false
* @link http://www.php.net/manual/en/function.ldap-explode-dn.php
* @link https://www.php.net/manual/en/function.ldap-explode-dn.php
*/ */
public function explodeDN($dn, $withAttrib) { public function explodeDN($dn, $withAttrib) {
return $this->invokeLDAPMethod('explode_dn', $dn, $withAttrib); return $this->invokeLDAPMethod('explode_dn', $dn, $withAttrib);

+ 16
- 16
build/stubs/gd.php View File



/** /**
* Return an image containing the affine tramsformed src image, using an optional clipping area * Return an image containing the affine tramsformed src image, using an optional clipping area
* @link https://secure.php.net/manual/en/function.imageaffine.php
* @link https://www.php.net/manual/en/function.imageaffine.php
* @param resource $image <p>An image resource, returned by one of the image creation functions, * @param resource $image <p>An image resource, returned by one of the image creation functions,
* such as {@link https://secure.php.net/manual/en/function.imagecreatetruecolor.php imagecreatetruecolor()}.</p>
* such as {@link https://www.php.net/manual/en/function.imagecreatetruecolor.php imagecreatetruecolor()}.</p>
* @param array $affine <p>Array with keys 0 to 5.</p> * @param array $affine <p>Array with keys 0 to 5.</p>
* @param array $clip [optional] <p>Array with keys "x", "y", "width" and "height".</p> * @param array $clip [optional] <p>Array with keys "x", "y", "width" and "height".</p>
* @return resource|bool Return affined image resource on success or FALSE on failure. * @return resource|bool Return affined image resource on success or FALSE on failure.


/** /**
* Concat two matrices (as in doing many ops in one go) * Concat two matrices (as in doing many ops in one go)
* @link https://secure.php.net/manual/en/function.imageaffinematrixconcat.php
* @link https://www.php.net/manual/en/function.imageaffinematrixconcat.php
* @param array $m1 <p>Array with keys 0 to 5.</p> * @param array $m1 <p>Array with keys 0 to 5.</p>
* @param array $m2 <p>Array with keys 0 to 5.</p> * @param array $m2 <p>Array with keys 0 to 5.</p>
* @return array|bool Array with keys 0 to 5 and float values or <b>FALSE</b> on failure. * @return array|bool Array with keys 0 to 5 and float values or <b>FALSE</b> on failure.


/** /**
* Return an image containing the affine tramsformed src image, using an optional clipping area * Return an image containing the affine tramsformed src image, using an optional clipping area
* @link https://secure.php.net/manual/en/function.imageaffinematrixget.php
* @link https://www.php.net/manual/en/function.imageaffinematrixget.php
* @param int $type <p> One of <b>IMG_AFFINE_*</b> constants. * @param int $type <p> One of <b>IMG_AFFINE_*</b> constants.
* @param mixed $options [optional] * @param mixed $options [optional]
* @return array|bool Array with keys 0 to 5 and float values or <b>FALSE</b> on failure. * @return array|bool Array with keys 0 to 5 and float values or <b>FALSE</b> on failure.


/** /**
* Crop an image using the given coordinates and size, x, y, width and height * Crop an image using the given coordinates and size, x, y, width and height
* @link https://secure.php.net/manual/en/function.imagecrop.php
* @link https://www.php.net/manual/en/function.imagecrop.php
* @param resource $image <p> * @param resource $image <p>
* An image resource, returned by one of the image creation functions, such as {@link https://secure.php.net/manual/en/function.imagecreatetruecolor.php imagecreatetruecolor()}.
* An image resource, returned by one of the image creation functions, such as {@link https://www.php.net/manual/en/function.imagecreatetruecolor.php imagecreatetruecolor()}.
* </p> * </p>
* @param array $rect <p>Array with keys "x", "y", "width" and "height".</p> * @param array $rect <p>Array with keys "x", "y", "width" and "height".</p>
* @return resource|bool Return cropped image resource on success or FALSE on failure. * @return resource|bool Return cropped image resource on success or FALSE on failure.


/** /**
* Crop an image automatically using one of the available modes * Crop an image automatically using one of the available modes
* @link https://secure.php.net/manual/en/function.imagecropauto.php
* @link https://www.php.net/manual/en/function.imagecropauto.php
* @param resource $image <p> * @param resource $image <p>
* An image resource, returned by one of the image creation functions, such as {@link https://secure.php.net/manual/en/function.imagecreatetruecolor.php imagecreatetruecolor()}.
* An image resource, returned by one of the image creation functions, such as {@link https://www.php.net/manual/en/function.imagecreatetruecolor.php imagecreatetruecolor()}.
* </p> * </p>
* @param int $mode [optional] <p> * @param int $mode [optional] <p>
* One of <b>IMG_CROP_*</b> constants. * One of <b>IMG_CROP_*</b> constants.


/** /**
* Flips an image using a given mode * Flips an image using a given mode
* @link https://secure.php.net/manual/en/function.imageflip.php
* @link https://www.php.net/manual/en/function.imageflip.php
* @param resource $image <p> * @param resource $image <p>
* An image resource, returned by one of the image creation functions, such as {@link https://secure.php.net/manual/en/function.imagecreatetruecolor.php imagecreatetruecolor()}.
* An image resource, returned by one of the image creation functions, such as {@link https://www.php.net/manual/en/function.imagecreatetruecolor.php imagecreatetruecolor()}.
* </p> * </p>
* @param int $mode <p> * @param int $mode <p>
* Flip mode, this can be one of the <b>IMG_FLIP_*</b> constants: * Flip mode, this can be one of the <b>IMG_FLIP_*</b> constants:


/** /**
* Converts a palette based image to true color * Converts a palette based image to true color
* @link https://secure.php.net/manual/en/function.imagepalettetotruecolor.php
* @link https://www.php.net/manual/en/function.imagepalettetotruecolor.php
* @param resource $image <p> * @param resource $image <p>
* An image resource, returnd by one of the image creation functions, such as {@link https://secure.php.net/manual/en/function.imagecreatetruecolor.php imagecreatetruecolor()}.
* An image resource, returnd by one of the image creation functions, such as {@link https://www.php.net/manual/en/function.imagecreatetruecolor.php imagecreatetruecolor()}.
* </p> * </p>
* @return bool Returns <b>TRUE</b> if the convertion was complete, or if the source image already is a true color image, otherwise <b>FALSE</b> is returned. * @return bool Returns <b>TRUE</b> if the convertion was complete, or if the source image already is a true color image, otherwise <b>FALSE</b> is returned.
* @since 5.5 * @since 5.5
/** /**
* @since 5.5 * @since 5.5
* Scale an image using the given new width and height * Scale an image using the given new width and height
* @link https://secure.php.net/manual/en/function.imagescale.php
* @link https://www.php.net/manual/en/function.imagescale.php
* @param resource $image <p> * @param resource $image <p>
* An image resource, returnd by one of the image creation functions, such as {@link https://secure.php.net/manual/en/function.imagecreatetruecolor.php imagecreatetruecolor()}.
* An image resource, returnd by one of the image creation functions, such as {@link https://www.php.net/manual/en/function.imagecreatetruecolor.php imagecreatetruecolor()}.
* </p> * </p>
* @param int $new_width * @param int $new_width
* @param int $new_height [optional] * @param int $new_height [optional]


/** /**
* Set the interpolation method * Set the interpolation method
* @link https://secure.php.net/manual/en/function.imagesetinterpolation.php
* @link https://www.php.net/manual/en/function.imagesetinterpolation.php
* @param resource $image <p> * @param resource $image <p>
* An image resource, returned by one of the image creation functions, such as {@link https://secure.php.net/manual/en/function.imagecreatetruecolor.php imagecreatetruecolor()}.
* An image resource, returned by one of the image creation functions, such as {@link https://www.php.net/manual/en/function.imagecreatetruecolor.php imagecreatetruecolor()}.
* </p> * </p>
* @param int $method <p> * @param int $method <p>
* The interpolation method, which can be one of the following: * The interpolation method, which can be one of the following:

+ 1
- 1
build/stubs/imagick.php View File

public function getImageFormat () {} public function getImageFormat () {}


/** /**
* @link https://secure.php.net/manual/en/imagick.getimagemimetype.php
* @link https://www.php.net/manual/en/imagick.getimagemimetype.php
* @return string Returns the image mime-type. * @return string Returns the image mime-type.
*/ */
public function getImageMimeType () {} public function getImageMimeType () {}

+ 313
- 313
build/stubs/intl.php
File diff suppressed because it is too large
View File


+ 1
- 1
build/stubs/memcached.php View File

/** /**
* (PECL memcached &gt;= 2.0.0)<br/> * (PECL memcached &gt;= 2.0.0)<br/>
* Set the credentials to use for authentication * Set the credentials to use for authentication
* @link https://secure.php.net/manual/en/memcached.setsaslauthdata.php
* @link https://www.php.net/manual/en/memcached.setsaslauthdata.php
* @param string $username <p> * @param string $username <p>
* The username to use for authentication. * The username to use for authentication.
* </p> * </p>

+ 5
- 5
config/config.sample.php View File

], ],


/** /**
* This uses PHP.date formatting; see http://php.net/manual/en/function.date.php
* This uses PHP.date formatting; see https://www.php.net/manual/en/function.date.php
* *
* Defaults to ISO 8601 ``2005-08-15T15:52:01+00:00`` - see \DateTime::ATOM * Defaults to ISO 8601 ``2005-08-15T15:52:01+00:00`` - see \DateTime::ATOM
* (https://secure.php.net/manual/en/class.datetime.php#datetime.constants.atom)
* (https://www.php.net/manual/en/class.datetime.php#datetime.constants.atom)
*/ */
'logdateformat' => 'F d, Y H:i:s', 'logdateformat' => 'F d, Y H:i:s',


/** /**
* The timezone for logfiles. You may change this; see * The timezone for logfiles. You may change this; see
* http://php.net/manual/en/timezones.php
* https://www.php.net/manual/en/timezones.php
* *
* Defaults to ``UTC`` * Defaults to ``UTC``
*/ */
*/ */
'memcached_servers' => [ 'memcached_servers' => [
// hostname, port and optional weight. Also see: // hostname, port and optional weight. Also see:
// http://www.php.net/manual/en/memcached.addservers.php
// http://www.php.net/manual/en/memcached.addserver.php
// https://www.php.net/manual/en/memcached.addservers.php
// https://www.php.net/manual/en/memcached.addserver.php
['localhost', 11211], ['localhost', 11211],
//array('other.host.local', 11211), //array('other.host.local', 11211),
], ],

+ 2
- 2
console.php View File

set_exception_handler('exceptionHandler'); set_exception_handler('exceptionHandler');


if (!function_exists('posix_getuid')) { if (!function_exists('posix_getuid')) {
echo "The posix extensions are required - see http://php.net/manual/en/book.posix.php" . PHP_EOL;
echo "The posix extensions are required - see https://www.php.net/manual/en/book.posix.php" . PHP_EOL;
exit(1); exit(1);
} }
$user = posix_getpwuid(posix_getuid()); $user = posix_getpwuid(posix_getuid());
} }


if (!function_exists('pcntl_signal') && !in_array('--no-warnings', $argv)) { if (!function_exists('pcntl_signal') && !in_array('--no-warnings', $argv)) {
echo "The process control (PCNTL) extensions are required in case you want to interrupt long running commands - see http://php.net/manual/en/book.pcntl.php" . PHP_EOL;
echo "The process control (PCNTL) extensions are required in case you want to interrupt long running commands - see https://www.php.net/manual/en/book.pcntl.php" . PHP_EOL;
} }


$application = new Application( $application = new Application(

+ 1
- 1
cron.php View File



// the cron job must be executed with the right user // the cron job must be executed with the right user
if (!function_exists('posix_getuid')) { if (!function_exists('posix_getuid')) {
echo "The posix extensions are required - see http://php.net/manual/en/book.posix.php" . PHP_EOL;
echo "The posix extensions are required - see https://www.php.net/manual/en/book.posix.php" . PHP_EOL;
exit(1); exit(1);
} }



+ 1
- 1
lib/private/AppFramework/Http/Request.php View File

* @param IConfig $config * @param IConfig $config
* @param CsrfTokenManager|null $csrfTokenManager * @param CsrfTokenManager|null $csrfTokenManager
* @param string $stream * @param string $stream
* @see http://www.php.net/manual/en/reserved.variables.php
* @see https://www.php.net/manual/en/reserved.variables.php
*/ */
public function __construct(array $vars= [], public function __construct(array $vars= [],
ISecureRandom $secureRandom = null, ISecureRandom $secureRandom = null,

+ 1
- 1
lib/private/DB/QueryBuilder/QueryBuilder.php View File

* placeholder for you. An automatic placeholder will be of the name * placeholder for you. An automatic placeholder will be of the name
* ':dcValue1', ':dcValue2' etc. * ':dcValue1', ':dcValue2' etc.
* *
* For more information see {@link http://php.net/pdostatement-bindparam}
* For more information see {@link https://www.php.net/pdostatement-bindparam}
* *
* Example: * Example:
* <code> * <code>

+ 19
- 19
lib/private/Files/Storage/Wrapper/Encoding.php View File

} }


/** /**
* see http://php.net/manual/en/function.mkdir.php
* see https://www.php.net/manual/en/function.mkdir.php
* *
* @param string $path * @param string $path
* @return bool * @return bool
} }


/** /**
* see http://php.net/manual/en/function.rmdir.php
* see https://www.php.net/manual/en/function.rmdir.php
* *
* @param string $path * @param string $path
* @return bool * @return bool
} }


/** /**
* see http://php.net/manual/en/function.opendir.php
* see https://www.php.net/manual/en/function.opendir.php
* *
* @param string $path * @param string $path
* @return resource * @return resource
} }


/** /**
* see http://php.net/manual/en/function.is_dir.php
* see https://www.php.net/manual/en/function.is_dir.php
* *
* @param string $path * @param string $path
* @return bool * @return bool
} }


/** /**
* see http://php.net/manual/en/function.is_file.php
* see https://www.php.net/manual/en/function.is_file.php
* *
* @param string $path * @param string $path
* @return bool * @return bool
} }


/** /**
* see http://php.net/manual/en/function.stat.php
* see https://www.php.net/manual/en/function.stat.php
* only the following keys are required in the result: size and mtime * only the following keys are required in the result: size and mtime
* *
* @param string $path * @param string $path
} }


/** /**
* see http://php.net/manual/en/function.filetype.php
* see https://www.php.net/manual/en/function.filetype.php
* *
* @param string $path * @param string $path
* @return bool * @return bool
} }


/** /**
* see http://php.net/manual/en/function.filesize.php
* see https://www.php.net/manual/en/function.filesize.php
* The result for filesize when called on a folder is required to be 0 * The result for filesize when called on a folder is required to be 0
* *
* @param string $path * @param string $path
} }


/** /**
* see http://php.net/manual/en/function.file_exists.php
* see https://www.php.net/manual/en/function.file_exists.php
* *
* @param string $path * @param string $path
* @return bool * @return bool
} }


/** /**
* see http://php.net/manual/en/function.filemtime.php
* see https://www.php.net/manual/en/function.filemtime.php
* *
* @param string $path * @param string $path
* @return int * @return int
} }


/** /**
* see http://php.net/manual/en/function.file_get_contents.php
* see https://www.php.net/manual/en/function.file_get_contents.php
* *
* @param string $path * @param string $path
* @return string * @return string
} }


/** /**
* see http://php.net/manual/en/function.file_put_contents.php
* see https://www.php.net/manual/en/function.file_put_contents.php
* *
* @param string $path * @param string $path
* @param string $data * @param string $data
} }


/** /**
* see http://php.net/manual/en/function.unlink.php
* see https://www.php.net/manual/en/function.unlink.php
* *
* @param string $path * @param string $path
* @return bool * @return bool
} }


/** /**
* see http://php.net/manual/en/function.rename.php
* see https://www.php.net/manual/en/function.rename.php
* *
* @param string $path1 * @param string $path1
* @param string $path2 * @param string $path2
} }


/** /**
* see http://php.net/manual/en/function.copy.php
* see https://www.php.net/manual/en/function.copy.php
* *
* @param string $path1 * @param string $path1
* @param string $path2 * @param string $path2
} }


/** /**
* see http://php.net/manual/en/function.fopen.php
* see https://www.php.net/manual/en/function.fopen.php
* *
* @param string $path * @param string $path
* @param string $mode * @param string $mode
} }


/** /**
* see http://php.net/manual/en/function.hash.php
* see https://www.php.net/manual/en/function.hash.php
* *
* @param string $type * @param string $type
* @param string $path * @param string $path
} }


/** /**
* see http://php.net/manual/en/function.free_space.php
* see https://www.php.net/manual/en/function.free_space.php
* *
* @param string $path * @param string $path
* @return int * @return int
} }


/** /**
* see http://php.net/manual/en/function.touch.php
* see https://www.php.net/manual/en/function.touch.php
* If the backend does not support the operation, false should be returned * If the backend does not support the operation, false should be returned
* *
* @param string $path * @param string $path

+ 10
- 10
lib/private/Files/Storage/Wrapper/Encryption.php View File

} }


/** /**
* see http://php.net/manual/en/function.filesize.php
* see https://www.php.net/manual/en/function.filesize.php
* The result for filesize when called on a folder is required to be 0 * The result for filesize when called on a folder is required to be 0
* *
* @param string $path * @param string $path
} }


/** /**
* see http://php.net/manual/en/function.file_get_contents.php
* see https://www.php.net/manual/en/function.file_get_contents.php
* *
* @param string $path * @param string $path
* @return string * @return string
} }


/** /**
* see http://php.net/manual/en/function.file_put_contents.php
* see https://www.php.net/manual/en/function.file_put_contents.php
* *
* @param string $path * @param string $path
* @param string $data * @param string $data
} }


/** /**
* see http://php.net/manual/en/function.unlink.php
* see https://www.php.net/manual/en/function.unlink.php
* *
* @param string $path * @param string $path
* @return bool * @return bool
} }


/** /**
* see http://php.net/manual/en/function.rename.php
* see https://www.php.net/manual/en/function.rename.php
* *
* @param string $path1 * @param string $path1
* @param string $path2 * @param string $path2
} }


/** /**
* see http://php.net/manual/en/function.rmdir.php
* see https://www.php.net/manual/en/function.rmdir.php
* *
* @param string $path * @param string $path
* @return bool * @return bool
} }


/** /**
* see http://php.net/manual/en/function.copy.php
* see https://www.php.net/manual/en/function.copy.php
* *
* @param string $path1 * @param string $path1
* @param string $path2 * @param string $path2
} }


/** /**
* see http://php.net/manual/en/function.fopen.php
* see https://www.php.net/manual/en/function.fopen.php
* *
* @param string $path * @param string $path
* @param string $mode * @param string $mode
} }


/** /**
* see http://php.net/manual/en/function.stat.php
* see https://www.php.net/manual/en/function.stat.php
* only the following keys are required in the result: size and mtime * only the following keys are required in the result: size and mtime
* *
* @param string $path * @param string $path
} }


/** /**
* see http://php.net/manual/en/function.hash.php
* see https://www.php.net/manual/en/function.hash.php
* *
* @param string $type * @param string $type
* @param string $path * @param string $path

+ 19
- 19
lib/private/Files/Storage/Wrapper/Jail.php View File

} }


/** /**
* see http://php.net/manual/en/function.mkdir.php
* see https://www.php.net/manual/en/function.mkdir.php
* *
* @param string $path * @param string $path
* @return bool * @return bool
} }


/** /**
* see http://php.net/manual/en/function.rmdir.php
* see https://www.php.net/manual/en/function.rmdir.php
* *
* @param string $path * @param string $path
* @return bool * @return bool
} }


/** /**
* see http://php.net/manual/en/function.opendir.php
* see https://www.php.net/manual/en/function.opendir.php
* *
* @param string $path * @param string $path
* @return resource * @return resource
} }


/** /**
* see http://php.net/manual/en/function.is_dir.php
* see https://www.php.net/manual/en/function.is_dir.php
* *
* @param string $path * @param string $path
* @return bool * @return bool
} }


/** /**
* see http://php.net/manual/en/function.is_file.php
* see https://www.php.net/manual/en/function.is_file.php
* *
* @param string $path * @param string $path
* @return bool * @return bool
} }


/** /**
* see http://php.net/manual/en/function.stat.php
* see https://www.php.net/manual/en/function.stat.php
* only the following keys are required in the result: size and mtime * only the following keys are required in the result: size and mtime
* *
* @param string $path * @param string $path
} }


/** /**
* see http://php.net/manual/en/function.filetype.php
* see https://www.php.net/manual/en/function.filetype.php
* *
* @param string $path * @param string $path
* @return bool * @return bool
} }


/** /**
* see http://php.net/manual/en/function.filesize.php
* see https://www.php.net/manual/en/function.filesize.php
* The result for filesize when called on a folder is required to be 0 * The result for filesize when called on a folder is required to be 0
* *
* @param string $path * @param string $path
} }


/** /**
* see http://php.net/manual/en/function.file_exists.php
* see https://www.php.net/manual/en/function.file_exists.php
* *
* @param string $path * @param string $path
* @return bool * @return bool
} }


/** /**
* see http://php.net/manual/en/function.filemtime.php
* see https://www.php.net/manual/en/function.filemtime.php
* *
* @param string $path * @param string $path
* @return int * @return int
} }


/** /**
* see http://php.net/manual/en/function.file_get_contents.php
* see https://www.php.net/manual/en/function.file_get_contents.php
* *
* @param string $path * @param string $path
* @return string * @return string
} }


/** /**
* see http://php.net/manual/en/function.file_put_contents.php
* see https://www.php.net/manual/en/function.file_put_contents.php
* *
* @param string $path * @param string $path
* @param string $data * @param string $data
} }


/** /**
* see http://php.net/manual/en/function.unlink.php
* see https://www.php.net/manual/en/function.unlink.php
* *
* @param string $path * @param string $path
* @return bool * @return bool
} }


/** /**
* see http://php.net/manual/en/function.rename.php
* see https://www.php.net/manual/en/function.rename.php
* *
* @param string $path1 * @param string $path1
* @param string $path2 * @param string $path2
} }


/** /**
* see http://php.net/manual/en/function.copy.php
* see https://www.php.net/manual/en/function.copy.php
* *
* @param string $path1 * @param string $path1
* @param string $path2 * @param string $path2
} }


/** /**
* see http://php.net/manual/en/function.fopen.php
* see https://www.php.net/manual/en/function.fopen.php
* *
* @param string $path * @param string $path
* @param string $mode * @param string $mode
} }


/** /**
* see http://php.net/manual/en/function.hash.php
* see https://www.php.net/manual/en/function.hash.php
* *
* @param string $type * @param string $type
* @param string $path * @param string $path
} }


/** /**
* see http://php.net/manual/en/function.free_space.php
* see https://www.php.net/manual/en/function.free_space.php
* *
* @param string $path * @param string $path
* @return int * @return int
} }


/** /**
* see http://php.net/manual/en/function.touch.php
* see https://www.php.net/manual/en/function.touch.php
* If the backend does not support the operation, false should be returned * If the backend does not support the operation, false should be returned
* *
* @param string $path * @param string $path

+ 3
- 3
lib/private/Files/Storage/Wrapper/Quota.php View File

} }


/** /**
* see http://php.net/manual/en/function.file_put_contents.php
* see https://www.php.net/manual/en/function.file_put_contents.php
* *
* @param string $path * @param string $path
* @param string $data * @param string $data
} }


/** /**
* see http://php.net/manual/en/function.copy.php
* see https://www.php.net/manual/en/function.copy.php
* *
* @param string $source * @param string $source
* @param string $target * @param string $target
} }


/** /**
* see http://php.net/manual/en/function.fopen.php
* see https://www.php.net/manual/en/function.fopen.php
* *
* @param string $path * @param string $path
* @param string $mode * @param string $mode

+ 19
- 19
lib/private/Files/Storage/Wrapper/Wrapper.php View File

} }


/** /**
* see http://php.net/manual/en/function.mkdir.php
* see https://www.php.net/manual/en/function.mkdir.php
* *
* @param string $path * @param string $path
* @return bool * @return bool
} }


/** /**
* see http://php.net/manual/en/function.rmdir.php
* see https://www.php.net/manual/en/function.rmdir.php
* *
* @param string $path * @param string $path
* @return bool * @return bool
} }


/** /**
* see http://php.net/manual/en/function.opendir.php
* see https://www.php.net/manual/en/function.opendir.php
* *
* @param string $path * @param string $path
* @return resource * @return resource
} }


/** /**
* see http://php.net/manual/en/function.is_dir.php
* see https://www.php.net/manual/en/function.is_dir.php
* *
* @param string $path * @param string $path
* @return bool * @return bool
} }


/** /**
* see http://php.net/manual/en/function.is_file.php
* see https://www.php.net/manual/en/function.is_file.php
* *
* @param string $path * @param string $path
* @return bool * @return bool
} }


/** /**
* see http://php.net/manual/en/function.stat.php
* see https://www.php.net/manual/en/function.stat.php
* only the following keys are required in the result: size and mtime * only the following keys are required in the result: size and mtime
* *
* @param string $path * @param string $path
} }


/** /**
* see http://php.net/manual/en/function.filetype.php
* see https://www.php.net/manual/en/function.filetype.php
* *
* @param string $path * @param string $path
* @return bool * @return bool
} }


/** /**
* see http://php.net/manual/en/function.filesize.php
* see https://www.php.net/manual/en/function.filesize.php
* The result for filesize when called on a folder is required to be 0 * The result for filesize when called on a folder is required to be 0
* *
* @param string $path * @param string $path
} }


/** /**
* see http://php.net/manual/en/function.file_exists.php
* see https://www.php.net/manual/en/function.file_exists.php
* *
* @param string $path * @param string $path
* @return bool * @return bool
} }


/** /**
* see http://php.net/manual/en/function.filemtime.php
* see https://www.php.net/manual/en/function.filemtime.php
* *
* @param string $path * @param string $path
* @return int * @return int
} }


/** /**
* see http://php.net/manual/en/function.file_get_contents.php
* see https://www.php.net/manual/en/function.file_get_contents.php
* *
* @param string $path * @param string $path
* @return string * @return string
} }


/** /**
* see http://php.net/manual/en/function.file_put_contents.php
* see https://www.php.net/manual/en/function.file_put_contents.php
* *
* @param string $path * @param string $path
* @param string $data * @param string $data
} }


/** /**
* see http://php.net/manual/en/function.unlink.php
* see https://www.php.net/manual/en/function.unlink.php
* *
* @param string $path * @param string $path
* @return bool * @return bool
} }


/** /**
* see http://php.net/manual/en/function.rename.php
* see https://www.php.net/manual/en/function.rename.php
* *
* @param string $path1 * @param string $path1
* @param string $path2 * @param string $path2
} }


/** /**
* see http://php.net/manual/en/function.copy.php
* see https://www.php.net/manual/en/function.copy.php
* *
* @param string $path1 * @param string $path1
* @param string $path2 * @param string $path2
} }


/** /**
* see http://php.net/manual/en/function.fopen.php
* see https://www.php.net/manual/en/function.fopen.php
* *
* @param string $path * @param string $path
* @param string $mode * @param string $mode
} }


/** /**
* see http://php.net/manual/en/function.hash.php
* see https://www.php.net/manual/en/function.hash.php
* *
* @param string $type * @param string $type
* @param string $path * @param string $path
} }


/** /**
* see http://php.net/manual/en/function.free_space.php
* see https://www.php.net/manual/en/function.free_space.php
* *
* @param string $path * @param string $path
* @return int * @return int
} }


/** /**
* see http://php.net/manual/en/function.touch.php
* see https://www.php.net/manual/en/function.touch.php
* If the backend does not support the operation, false should be returned * If the backend does not support the operation, false should be returned
* *
* @param string $path * @param string $path

+ 1
- 1
lib/private/Preview/HEIC.php View File

// A bigger image calls for some better resizing algorithm // A bigger image calls for some better resizing algorithm
// According to http://www.imagemagick.org/Usage/filter/#lanczos // According to http://www.imagemagick.org/Usage/filter/#lanczos
// the catrom filter is almost identical to Lanczos2, but according // the catrom filter is almost identical to Lanczos2, but according
// to http://php.net/manual/en/imagick.resizeimage.php it is
// to https://www.php.net/manual/en/imagick.resizeimage.php it is
// significantly faster // significantly faster
$bp->resizeImage($maxX, $maxY, \Imagick::FILTER_CATROM, 1, true); $bp->resizeImage($maxX, $maxY, \Imagick::FILTER_CATROM, 1, true);
} }

+ 1
- 1
lib/private/Share/SearchResultSorter.php View File

/** /**
* User and Group names matching the search term at the beginning shall appear * User and Group names matching the search term at the beginning shall appear
* on top of the share dialog. Following entries in alphabetical order. * on top of the share dialog. Following entries in alphabetical order.
* Callback function for usort. http://php.net/usort
* Callback function for usort. https://www.php.net/usort
*/ */
public function sort($a, $b) { public function sort($a, $b) {
if (!isset($a[$this->key]) || !isset($b[$this->key])) { if (!isset($a[$this->key]) || !isset($b[$this->key])) {

+ 3
- 3
lib/private/legacy/OC_Helper.php View File

* *
* Makes 2kB to 2048. * Makes 2kB to 2048.
* *
* Inspired by: http://www.php.net/manual/en/function.filesize.php#92418
* Inspired by: https://www.php.net/manual/en/function.filesize.php#92418
*/ */
public static function computerFileSize($str) { public static function computerFileSize($str) {
$str = strtolower($str); $str = strtolower($str);
* @return array * @return array
* *
* Returns an array with all keys from input lowercased or uppercased. Numbered indices are left as is. * Returns an array with all keys from input lowercased or uppercased. Numbered indices are left as is.
* based on http://www.php.net/manual/en/function.array-change-key-case.php#107715
* based on https://www.php.net/manual/en/function.array-change-key-case.php#107715
* *
*/ */
public static function mb_array_change_key_case($input, $case = MB_CASE_LOWER, $encoding = 'UTF-8') { public static function mb_array_change_key_case($input, $case = MB_CASE_LOWER, $encoding = 'UTF-8') {
* *
* performs a search in a nested array * performs a search in a nested array
* *
* taken from http://www.php.net/manual/en/function.array-search.php#97645
* taken from https://www.php.net/manual/en/function.array-search.php#97645
*/ */
public static function recursiveArraySearch($haystack, $needle, $index = null) { public static function recursiveArraySearch($haystack, $needle, $index = null) {
$aIt = new RecursiveArrayIterator($haystack); $aIt = new RecursiveArrayIterator($haystack);

+ 1
- 1
lib/private/legacy/OC_Image.php View File

/** /**
* Workaround if exif_imagetype does not exist * Workaround if exif_imagetype does not exist
* *
* @link http://www.php.net/manual/en/function.exif-imagetype.php#80383
* @link https://www.php.net/manual/en/function.exif-imagetype.php#80383
* @param string $fileName * @param string $fileName
* @return string|boolean * @return string|boolean
*/ */

+ 1
- 1
lib/public/DB/QueryBuilder/IQueryBuilder.php View File

* placeholder for you. An automatic placeholder will be of the name * placeholder for you. An automatic placeholder will be of the name
* ':dcValue1', ':dcValue2' etc. * ':dcValue1', ':dcValue2' etc.
* *
* For more information see {@link http://php.net/pdostatement-bindparam}
* For more information see {@link https://www.php.net/pdostatement-bindparam}
* *
* Example: * Example:
* <code> * <code>

+ 19
- 19
lib/public/Files/Storage.php View File

public function getId(); public function getId();


/** /**
* see http://php.net/manual/en/function.mkdir.php
* see https://www.php.net/manual/en/function.mkdir.php
* implementations need to implement a recursive mkdir * implementations need to implement a recursive mkdir
* *
* @param string $path * @param string $path
public function mkdir($path); public function mkdir($path);


/** /**
* see http://php.net/manual/en/function.rmdir.php
* see https://www.php.net/manual/en/function.rmdir.php
* *
* @param string $path * @param string $path
* @return bool * @return bool
public function rmdir($path); public function rmdir($path);


/** /**
* see http://php.net/manual/en/function.opendir.php
* see https://www.php.net/manual/en/function.opendir.php
* *
* @param string $path * @param string $path
* @return resource|false * @return resource|false
public function opendir($path); public function opendir($path);


/** /**
* see http://php.net/manual/en/function.is-dir.php
* see https://www.php.net/manual/en/function.is-dir.php
* *
* @param string $path * @param string $path
* @return bool * @return bool
public function is_dir($path); public function is_dir($path);


/** /**
* see http://php.net/manual/en/function.is-file.php
* see https://www.php.net/manual/en/function.is-file.php
* *
* @param string $path * @param string $path
* @return bool * @return bool
public function is_file($path); public function is_file($path);


/** /**
* see http://php.net/manual/en/function.stat.php
* see https://www.php.net/manual/en/function.stat.php
* only the following keys are required in the result: size and mtime * only the following keys are required in the result: size and mtime
* *
* @param string $path * @param string $path
public function stat($path); public function stat($path);


/** /**
* see http://php.net/manual/en/function.filetype.php
* see https://www.php.net/manual/en/function.filetype.php
* *
* @param string $path * @param string $path
* @return string|false * @return string|false
public function filetype($path); public function filetype($path);


/** /**
* see http://php.net/manual/en/function.filesize.php
* see https://www.php.net/manual/en/function.filesize.php
* The result for filesize when called on a folder is required to be 0 * The result for filesize when called on a folder is required to be 0
* *
* @param string $path * @param string $path
public function getPermissions($path); public function getPermissions($path);


/** /**
* see http://php.net/manual/en/function.file_exists.php
* see https://www.php.net/manual/en/function.file_exists.php
* *
* @param string $path * @param string $path
* @return bool * @return bool
public function file_exists($path); public function file_exists($path);


/** /**
* see http://php.net/manual/en/function.filemtime.php
* see https://www.php.net/manual/en/function.filemtime.php
* *
* @param string $path * @param string $path
* @return int|false * @return int|false
public function filemtime($path); public function filemtime($path);


/** /**
* see http://php.net/manual/en/function.file_get_contents.php
* see https://www.php.net/manual/en/function.file_get_contents.php
* *
* @param string $path * @param string $path
* @return string|false * @return string|false
public function file_get_contents($path); public function file_get_contents($path);


/** /**
* see http://php.net/manual/en/function.file_put_contents.php
* see https://www.php.net/manual/en/function.file_put_contents.php
* *
* @param string $path * @param string $path
* @param string $data * @param string $data
public function file_put_contents($path, $data); public function file_put_contents($path, $data);


/** /**
* see http://php.net/manual/en/function.unlink.php
* see https://www.php.net/manual/en/function.unlink.php
* *
* @param string $path * @param string $path
* @return bool * @return bool
public function unlink($path); public function unlink($path);


/** /**
* see http://php.net/manual/en/function.rename.php
* see https://www.php.net/manual/en/function.rename.php
* *
* @param string $path1 * @param string $path1
* @param string $path2 * @param string $path2
public function rename($path1, $path2); public function rename($path1, $path2);


/** /**
* see http://php.net/manual/en/function.copy.php
* see https://www.php.net/manual/en/function.copy.php
* *
* @param string $path1 * @param string $path1
* @param string $path2 * @param string $path2
public function copy($path1, $path2); public function copy($path1, $path2);


/** /**
* see http://php.net/manual/en/function.fopen.php
* see https://www.php.net/manual/en/function.fopen.php
* *
* @param string $path * @param string $path
* @param string $mode * @param string $mode
public function getMimeType($path); public function getMimeType($path);


/** /**
* see http://php.net/manual/en/function.hash-file.php
* see https://www.php.net/manual/en/function.hash-file.php
* *
* @param string $type * @param string $type
* @param string $path * @param string $path
public function hash($type, $path, $raw = false); public function hash($type, $path, $raw = false);


/** /**
* see http://php.net/manual/en/function.free_space.php
* see https://www.php.net/manual/en/function.free_space.php
* *
* @param string $path * @param string $path
* @return int|false * @return int|false
public function search($query); public function search($query);


/** /**
* see http://php.net/manual/en/function.touch.php
* see https://www.php.net/manual/en/function.touch.php
* If the backend does not support the operation, false should be returned * If the backend does not support the operation, false should be returned
* *
* @param string $path * @param string $path

+ 19
- 19
lib/public/Files/Storage/IStorage.php View File

public function getId(); public function getId();


/** /**
* see http://php.net/manual/en/function.mkdir.php
* see https://www.php.net/manual/en/function.mkdir.php
* implementations need to implement a recursive mkdir * implementations need to implement a recursive mkdir
* *
* @param string $path * @param string $path
public function mkdir($path); public function mkdir($path);


/** /**
* see http://php.net/manual/en/function.rmdir.php
* see https://www.php.net/manual/en/function.rmdir.php
* *
* @param string $path * @param string $path
* @return bool * @return bool
public function rmdir($path); public function rmdir($path);


/** /**
* see http://php.net/manual/en/function.opendir.php
* see https://www.php.net/manual/en/function.opendir.php
* *
* @param string $path * @param string $path
* @return resource|false * @return resource|false
public function opendir($path); public function opendir($path);


/** /**
* see http://php.net/manual/en/function.is-dir.php
* see https://www.php.net/manual/en/function.is-dir.php
* *
* @param string $path * @param string $path
* @return bool * @return bool
public function is_dir($path); public function is_dir($path);


/** /**
* see http://php.net/manual/en/function.is-file.php
* see https://www.php.net/manual/en/function.is-file.php
* *
* @param string $path * @param string $path
* @return bool * @return bool
public function is_file($path); public function is_file($path);


/** /**
* see http://php.net/manual/en/function.stat.php
* see https://www.php.net/manual/en/function.stat.php
* only the following keys are required in the result: size and mtime * only the following keys are required in the result: size and mtime
* *
* @param string $path * @param string $path
public function stat($path); public function stat($path);


/** /**
* see http://php.net/manual/en/function.filetype.php
* see https://www.php.net/manual/en/function.filetype.php
* *
* @param string $path * @param string $path
* @return string|false * @return string|false
public function filetype($path); public function filetype($path);


/** /**
* see http://php.net/manual/en/function.filesize.php
* see https://www.php.net/manual/en/function.filesize.php
* The result for filesize when called on a folder is required to be 0 * The result for filesize when called on a folder is required to be 0
* *
* @param string $path * @param string $path
public function getPermissions($path); public function getPermissions($path);


/** /**
* see http://php.net/manual/en/function.file_exists.php
* see https://www.php.net/manual/en/function.file_exists.php
* *
* @param string $path * @param string $path
* @return bool * @return bool
public function file_exists($path); public function file_exists($path);


/** /**
* see http://php.net/manual/en/function.filemtime.php
* see https://www.php.net/manual/en/function.filemtime.php
* *
* @param string $path * @param string $path
* @return int|false * @return int|false
public function filemtime($path); public function filemtime($path);


/** /**
* see http://php.net/manual/en/function.file_get_contents.php
* see https://www.php.net/manual/en/function.file_get_contents.php
* *
* @param string $path * @param string $path
* @return string|false * @return string|false
public function file_get_contents($path); public function file_get_contents($path);


/** /**
* see http://php.net/manual/en/function.file_put_contents.php
* see https://www.php.net/manual/en/function.file_put_contents.php
* *
* @param string $path * @param string $path
* @param string $data * @param string $data
public function file_put_contents($path, $data); public function file_put_contents($path, $data);


/** /**
* see http://php.net/manual/en/function.unlink.php
* see https://www.php.net/manual/en/function.unlink.php
* *
* @param string $path * @param string $path
* @return bool * @return bool
public function unlink($path); public function unlink($path);


/** /**
* see http://php.net/manual/en/function.rename.php
* see https://www.php.net/manual/en/function.rename.php
* *
* @param string $path1 * @param string $path1
* @param string $path2 * @param string $path2
public function rename($path1, $path2); public function rename($path1, $path2);


/** /**
* see http://php.net/manual/en/function.copy.php
* see https://www.php.net/manual/en/function.copy.php
* *
* @param string $path1 * @param string $path1
* @param string $path2 * @param string $path2
public function copy($path1, $path2); public function copy($path1, $path2);


/** /**
* see http://php.net/manual/en/function.fopen.php
* see https://www.php.net/manual/en/function.fopen.php
* *
* @param string $path * @param string $path
* @param string $mode * @param string $mode
public function getMimeType($path); public function getMimeType($path);


/** /**
* see http://php.net/manual/en/function.hash-file.php
* see https://www.php.net/manual/en/function.hash-file.php
* *
* @param string $type * @param string $type
* @param string $path * @param string $path
public function hash($type, $path, $raw = false); public function hash($type, $path, $raw = false);


/** /**
* see http://php.net/manual/en/function.free_space.php
* see https://www.php.net/manual/en/function.free_space.php
* *
* @param string $path * @param string $path
* @return int|false * @return int|false
public function free_space($path); public function free_space($path);


/** /**
* see http://php.net/manual/en/function.touch.php
* see https://www.php.net/manual/en/function.touch.php
* If the backend does not support the operation, false should be returned * If the backend does not support the operation, false should be returned
* *
* @param string $path * @param string $path

+ 1
- 1
lib/public/Util.php View File

* @param string $str file size in a fancy format * @param string $str file size in a fancy format
* @return float a file size in bytes * @return float a file size in bytes
* *
* Inspired by: http://www.php.net/manual/en/function.filesize.php#92418
* Inspired by: https://www.php.net/manual/en/function.filesize.php#92418
* @since 4.0.0 * @since 4.0.0
*/ */
public static function computerFileSize($str) { public static function computerFileSize($str) {

Loading…
Cancel
Save