Elgg  Version master
Public Member Functions | Protected Member Functions | List of all members
Elgg\Upgrades\RemoveOrphanedThreadedComments Class Reference
Inheritance diagram for Elgg\Upgrades\RemoveOrphanedThreadedComments:
Elgg\Upgrade\AsynchronousUpgrade Elgg\Upgrade\Batch

Public Member Functions

 getVersion ()
 
 shouldBeSkipped ()
 
 needsIncrementOffset ()
 
 countItems ()
 
 run (Result $result, $offset)
 
- Public Member Functions inherited from Elgg\Upgrade\Batch
 __construct (protected?\ElggUpgrade $upgrade=null)
 Constructs a upgrade batch. More...
 
 getVersion ()
 Version of the upgrade. More...
 
 shouldBeSkipped ()
 Should this upgrade be skipped? More...
 
 needsIncrementOffset ()
 Should the run() method receive an offset representing all processed items? More...
 
 countItems ()
 The total number of items to process during the upgrade. More...
 
 run (Result $result, $offset)
 Runs upgrade on a single batch of items. More...
 
 getUpgrade ()
 Returns the related upgrade entity. More...
 

Protected Member Functions

 getOptions (array $options=[])
 Get the options to fetch orphaned comments. More...
 

Additional Inherited Members

- Public Attributes inherited from Elgg\Upgrade\Batch
const UNKNOWN_COUNT = -1
 countItems() should return this if it doesn't know how many items remain. More...
 

Detailed Description

Definition at line 10 of file RemoveOrphanedThreadedComments.php.

Member Function Documentation

Elgg\Upgrades\RemoveOrphanedThreadedComments::countItems ( )

Definition at line 36 of file RemoveOrphanedThreadedComments.php.

Elgg\Upgrades\RemoveOrphanedThreadedComments::getOptions ( array  $options = [])
protected

Get the options to fetch orphaned comments.

Parameters
array$optionsadditional options
Returns
array
See also
elgg_get_entities()

Definition at line 69 of file RemoveOrphanedThreadedComments.php.

Elgg\Upgrades\RemoveOrphanedThreadedComments::getVersion ( )

Definition at line 15 of file RemoveOrphanedThreadedComments.php.

Elgg\Upgrades\RemoveOrphanedThreadedComments::needsIncrementOffset ( )

Definition at line 29 of file RemoveOrphanedThreadedComments.php.

Elgg\Upgrades\RemoveOrphanedThreadedComments::run ( Result  $result,
  $offset 
)

Definition at line 43 of file RemoveOrphanedThreadedComments.php.

Elgg\Upgrades\RemoveOrphanedThreadedComments::shouldBeSkipped ( )

Definition at line 22 of file RemoveOrphanedThreadedComments.php.


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