PHP Classes

File: web/SSO/modules/aggregator2/bin/update.php

Recommend this page to a friend!
  Classes of william amed   Raptor 2   web/SSO/modules/aggregator2/bin/update.php   Download  
File: web/SSO/modules/aggregator2/bin/update.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Raptor 2
Framework that takes routes from annotations
Author: By
Last change:
Date: 8 years ago
Size: 335 bytes
 

Contents

Class file image Download
#!/usr/bin/env php
<?php

require_once(dirname(dirname(dirname(dirname(__FILE__)))) . '/lib/_autoload.php');

$name = basename($argv[0]);

if (
$argc < 2) {
   
fprintf(STDERR, "$name: Missing id of aggregator.\n");
    exit(
1);
}

$id = $argv[1];

$aggregator = sspmod_aggregator2_Aggregator::getAggregator($id);
$aggregator->updateCache();