[pLog-svn] r2097 - plog/branches/plog-1.1-ben/class/dao
ork at devel.plogworld.net
ork at devel.plogworld.net
Sun May 29 19:15:35 GMT 2005
Author: ork
Date: 2005-05-29 19:15:35 +0000 (Sun, 29 May 2005)
New Revision: 2097
Modified:
plog/branches/plog-1.1-ben/class/dao/article.class.php
Log:
see comment
Modified: plog/branches/plog-1.1-ben/class/dao/article.class.php
===================================================================
--- plog/branches/plog-1.1-ben/class/dao/article.class.php 2005-05-29 19:15:02 UTC (rev 2096)
+++ plog/branches/plog-1.1-ben/class/dao/article.class.php 2005-05-29 19:15:35 UTC (rev 2097)
@@ -318,6 +318,10 @@
/**
* Returns the blog identifier to which this article belongs.
*
+ * NOTE: This is rather disturbing, i would expect to get a Blog Object
+ * when calling getBlog(), i've added getBlogId() which is more
+ * precise, but left this one in here to stay backward compatible.
+ *
* @return An integer value representing the blog identifier.
* @see getBlogInfo
*/
@@ -327,6 +331,17 @@
}
/**
+ * Returns the blog identifier to which this article belongs.
+ *
+ * @return An integer value representing the blog identifier.
+ * @see getBlogInfo
+ */
+ function getBlogId()
+ {
+ return $this->_blog;
+ }
+
+ /**
* Returns the status of the article:
* <ul><li>published</li><li>draft</li><li>deleted</li></ul>
*
More information about the pLog-svn
mailing list