![]() |
TYPO3
7.6
|
Protected Member Functions | |
loadModTsConfig ($page) | |
getSearchField (array $modTS) | |
getLinkTypes (array $modTS) | |
buildMail ($curPage, $pageList, array $markerArray, array $oldBrokenLink) | |
setCliArguments () | |
getLanguageService () | |
getDatabaseConnection () | |
Protected Attributes | |
$sleepTime | |
$sleepAfterFinish | |
$countInARun | |
$totalBrokenLink = 0 | |
$oldTotalBrokenLink = 0 | |
$templateMail | |
$configuration = array() | |
$isDifferentToLastRun | |
$emailTemplateFile | |
$depth | |
$page | |
$emailOnBrokenLinkOnly | |
$templateService | |
![]() | |
$scheduler | |
$taskUid | |
$disabled = false | |
$execution | |
$executionTime = 0 | |
$description = '' | |
$taskGroup | |
This class provides Scheduler plugin implementation
Definition at line 30 of file ValidatorTask.php.
|
protected |
Build the mail content
int | $curPage | Id of the current page |
string | $pageList | List of pages id |
array | $markerArray | Array of markers |
array | $oldBrokenLink | Marker array with the number of link found |
Definition at line 509 of file ValidatorTask.php.
References $GLOBALS, GeneralUtility\callUserFunction(), BackendUtility\getRecord(), and BackendUtility\getRecordTitle().
execute | ( | ) |
Function execute from the Scheduler
\InvalidArgumentException | if the email template file can not be read |
Definition at line 254 of file ValidatorTask.php.
References ValidatorTask\$page, GeneralUtility\getFileAbsFileName(), ValidatorTask\getLanguageService(), ValidatorTask\loadModTsConfig(), GeneralUtility\makeInstance(), AbstractTask\save(), ValidatorTask\setCliArguments(), and GeneralUtility\trimExplode().
getAdditionalInformation | ( | ) |
Returns the most important properties of the link validator task as a comma separated string that will be displayed in the scheduler module.
Definition at line 557 of file ValidatorTask.php.
References ValidatorTask\$depth, $lang, ValidatorTask\$page, ValidatorTask\getDepth(), ValidatorTask\getEmail(), ValidatorTask\getLanguageService(), ValidatorTask\getPage(), BackendUtility\getRecord(), and BackendUtility\getRecordTitle().
getConfiguration | ( | ) |
Get the value of the protected property configuration
Definition at line 232 of file ValidatorTask.php.
References ValidatorTask\$configuration.
|
protected |
getDepth | ( | ) |
Get the value of the protected property depth
Definition at line 190 of file ValidatorTask.php.
References ValidatorTask\$depth.
Referenced by ValidatorTask\getAdditionalInformation().
getEmail | ( | ) |
Get the value of the protected property email
Definition at line 127 of file ValidatorTask.php.
References ValidatorTask\$email.
Referenced by ValidatorTask\getAdditionalInformation().
getEmailOnBrokenLinkOnly | ( | ) |
Get the value of the protected property emailOnBrokenLinkOnly
Definition at line 148 of file ValidatorTask.php.
References ValidatorTask\$emailOnBrokenLinkOnly.
getEmailTemplateFile | ( | ) |
Get the value of the protected property emailTemplateFile
Definition at line 211 of file ValidatorTask.php.
References ValidatorTask\$emailTemplateFile.
|
protected |
Definition at line 605 of file ValidatorTask.php.
References $GLOBALS.
Referenced by ValidatorTask\execute(), ValidatorTask\getAdditionalInformation(), and ValidatorTask\loadModTsConfig().
|
protected |
Get the list of linkTypes to parse in modTSconfig
array | $modTS | mod.linkvalidator TSconfig array |
Definition at line 399 of file ValidatorTask.php.
References $GLOBALS, and GeneralUtility\trimExplode().
getPage | ( | ) |
Get the value of the protected property page
Definition at line 169 of file ValidatorTask.php.
References ValidatorTask\$page.
Referenced by ValidatorTask\getAdditionalInformation().
|
protected |
Get the list of fields to parse in modTSconfig
array | $modTS | mod.linkvalidator TSconfig array |
Definition at line 381 of file ValidatorTask.php.
References GeneralUtility\trimExplode().
|
protected |
Get the linkvalidator modTSconfig for a page
int | $page | Uid of the page |
\Exception |
Definition at line 348 of file ValidatorTask.php.
References ValidatorTask\$page, GeneralUtility\deprecationLog(), ValidatorTask\getLanguageService(), BackendUtility\getModTSconfig(), GeneralUtility\makeInstance(), and ArrayUtility\mergeRecursiveWithOverrule().
Referenced by ValidatorTask\execute().
|
protected |
Simulate cli call with setting the required options to the $_SERVER['argv']
Definition at line 586 of file ValidatorTask.php.
Referenced by ValidatorTask\execute().
setConfiguration | ( | $configuration | ) |
Set the value of the private property configuration
array | $configuration | specific TSconfig for this task |
Definition at line 243 of file ValidatorTask.php.
References ValidatorTask\$configuration.
setDepth | ( | $depth | ) |
Set the value of the private property depth
int | $depth | Level of pages the task should check |
Definition at line 201 of file ValidatorTask.php.
References ValidatorTask\$depth.
setEmail | ( | ) |
Set the value of the private property email.
string | Email address to which an email report is sent |
Definition at line 138 of file ValidatorTask.php.
References ValidatorTask\$email.
setEmailOnBrokenLinkOnly | ( | $emailOnBrokenLinkOnly | ) |
Set the value of the private property emailOnBrokenLinkOnly
bool | $emailOnBrokenLinkOnly | Only send an email, if new broken links were found |
Definition at line 159 of file ValidatorTask.php.
References ValidatorTask\$emailOnBrokenLinkOnly.
setEmailTemplateFile | ( | $emailTemplateFile | ) |
Set the value of the private property emailTemplateFile
string | $emailTemplateFile | Template to be used for the email |
Definition at line 222 of file ValidatorTask.php.
References ValidatorTask\$emailTemplateFile.
setPage | ( | $page | ) |
Set the value of the private property page
int | $page | UID of the start page for this task. |
Definition at line 180 of file ValidatorTask.php.
References ValidatorTask\$page.
|
protected |
Definition at line 73 of file ValidatorTask.php.
Referenced by ValidatorTask\getConfiguration(), and ValidatorTask\setConfiguration().
|
protected |
Definition at line 45 of file ValidatorTask.php.
|
protected |
Definition at line 94 of file ValidatorTask.php.
Referenced by ValidatorTask\getAdditionalInformation(), ValidatorTask\getDepth(), and ValidatorTask\setDepth().
|
protected |
Definition at line 108 of file ValidatorTask.php.
Referenced by ValidatorTask\getEmail(), and ValidatorTask\setEmail().
|
protected |
Definition at line 115 of file ValidatorTask.php.
Referenced by ValidatorTask\getEmailOnBrokenLinkOnly(), and ValidatorTask\setEmailOnBrokenLinkOnly().
|
protected |
Definition at line 87 of file ValidatorTask.php.
Referenced by ValidatorTask\getEmailTemplateFile(), and ValidatorTask\setEmailTemplateFile().
|
protected |
Definition at line 80 of file ValidatorTask.php.
|
protected |
Definition at line 59 of file ValidatorTask.php.
|
protected |
Definition at line 101 of file ValidatorTask.php.
Referenced by ValidatorTask\execute(), ValidatorTask\getAdditionalInformation(), ValidatorTask\getPage(), ValidatorTask\loadModTsConfig(), and ValidatorTask\setPage().
|
protected |
Definition at line 40 of file ValidatorTask.php.
|
protected |
Definition at line 35 of file ValidatorTask.php.
|
protected |
Definition at line 66 of file ValidatorTask.php.
|
protected |
Definition at line 120 of file ValidatorTask.php.
|
protected |
Definition at line 52 of file ValidatorTask.php.