[pLog-svn] r3134 - plog/trunk/class/dao
jondaley at devel.lifetype.net
jondaley at devel.lifetype.net
Mon Mar 27 03:47:41 GMT 2006
Author: jondaley
Date: 2006-03-27 03:47:40 +0000 (Mon, 27 Mar 2006)
New Revision: 3134
Modified:
plog/trunk/class/dao/bloginfo.class.php
Log:
oops. this is required for the custom domain code as well from the last revision. Caching sure makes stuff hard to debug - everything looks like it is working until I log out, and the session is cleared, or the cache expires...
Modified: plog/trunk/class/dao/bloginfo.class.php
===================================================================
--- plog/trunk/class/dao/bloginfo.class.php 2006-03-27 03:41:40 UTC (rev 3133)
+++ plog/trunk/class/dao/bloginfo.class.php 2006-03-27 03:47:40 UTC (rev 3134)
@@ -6,7 +6,6 @@
/**
* \ingroup DAO
*
- * This is the representation of a blog. It contains all the information we need to know,
* This is the representation of a blog. It contains all the information we need to know,
* such as the name of the blog, the owner, description, etc.
*/
@@ -28,6 +27,7 @@
var $_ownerInfo;
var $_usersInfo;
var $_mangledBlog;
+ var $_customDomain;
// the TemplateSet representing the template set used by the blog
var $_templateSet;
@@ -63,6 +63,7 @@
$this->_totalTrackbacks = 0;
$this->_totalComments = 0;
$this->_usersInfo = array();
+
$t = new Timestamp();
$this->_createDate = $t->getTimestamp();
$this->_updateDate = $t->getTimestamp();
@@ -97,7 +98,8 @@
"last_update_date" => "getUpdateDate",
"num_posts" => "getTotalPosts",
"num_comments" => "getTotalComments",
- "num_trackbacks" => "getTotalTrackbacks"
+ "num_trackbacks" => "getTotalTrackbacks",
+ "custom_domain" => "getCustomDomain"
);
}
@@ -623,8 +625,32 @@
return( $this->_mangledBlog );
}
+
/**
+ * set the custom domain of this blog
+ *
+ * @param customDomain the new custom domain
+ */
+ function setCustomDomain($customDomain)
+ {
+ $this->_customDomain = $customDomain;
+ }
+
+ /**
+ @return the custom domain of this blog
+ */
+ function getCustomDomain()
+ {
+ // fill in the field if it hasn't been filled yet
+ if($this->_customDomain === null){
+ $this->_customDomain = $this->getMangledBlog();
+ }
+
+ return($this->_customDomain);
+ }
+
+ /**
* @see getMangledBlogName
* Alias for the method above
*/
More information about the pLog-svn
mailing list