lib/public/Share.php
Share
has 26 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Share extends \OC\Share\Constants {
/**
* Register a sharing backend class that implements OCP\Share_Backend for an item type
* @param string $itemType Item type
* @param string $class Backend class
Method shareItem
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public static function shareItem($itemType, $itemSource, $shareType, $shareWith, $permissions, $itemSourceName = null, \DateTime $expirationDate = null, $passwordChanged = null) {
Method getItemsSharedWithUser
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
$itemType,
$user,
$format = self::FORMAT_NONE,
$parameters = null,
$limit = -1,
Method getItemsShared
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
$itemType,
$format = self::FORMAT_NONE,
$parameters = null,
$limit = -1,
$includeCollections = false
Method setPermissions
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public static function setPermissions($itemType, $itemSource, $shareType, $shareWith, $permissions) {
Method getUsersItemShared
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public static function getUsersItemShared($itemType, $itemSource, $uidOwner, $includeCollections = false, $checkExpireDate = true) {
Method getItemSharedWith
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
$itemType,
$itemTarget,
$format = self::FORMAT_NONE,
$parameters = null,
$includeCollections = false
Method getItemShared
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
$itemType,
$itemSource,
$format = self::FORMAT_NONE,
$parameters = null,
$includeCollections = false
Method unshare
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public static function unshare($itemType, $itemSource, $shareType, $shareWith, $owner = null) {
Method setSendMailStatus
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public static function setSendMailStatus($itemType, $itemSource, $shareType, $recipient, $status) {
Method getItemSharedWithBySource
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
$itemType,
$itemSource,
$format = self::FORMAT_NONE,
$parameters = null,
$includeCollections = false
Method getUsersSharingFile
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public static function getUsersSharingFile($path, $ownerUser, $includeOwner = false, $returnUserPaths = false, $recursive = true) {
Method getItemsSharedWith
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
$itemType,
$format = self::FORMAT_NONE,
$parameters = null,
$limit = -1,
$includeCollections = false