[pLog-svn] r4758 - plog/branches/lifetype-1.2/class/net
oscar at devel.lifetype.net
oscar at devel.lifetype.net
Sun Feb 18 14:58:05 EST 2007
Author: oscar
Date: 2007-02-18 14:58:05 -0500 (Sun, 18 Feb 2007)
New Revision: 4758
Modified:
plog/branches/lifetype-1.2/class/net/modrewriterequestgenerator.class.php
Log:
Removed some methods that should be taken from the BaseRequestGenerator class instead of from this class itself.
Modified: plog/branches/lifetype-1.2/class/net/modrewriterequestgenerator.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/net/modrewriterequestgenerator.class.php 2007-02-18 19:53:35 UTC (rev 4757)
+++ plog/branches/lifetype-1.2/class/net/modrewriterequestgenerator.class.php 2007-02-18 19:58:05 UTC (rev 4758)
@@ -322,90 +322,6 @@
}
/**
- * Returns the link to a resource
- *
- * @param album Generates the correct link to fetch a resource
- */
- function resourceLink( $resource )
- {
- $blogId = $this->_blogInfo->getId();
- $ownerId = $resource->getOwnerId();
-
- if ( $blogId != $ownerId ) {
- $blogId = $ownerId;
- $blogs =& new Blogs();
- $blogInfo = $blogs->getBlogInfo($blogId);
- $blogShortName = $blogInfo->getBlog();
- } else {
- $blogShortName = $this->_blogInfo->getBlog();
- }
-
- $resourceLink = $this->getBaseUrl().'/'.$blogId.'_'.StringUtils::text2url( $blogShortName ).'/resources/'.rawurlencode($resource->getFileName()).'.html';
-
- return $resourceLink;
- }
-
- /**
- * Returns the link to a resource preview
- *
- * @param album Generates the correct link to fetch a resource preview
- */
- function resourcePreviewLink( $resource )
- {
- $blogId = ($resource->getOwnerId() ? $resource->getOwnerId() : $this->_blogInfo->getId());
-
- $this->addParameter( "blogId", $blogId);
- $this->addParameter( "resource", rawurlencode($resource->getFileName()));
- $this->addParameter( "mode", "preview" );
-
- $resourceLink = $this->getResourceServerUrl().$this->getRequest();
-
- return $resourceLink;
- }
-
- /**
- * Returns the link to a resource preview
- *
- * @param album Generates the correct link to fetch a resource preview
- */
- function resourceMediumSizePreviewLink( $resource )
- {
- $blogId = ($resource->getOwnerId() ? $resource->getOwnerId() : $this->_blogInfo->getId());
-
- $this->addParameter( "blogId", $blogId);
- $this->addParameter( "resource", rawurlencode($resource->getFileName()));
- $this->addParameter( "mode", "medium" );
-
- $resourceLink = $this->getResourceServerUrl().$this->getRequest();
-
- return $resourceLink;
- }
-
- /**
- * Returns the link to a resource
- *
- * @param resource Generates the correct link to fetch a resource
- */
- function resourceDownloadLink( $resource )
- {
- $blogId = $this->_blogInfo->getId();
- $ownerId = $resource->getOwnerId();
-
- if ( $blogId != $ownerId ) {
- $blogId = $ownerId;
- $blogs =& new Blogs();
- $blogInfo = $blogs->getBlogInfo($blogId);
- $blogShortName = $blogInfo->getBlog();
- } else {
- $blogShortName = $this->_blogInfo->getBlog();
- }
-
- $resourceLink = $this->getBaseUrl().'/'.$blogId.'_'.StringUtils::text2url( $blogShortName ).'/get/'.rawurlencode($resource->getFileName());
-
- return $resourceLink;
- }
-
- /**
* Returns a string representing the request
*
* @return A String object representing the request
More information about the pLog-svn
mailing list