Open Journal Systems  3.3.0
ReviewerInterestsDeletionTool Class Reference
Inheritance diagram for ReviewerInterestsDeletionTool:
CommandLineTool

Public Member Functions

 __construct ($argv=array())
 
 execute ()
 
 usage ()
 

Protected Member Functions

 _getOrphanVocabInterests ()
 

Additional Inherited Members

- Data Fields inherited from CommandLineTool
 $argv
 
 $scriptName
 

Detailed Description

CLI tool to remove user interests that are not referenced by any user accounts.

Definition at line 18 of file cleanReviewerInterests.php.

Constructor & Destructor Documentation

◆ __construct()

ReviewerInterestsDeletionTool::__construct (   $argv = array())

Constructor.

Parameters
$argvarray command-line arguments

Reimplemented from CommandLineTool.

Definition at line 24 of file cleanReviewerInterests.php.

References CommandLineTool\$argv, and usage().

Member Function Documentation

◆ _getOrphanVocabInterests()

ReviewerInterestsDeletionTool::_getOrphanVocabInterests ( )
protected

Returns user interests that are not referenced

Returns
array array of ControlledVocabEntry object

Definition at line 83 of file cleanReviewerInterests.php.

References DAORegistry\getDAO().

Referenced by execute().

◆ execute()

ReviewerInterestsDeletionTool::execute ( )

Remove user interests that are not referenced by any user account

Definition at line 48 of file cleanReviewerInterests.php.

References _getOrphanVocabInterests(), DAORegistry\getDAO(), and usage().

◆ usage()

ReviewerInterestsDeletionTool::usage ( )

Print command usage information.

Reimplemented from CommandLineTool.

Definition at line 38 of file cleanReviewerInterests.php.

Referenced by __construct(), and execute().


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