protected function setUp()
 {
     include_once dirname(__FILE__) . "/../Setup.php";
     $config = Setup::Configuration();
     include_once $config["SwiftriverCoreDirectory"] . "/ObjectModel/Content.php";
     include_once dirname(__FILE__) . "/../TextForUrlParser.php";
 }
 protected function setUp()
 {
     include_once dirname(__FILE__) . "/../../../Modules/TagTheNetInterface/Setup.php";
     $config = Setup::Configuration();
     include_once $config["SwiftriverCoreDirectory"] . "/ObjectModel/Content.php";
     include_once $config["SwiftriverCoreDirectory"] . "/ObjectModel/LanguageSpecificText.php";
     include_once dirname(__FILE__) . "/../../../Modules/TagTheNetInterface/TextForUrlParser.php";
 }
 protected function setUp()
 {
     include_once dirname(__FILE__) . "/../../../Modules/TagTheNetInterface/Setup.php";
     $config = Setup::Configuration();
     include_once $config["SwiftriverCoreDirectory"] . "/ObjectModel/Content.php";
     include_once $config["SwiftriverCoreDirectory"] . "/ObjectModel/Tag.php";
     include_once dirname(__FILE__) . "/../../../Modules/TagTheNetInterface/ContentFromJSONParser.php";
 }
示例#4
0
 /**
  * Get the shared instance for the logger
  * @return \Log
  */
 public static function GetLogger()
 {
     $log = new \Log("this message is ignored, however not supplying one throws an error :o/");
     $logger = $log->singleton('file', Setup::Configuration()->CachingDirectory . "/log.log", '   ');
     if (!self::Configuration()->EnableDebugLogging) {
         $mask = \Log::UPTO(\PEAR_LOG_INFO);
         $logger->setMask($mask);
     }
     return $logger;
 }
 /**
  * Given a valid servive URI and a valid string of text
  * this service wraps the TagThe.Net taggin service
  *
  * @param string $uri
  * @param string $json
  * @return string
  */
 public function InterafceWithService($uri, $text)
 {
     $config = Setup::Configuration();
     require $config["SwiftriverModulesDirectory"] . "/SwiftriverServiceWrapper/ServiceWrapper.php";
     $uri = str_replace("?view=json", "", $uri);
     $uri = $uri . "?view=json&text=" . $text;
     $service = new \Swiftriver\Core\Modules\SiSW\ServiceWrapper($uri);
     $jsonFromService = $service->MakeGETRequest();
     return $jsonFromService;
 }
示例#6
0
 public static function GetLogger()
 {
     $logger =& \Log::singleton('file', Setup::Configuration()->CachingDirectory . "/log.log", '   ');
     return $logger;
 }
示例#7
0
 public static function GetLogger()
 {
     $log = new \Log("this message is ignored, however not supplying one throws an error :o/");
     $logger = $log->singleton('file', Setup::Configuration()->CachingDirectory . "/log.log", '   ');
     return $logger;
 }