summaryrefslogtreecommitdiffstatshomepage
path: root/src/SemanticScuttle/Service/TagStat.php
diff options
context:
space:
mode:
authorGravatar cweiske2009-10-23 17:13:16 +0000
committerGravatar cweiske2009-10-23 17:13:16 +0000
commit68c01cda10ef49b05fffb6e323fa2d34ba5dd2f4 (patch)
tree5aabcd77449786df7629f351e2f2816284f99cd5 /src/SemanticScuttle/Service/TagStat.php
parent3df99a0aec0b926464449e8ca33c808c63d903df (diff)
downloadscuttle-68c01cda10ef49b05fffb6e323fa2d34ba5dd2f4.tar.gz
scuttle-68c01cda10ef49b05fffb6e323fa2d34ba5dd2f4.zip
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 'src/SemanticScuttle/Service/TagStat.php')
-rw-r--r--src/SemanticScuttle/Service/TagStat.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/SemanticScuttle/Service/TagStat.php b/src/SemanticScuttle/Service/TagStat.php
index c54dcb7..1bb7b05 100644
--- a/src/SemanticScuttle/Service/TagStat.php
+++ b/src/SemanticScuttle/Service/TagStat.php
@@ -27,7 +27,7 @@ class SemanticScuttle_Service_TagStat extends SemanticScuttle_Service
}
function getNbChildren($tag1, $relationType, $uId) {
- $tts =SemanticScuttle_Service_Factory::getServiceInstance('Tag2Tag');
+ $tts =SemanticScuttle_Service_Factory::get('Tag2Tag');
$query = "SELECT tag1, relationType, uId FROM `". $tts->getTableName() ."`";
$query.= " WHERE tag1 = '" .$tag1 ."'";
$query.= " AND relationType = '". $relationType ."'";
@@ -102,7 +102,7 @@ class SemanticScuttle_Service_TagStat extends SemanticScuttle_Service
return false;
}
- $tts =SemanticScuttle_Service_Factory::getServiceInstance('Tag2Tag');
+ $tts =SemanticScuttle_Service_Factory::get('Tag2Tag');
$linkedTags = $tts->getLinkedTags($tag1, $relationType, $uId);
$nbDescendants = 0;
$maxDepth = 0;
@@ -123,7 +123,7 @@ class SemanticScuttle_Service_TagStat extends SemanticScuttle_Service
}
function updateAllStat() {
- $tts =SemanticScuttle_Service_Factory::getServiceInstance('Tag2Tag');
+ $tts =SemanticScuttle_Service_Factory::get('Tag2Tag');
$query = "SELECT tag1, uId FROM `". $tts->getTableName() ."`";
$query.= " WHERE relationType = '>'";