TYPO3 API  SVNRelease
refindex_cli.php
Go to the documentation of this file.
00001 <?php
00002 
00003 if (!defined('TYPO3_cliMode'))  die('You cannot run this script directly!');
00004 
00005     // Call the functionality
00006 if (in_array('-e',$_SERVER["argv"]) || in_array('-c',$_SERVER["argv"])) {
00007     $testOnly = in_array('-c',$_SERVER["argv"]);
00008     $refIndexObj = t3lib_div::makeInstance('t3lib_refindex');
00009     list($headerContent,$bodyContent) = $refIndexObj->updateIndex($testOnly,!in_array('-s',$_SERVER["argv"]));
00010 } else {
00011     echo "
00012 Options:
00013 -c = Check refindex
00014 -e = Update refindex
00015 -s = Silent
00016 ";
00017         exit;
00018 }
00019 ?>