‪TYPO3CMS  11.5
TYPO3\CMS\Workspaces\Command\AutoPublishCommand Class Reference
Inheritance diagram for TYPO3\CMS\Workspaces\Command\AutoPublishCommand:

Public Member Functions

 __construct (WorkspaceService $workspaceService, ConnectionPool $connectionPool)
 
 configure ()
 

Protected Member Functions

int execute (InputInterface $input, OutputInterface $output)
 
Doctrine DBAL Result getAffectedWorkspacesToPublish ()
 

Private Attributes

WorkspaceService $workspaceService
 
ConnectionPool $connectionPool
 

Detailed Description

Call on the workspace logic to publish workspaces whose publication date is in the past

Definition at line 35 of file AutoPublishCommand.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Workspaces\Command\AutoPublishCommand::__construct ( WorkspaceService  $workspaceService,
ConnectionPool  $connectionPool 
)

Member Function Documentation

◆ configure()

TYPO3\CMS\Workspaces\Command\AutoPublishCommand::configure ( )

Configuring the command options

Definition at line 55 of file AutoPublishCommand.php.

◆ execute()

int TYPO3\CMS\Workspaces\Command\AutoPublishCommand::execute ( InputInterface  $input,
OutputInterface  $output 
)
protected

Executes the command to find versioned records

Parameters
InputInterface$input
OutputInterface$output
Returns
‪int

Definition at line 67 of file AutoPublishCommand.php.

References $output, TYPO3\CMS\Workspaces\Command\AutoPublishCommand\getAffectedWorkspacesToPublish(), and TYPO3\CMS\Core\Core\Bootstrap\initializeBackendAuthentication().

◆ getAffectedWorkspacesToPublish()

Doctrine DBAL Result TYPO3\CMS\Workspaces\Command\AutoPublishCommand::getAffectedWorkspacesToPublish ( )
protected

Fetch all sys_workspace records which could fit

Returns
‪\Doctrine\DBAL\Result

Definition at line 107 of file AutoPublishCommand.php.

References $GLOBALS, and TYPO3\CMS\Core\Database\Connection\PARAM_INT.

Referenced by TYPO3\CMS\Workspaces\Command\AutoPublishCommand\execute().

Member Data Documentation

◆ $connectionPool

ConnectionPool TYPO3\CMS\Workspaces\Command\AutoPublishCommand::$connectionPool
private

◆ $workspaceService

WorkspaceService TYPO3\CMS\Workspaces\Command\AutoPublishCommand::$workspaceService
private