[pLog-svn] r6912 - plugins/branches/lifetype-1.2/getcategory
jondaley at devel.lifetype.net
jondaley at devel.lifetype.net
Wed Sep 9 11:22:21 EDT 2009
Author: jondaley
Date: 2009-09-09 11:22:21 -0400 (Wed, 09 Sep 2009)
New Revision: 6912
Modified:
plugins/branches/lifetype-1.2/getcategory/plugingetcategory.class.php
Log:
updated to newest version. added getArticle() function which is handy for grabbing any article we want
Modified: plugins/branches/lifetype-1.2/getcategory/plugingetcategory.class.php
===================================================================
--- plugins/branches/lifetype-1.2/getcategory/plugingetcategory.class.php 2009-09-09 15:20:38 UTC (rev 6911)
+++ plugins/branches/lifetype-1.2/getcategory/plugingetcategory.class.php 2009-09-09 15:22:21 UTC (rev 6912)
@@ -12,7 +12,7 @@
$this->PluginBase($source);
$this->id = "getcategory";
- $this->version = "20070914";
+ $this->version = "20090909";
$this->author = "Jon Daley";
$this->desc = "This plugin adds the ability to get ".
"posts given a category name";
@@ -38,6 +38,16 @@
return $arts;
}
+
+ function getArticle($articleName){
+ lt_include( PLOG_CLASS_PATH."class/dao/articles.class.php" );
+
+ $articles = new Articles();
+ $article = $articles->getBlogArticleByTitle($articleName,
+ $this->blogInfo->getId());
+ return $article;;
+ }
+
}
More information about the pLog-svn
mailing list