Semantic MediaWiki and related extensions
Public Member Functions | List of all members
SMW\Elastic\Indexer\Attachment\ScopeMemoryLimiter Class Reference

Public Member Functions

 __construct ( $memoryLimit='1024M')
 
 getMemoryLimit ()
 
 execute (callable $callable)
 
 toInt ( $string='', $default=-1)
 

Detailed Description

It has been observed that when large files are processed the job runner can return with "Fatal error: Allowed memory size of ..." therefore temporary lift and scope the memory limitation!

GNU GPL v2+

Since
3.2
Author
mwjames

Constructor & Destructor Documentation

◆ __construct()

SMW\Elastic\Indexer\Attachment\ScopeMemoryLimiter::__construct (   $memoryLimit = '1024M')
Since
3.2
Parameters
string$url
Returns
string

Member Function Documentation

◆ execute()

SMW\Elastic\Indexer\Attachment\ScopeMemoryLimiter::execute ( callable  $callable)
Since
3.2
Parameters
callable$callable

◆ getMemoryLimit()

SMW\Elastic\Indexer\Attachment\ScopeMemoryLimiter::getMemoryLimit ( )
Since
3.2
Returns
int

◆ toInt()

SMW\Elastic\Indexer\Attachment\ScopeMemoryLimiter::toInt (   $string = '',
  $default = -1 
)
See also
wfShorthandToInteger

The documentation for this class was generated from the following file:

About | General disclaimer | Privacy policy