/**
  * main()
  * the function that will execute the sequence that will fill the entire databank.
  * Runs:
  * 			Wikipictures
  * 			Wikilinks
  * 			WikiSnippet
  * 			WikiSummary
  * 			FacebookSummary
  * Current RunTime: Log here.......
  */
 public function main()
 {
     $this->setCollegeList();
     $formatted = $this->getCollegeList();
     for ($i = 0; $i < count($formatted); $i++) {
         $wiki = new wikipediaController($this->_relation, $formatted[$i]);
         $fb = new fbController($this->_relation, $formatted[$i]);
         $wiki->wikiPictures();
         $wiki->wikiLinks();
         $wiki->wikiSnippet();
         $wiki->wikiSummary();
         $fb->getFBSummary();
     }
 }
Esempio n. 2
0
<?php

require 'facebook-sdk/src/facebook.php';
// The function __autoload is the method for loading all the classes being used in the script. Use it at the beginning of every php main
// page.
function __autoload($class)
{
    require_once $class . '.php';
}
$dbConnection = new relationalDbConnections('lala', "localhost:8889", "root", "root");
$fb = new fbController($dbConnection, "Carnegie Mellon University");
$fb->getFBSummary();