Documentation TYPO3 par Ameos

refindex_cli.php

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


Généré par Les spécialistes TYPO3 avec  doxygen 1.4.6