summaryrefslogtreecommitdiff
path: root/www/api
diff options
context:
space:
mode:
authorcweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-10-23 17:13:16 +0000
committercweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-10-23 17:13:16 +0000
commit68c01cda10ef49b05fffb6e323fa2d34ba5dd2f4 (patch)
tree5aabcd77449786df7629f351e2f2816284f99cd5 /www/api
parent3df99a0aec0b926464449e8ca33c808c63d903df (diff)
downloadsemanticscuttle-68c01cda10ef49b05fffb6e323fa2d34ba5dd2f4.tar.gz
semanticscuttle-68c01cda10ef49b05fffb6e323fa2d34ba5dd2f4.tar.bz2
rename ServiceFactory::getServiceInstance() to get() - much easier to write
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@396 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'www/api')
-rw-r--r--www/api/export_csv.php2
-rw-r--r--www/api/export_gcs.php2
-rw-r--r--www/api/export_html.php2
-rw-r--r--www/api/export_sioc.php4
-rw-r--r--www/api/posts_add.php2
-rw-r--r--www/api/posts_all.php2
-rw-r--r--www/api/posts_dates.php2
-rw-r--r--www/api/posts_delete.php2
-rw-r--r--www/api/posts_get.php2
-rw-r--r--www/api/posts_public.php2
-rw-r--r--www/api/posts_recent.php2
-rw-r--r--www/api/posts_update.php2
-rw-r--r--www/api/tags_get.php2
-rw-r--r--www/api/tags_rename.php2
14 files changed, 15 insertions, 15 deletions
diff --git a/www/api/export_csv.php b/www/api/export_csv.php
index c696001..04000ef 100644
--- a/www/api/export_csv.php
+++ b/www/api/export_csv.php
@@ -6,7 +6,7 @@ require_once('httpauth.inc.php');
require_once '../../src/SemanticScuttle/header.php';
/* Service creation: only useful services are created */
-$bookmarkservice =SemanticScuttle_Service_Factory::getServiceInstance('Bookmark');
+$bookmarkservice =SemanticScuttle_Service_Factory::get('Bookmark');
// Check to see if a tag was specified.
if (isset($_REQUEST['tag']) && (trim($_REQUEST['tag']) != ''))
diff --git a/www/api/export_gcs.php b/www/api/export_gcs.php
index 1eed961..fab7fe2 100644
--- a/www/api/export_gcs.php
+++ b/www/api/export_gcs.php
@@ -13,7 +13,7 @@ if($GLOBALS['enableGoogleCustomSearch'] == false) {
}
/* Service creation: only useful services are created */
-$bookmarkservice =SemanticScuttle_Service_Factory::getServiceInstance('Bookmark');
+$bookmarkservice =SemanticScuttle_Service_Factory::get('Bookmark');
/*
diff --git a/www/api/export_html.php b/www/api/export_html.php
index 922901a..0f36c07 100644
--- a/www/api/export_html.php
+++ b/www/api/export_html.php
@@ -9,7 +9,7 @@ require_once('httpauth.inc.php');
require_once '../../src/SemanticScuttle/header.php';
/* Service creation: only useful services are created */
-$bookmarkservice =SemanticScuttle_Service_Factory::getServiceInstance('Bookmark');
+$bookmarkservice =SemanticScuttle_Service_Factory::get('Bookmark');
// Check to see if a tag was specified.
if (isset($_REQUEST['tag']) && (trim($_REQUEST['tag']) != ''))
diff --git a/www/api/export_sioc.php b/www/api/export_sioc.php
index 90713e7..4b0898e 100644
--- a/www/api/export_sioc.php
+++ b/www/api/export_sioc.php
@@ -5,8 +5,8 @@ require_once '../../src/SemanticScuttle/header.php';
header('Content-Type: text/xml; charset=utf-8'); //we change headers html defined in headers.inc.php
/* Service creation: only useful services are created */
-$userservice =SemanticScuttle_Service_Factory::getServiceInstance('User');
-$bookmarkservice =SemanticScuttle_Service_Factory::getServiceInstance('Bookmark');
+$userservice =SemanticScuttle_Service_Factory::get('User');
+$bookmarkservice =SemanticScuttle_Service_Factory::get('Bookmark');
?>
<?php echo "<?xml version=\"1.0\" encoding=\"utf-8\"\n?>"; ?>
diff --git a/www/api/posts_add.php b/www/api/posts_add.php
index f396b5e..aff8771 100644
--- a/www/api/posts_add.php
+++ b/www/api/posts_add.php
@@ -14,7 +14,7 @@ require_once('httpauth.inc.php');
require_once '../../src/SemanticScuttle/header.php';
/* Service creation: only useful services are created */
-$bookmarkservice =SemanticScuttle_Service_Factory::getServiceInstance('Bookmark');
+$bookmarkservice =SemanticScuttle_Service_Factory::get('Bookmark');
// Get all the bookmark's passed-in information
if (isset($_REQUEST['url']) && (trim($_REQUEST['url']) != ''))
diff --git a/www/api/posts_all.php b/www/api/posts_all.php
index 4c280c7..286d3b3 100644
--- a/www/api/posts_all.php
+++ b/www/api/posts_all.php
@@ -9,7 +9,7 @@ require_once('httpauth.inc.php');
require_once '../../src/SemanticScuttle/header.php';
/* Service creation: only useful services are created */
-$bookmarkservice =SemanticScuttle_Service_Factory::getServiceInstance('Bookmark');
+$bookmarkservice =SemanticScuttle_Service_Factory::get('Bookmark');
// Check to see if a tag was specified.
diff --git a/www/api/posts_dates.php b/www/api/posts_dates.php
index 5f002d1..5c53a35 100644
--- a/www/api/posts_dates.php
+++ b/www/api/posts_dates.php
@@ -7,7 +7,7 @@ require_once('httpauth.inc.php');
require_once '../../src/SemanticScuttle/header.php';
/* Service creation: only useful services are created */
-$bookmarkservice =SemanticScuttle_Service_Factory::getServiceInstance('Bookmark');
+$bookmarkservice =SemanticScuttle_Service_Factory::get('Bookmark');
// Check to see if a tag was specified.
diff --git a/www/api/posts_delete.php b/www/api/posts_delete.php
index 7ad332f..9e2781a 100644
--- a/www/api/posts_delete.php
+++ b/www/api/posts_delete.php
@@ -11,7 +11,7 @@ require_once('httpauth.inc.php');
require_once '../../src/SemanticScuttle/header.php';
/* Service creation: only useful services are created */
-$bookmarkservice =SemanticScuttle_Service_Factory::getServiceInstance('Bookmark');
+$bookmarkservice =SemanticScuttle_Service_Factory::get('Bookmark');
// Note that del.icio.us only errors out if no URL was passed in; there's no error on attempting
diff --git a/www/api/posts_get.php b/www/api/posts_get.php
index a6a6102..2e43a99 100644
--- a/www/api/posts_get.php
+++ b/www/api/posts_get.php
@@ -14,7 +14,7 @@ require_once('httpauth.inc.php');
require_once '../../src/SemanticScuttle/header.php';
/* Service creation: only useful services are created */
-$bookmarkservice =SemanticScuttle_Service_Factory::getServiceInstance('Bookmark');
+$bookmarkservice =SemanticScuttle_Service_Factory::get('Bookmark');
// Check to see if a tag was specified.
diff --git a/www/api/posts_public.php b/www/api/posts_public.php
index 2ade45e..ca63f44 100644
--- a/www/api/posts_public.php
+++ b/www/api/posts_public.php
@@ -9,7 +9,7 @@
require_once '../../src/SemanticScuttle/header.php';
/* Service creation: only useful services are created */
-$bookmarkservice =SemanticScuttle_Service_Factory::getServiceInstance('Bookmark');
+$bookmarkservice =SemanticScuttle_Service_Factory::get('Bookmark');
// Check to see if a tag was specified.
diff --git a/www/api/posts_recent.php b/www/api/posts_recent.php
index e8bc644..7d2e8dc 100644
--- a/www/api/posts_recent.php
+++ b/www/api/posts_recent.php
@@ -11,7 +11,7 @@ require_once('httpauth.inc.php');
require_once '../../src/SemanticScuttle/header.php';
/* Service creation: only useful services are created */
-$bookmarkservice =SemanticScuttle_Service_Factory::getServiceInstance('Bookmark');
+$bookmarkservice =SemanticScuttle_Service_Factory::get('Bookmark');
// Check to see if a tag was specified.
diff --git a/www/api/posts_update.php b/www/api/posts_update.php
index 18e5676..9eb5dbd 100644
--- a/www/api/posts_update.php
+++ b/www/api/posts_update.php
@@ -9,7 +9,7 @@ require_once('httpauth.inc.php');
require_once '../../src/SemanticScuttle/header.php';
/* Service creation: only useful services are created */
-$bookmarkservice =SemanticScuttle_Service_Factory::getServiceInstance('Bookmark');
+$bookmarkservice =SemanticScuttle_Service_Factory::get('Bookmark');
// Get the posts relevant to the passed-in variables.
diff --git a/www/api/tags_get.php b/www/api/tags_get.php
index 043b629..23dfd2a 100644
--- a/www/api/tags_get.php
+++ b/www/api/tags_get.php
@@ -9,7 +9,7 @@ require_once('httpauth.inc.php');
require_once '../../src/SemanticScuttle/header.php';
/* Service creation: only useful services are created */
-$b2tservice =SemanticScuttle_Service_Factory::getServiceInstance('Bookmark2Tag');
+$b2tservice =SemanticScuttle_Service_Factory::get('Bookmark2Tag');
// Get the tags relevant to the passed-in variables.
diff --git a/www/api/tags_rename.php b/www/api/tags_rename.php
index bf78b39..a8e281c 100644
--- a/www/api/tags_rename.php
+++ b/www/api/tags_rename.php
@@ -9,7 +9,7 @@ require_once('httpauth.inc.php');
require_once '../../src/SemanticScuttle/header.php';
/* Service creation: only useful services are created */
-$b2tservice =SemanticScuttle_Service_Factory::getServiceInstance('Bookmark2Tag');
+$b2tservice =SemanticScuttle_Service_Factory::get('Bookmark2Tag');
// Get the tag info.
if (isset($_REQUEST['old']) && (trim($_REQUEST['old']) != ''))