Свойство | Type | Description | |
---|---|---|---|
$_batches | |||
$_options | |||
$_results | |||
$_sitemaps | |||
$_totalTime |
Méthode | Description | |
---|---|---|
askReplaceOrCompare ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output, $definedUrl, $foundUrl ) : boolean | integer | Asks the user what to do in case of a mismatched URL | |
askSitemapsToProcess ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : array | boolean | Asks the user which sitemaps from Magento's sitemap collection to process. | |
configure ( ) | Configure Command | |
convertTxtToXml ( $txt ) : string | Convert a txt URL list to XML using Magento sitemap structure. | |
execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : boolean | void | Executes command. | |
executeBatches ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : array | Executes all prepared batches of requests. | |
generateTablesData ( $results ) : array | boolean | Generates data to output in a table. | |
generateTablesDataForFormat ( $results ) : array | Generates table data without console styling. | |
getEffectiveUrl ( $url ) : mixed | Gets the effective URL by following the redirects. | |
getSitemapFromInput ( $options ) : array | boolean | Processes the sitemap data from input. | |
getStoreSitemaps ( ) : array | boolean | Gets the store sitemap collection. | |
getStrippedUrl ( $url ) : boolean | Strips the domain to only domain name and tld. | |
matchUrls ( $url, $match ) : mixed | Checks if URL's are identical. | |
parseResponseCode ( $code ) : boolean | string | Parses the response code colorized. | |
parseStatusMessage ( $result ) : string | Parses the status message for the user in between requests. | |
prepareRequests ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : mixed | Prepares all requests data by processing (sitemap) input. | |
replaceUrl ( $sitemapUrl, $replaceUrl ) : string | Replaces the URL by a regex strip. | |
replaceUrlByParse ( $sitemapUrl, $replaceUrl ) : mixed | Replaces the Sitemap URL | |
retrieveSitemaps ( ) : array | Retrieve the sitemapCollection | |
simpleCurl ( $url ) : array | A simple Curl function used to process the requests. | |
ttfbCompare ( $new, $old ) : string | Compare the TTFB Values and give colorized response if necessary. | |
validateUrl ( $url ) : boolean | Validates an URL |
protected askReplaceOrCompare ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output, $definedUrl, $foundUrl ) : boolean | integer | ||
$input | Symfony\Component\Console\Input\InputInterface | |
$output | Symfony\Component\Console\Output\OutputInterface | |
$definedUrl | ||
$foundUrl | ||
Résultat | boolean | integer |
protected askSitemapsToProcess ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : array | boolean | ||
$input | Symfony\Component\Console\Input\InputInterface | |
$output | Symfony\Component\Console\Output\OutputInterface | |
Résultat | array | boolean |
protected convertTxtToXml ( $txt ) : string | ||
$txt | ||
Résultat | string |
protected executeBatches ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : array | ||
$input | Symfony\Component\Console\Input\InputInterface | |
$output | Symfony\Component\Console\Output\OutputInterface | |
Résultat | array |
protected generateTablesData ( $results ) : array | boolean | ||
$results | ||
Résultat | array | boolean |
protected generateTablesDataForFormat ( $results ) : array | ||
$results | ||
Résultat | array |
protected getEffectiveUrl ( $url ) : mixed | ||
$url | ||
Résultat | mixed |
protected getSitemapFromInput ( $options ) : array | boolean | ||
$options | ||
Résultat | array | boolean |
protected getStoreSitemaps ( ) : array | boolean | ||
Résultat | array | boolean |
protected getStrippedUrl ( $url ) : boolean | ||
$url | ||
Résultat | boolean |
protected parseResponseCode ( $code ) : boolean | string | ||
$code | ||
Résultat | boolean | string |
protected parseStatusMessage ( $result ) : string | ||
$result | ||
Résultat | string |
protected prepareRequests ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : mixed | ||
$input | Symfony\Component\Console\Input\InputInterface | |
$output | Symfony\Component\Console\Output\OutputInterface | |
Résultat | mixed |
protected replaceUrl ( $sitemapUrl, $replaceUrl ) : string | ||
$sitemapUrl | ||
$replaceUrl | ||
Résultat | string |
protected replaceUrlByParse ( $sitemapUrl, $replaceUrl ) : mixed | ||
$sitemapUrl | ||
$replaceUrl | ||
Résultat | mixed |
protected retrieveSitemaps ( ) : array | ||
Résultat | array |
protected simpleCurl ( $url ) : array | ||
$url | ||
Résultat | array |
protected ttfbCompare ( $new, $old ) : string | ||
$new | ||
$old | ||
Résultat | string |
protected validateUrl ( $url ) : boolean | ||
$url | ||
Résultat | boolean |