Quota

class OC\Files\Storage\Wrapper\Quota
Source:lib/private/Files/Storage/Wrapper/Quota.php#40
Parent:OC\Files\Storage\Wrapper\Wrapper

Properties

protected static property OC\Files\Storage\Wrapper\Quota::$quota
Source:lib/private/Files/Storage/Wrapper/Quota.php#45
Type:int
protected static property OC\Files\Storage\Wrapper\Quota::$sizeRoot
Source:lib/private/Files/Storage/Wrapper/Quota.php#50
Type:string

Methods

public OC\Files\Storage\Wrapper\Quota::__construct($parameters)
Source:

lib/private/Files/Storage/Wrapper/Quota.php#57

Parameters:
  • $parameters (array)
public OC\Files\Storage\Wrapper\Quota::getQuota()
Source:lib/private/Files/Storage/Wrapper/Quota.php#67
Returns:int quota value
protected OC\Files\Storage\Wrapper\Quota::getSize($path, $storage=null)
Source:

lib/private/Files/Storage/Wrapper/Quota.php#75

Parameters:
public OC\Files\Storage\Wrapper\Quota::free_space($path)
Get free space as limited by the quota
Source:

lib/private/Files/Storage/Wrapper/Quota.php#103

Parameters:
  • $path (string)
Returns:

int | bool

public OC\Files\Storage\Wrapper\Quota::file_put_contents($path, $data)
Source:

lib/private/Files/Storage/Wrapper/Quota.php#131

Parameters:
  • $path (string)
  • $data (mixed)
Returns:

int | bool

public OC\Files\Storage\Wrapper\Quota::copy($source, $target)
Source:

lib/private/Files/Storage/Wrapper/Quota.php#147

Parameters:
  • $source (string)
  • $target (string)
Returns:

bool

public OC\Files\Storage\Wrapper\Quota::fopen($path, $mode)
Source:

lib/private/Files/Storage/Wrapper/Quota.php#163

Parameters:
  • $path (string)
  • $mode (string)
Returns:

resource | bool

public OC\Files\Storage\Wrapper\Quota::copyFromStorage($sourceStorage, $sourceInternalPath, $targetInternalPath)
Source:

lib/private/Files/Storage/Wrapper/Quota.php#205

Parameters:
Returns:

bool

public OC\Files\Storage\Wrapper\Quota::moveFromStorage($sourceStorage, $sourceInternalPath, $targetInternalPath)
Source:

lib/private/Files/Storage/Wrapper/Quota.php#220

Parameters:
Returns:

bool

public OC\Files\Storage\Wrapper\Quota::mkdir($path)
Source:lib/private/Files/Storage/Wrapper/Quota.php#229
public OC\Files\Storage\Wrapper\Quota::touch($path, $mtime=null)
Source:lib/private/Files/Storage/Wrapper/Quota.php#238