run() public method

Run the rewrite test and return a status array
public run ( string $url, string $path ) : array
$url string URL of rewrite test
$path string Root directory of Elgg with trailing slash
return array
コード例 #1
0
ファイル: ElggInstaller.php プロジェクト: elgg/elgg
 /**
  * Confirm that the rewrite rules are firing
  *
  * @param array &$report The requirements report array
  *
  * @return void
  */
 protected function checkRewriteRules(&$report)
 {
     $tester = new ElggRewriteTester();
     $url = _elgg_services()->config->getSiteUrl() . "rewrite.php";
     $report['rewrite'] = array($tester->run($url, Directory\Local::root()->getPath()));
 }
コード例 #2
0
ファイル: ElggInstaller.php プロジェクト: nogsus/Elgg
 /**
  * Confirm that the rewrite rules are firing
  *
  * @param array &$report The requirements report array
  *
  * @return void
  */
 protected function checkRewriteRules(&$report)
 {
     global $CONFIG;
     $tester = new ElggRewriteTester();
     $url = elgg_get_site_url() . "rewrite.php";
     $report['rewrite'] = array($tester->run($url, $CONFIG->path));
 }
コード例 #3
0
ファイル: ElggInstaller.php プロジェクト: gzachos/elgg_ellak
 /**
  * Confirm that the rewrite rules are firing
  *
  * @param array &$report The requirements report array
  *
  * @return void
  */
 protected function checkRewriteRules(&$report)
 {
     $tester = new ElggRewriteTester();
     $url = _elgg_services()->config->getSiteUrl() . "rewrite.php";
     $report['rewrite'] = array($tester->run($url, $this->CONFIG->path));
 }