Property | Type | Description | |
---|---|---|---|
$_batches | |||
$_options | |||
$_results | |||
$_sitemaps | |||
$_totalTime |
Method | 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 | ||
return | 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 | |
return | array | boolean |
protected convertTxtToXml ( $txt ) : string | ||
$txt | ||
return | 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 | |
return | array |
protected generateTablesData ( $results ) : array | boolean | ||
$results | ||
return | array | boolean |
protected generateTablesDataForFormat ( $results ) : array | ||
$results | ||
return | array |
protected getEffectiveUrl ( $url ) : mixed | ||
$url | ||
return | mixed |
protected getSitemapFromInput ( $options ) : array | boolean | ||
$options | ||
return | array | boolean |
protected getStoreSitemaps ( ) : array | boolean | ||
return | array | boolean |
protected getStrippedUrl ( $url ) : boolean | ||
$url | ||
return | boolean |
protected parseResponseCode ( $code ) : boolean | string | ||
$code | ||
return | boolean | string |
protected parseStatusMessage ( $result ) : string | ||
$result | ||
return | 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 | |
return | mixed |
protected replaceUrl ( $sitemapUrl, $replaceUrl ) : string | ||
$sitemapUrl | ||
$replaceUrl | ||
return | string |
protected replaceUrlByParse ( $sitemapUrl, $replaceUrl ) : mixed | ||
$sitemapUrl | ||
$replaceUrl | ||
return | mixed |
protected retrieveSitemaps ( ) : array | ||
return | array |
protected simpleCurl ( $url ) : array | ||
$url | ||
return | array |
protected ttfbCompare ( $new, $old ) : string | ||
$new | ||
$old | ||
return | string |
protected validateUrl ( $url ) : boolean | ||
$url | ||
return | boolean |