mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-17 10:19:55 +09:00
merge from 1.7.3.5(r13153:r13167)
git-svn-id: http://xe-core.googlecode.com/svn/trunk@13168 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
cc47d2b247
commit
2d3f149b5a
2042 changed files with 129266 additions and 126243 deletions
|
|
@ -1,49 +1,59 @@
|
|||
<?php
|
||||
/**
|
||||
* The model class of the rss module
|
||||
/**
|
||||
* The model class of the rss module
|
||||
*
|
||||
* @author NHN (developers@xpressengine.com)
|
||||
*/
|
||||
class rssModel extends rss
|
||||
{
|
||||
/**
|
||||
* Create the Feed url.
|
||||
*
|
||||
* @author NHN (developers@xpressengine.com)
|
||||
**/
|
||||
* @param string $vid Vid
|
||||
* @param string $mid mid
|
||||
* @param string $format Feed format. ef)xe, atom, rss1.0
|
||||
* @return string
|
||||
*/
|
||||
function getModuleFeedUrl($vid = null, $mid, $format)
|
||||
{
|
||||
if(Context::isAllowRewrite())
|
||||
{
|
||||
$request_uri = Context::getRequestUri();
|
||||
// If the virtual site variable exists and it is different from mid (vid and mid should not be the same)
|
||||
if($vid && $vid != $mid)
|
||||
{
|
||||
return $request_uri.$vid.'/'.$mid.'/'.$format;
|
||||
}
|
||||
else
|
||||
{
|
||||
return $request_uri.$mid.'/'.$format;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
return getUrl('','mid',$mid,'act',$format);
|
||||
}
|
||||
}
|
||||
|
||||
class rssModel extends rss {
|
||||
/**
|
||||
* Create the Feed url.
|
||||
*
|
||||
* @param string $vid Vid
|
||||
* @param string $mid mid
|
||||
* @param string $format Feed format. ef)xe, atom, rss1.0
|
||||
* @return string
|
||||
**/
|
||||
function getModuleFeedUrl($vid = null, $mid, $format) {
|
||||
if(Context::isAllowRewrite()) {
|
||||
$request_uri = Context::getRequestUri();
|
||||
// If the virtual site variable exists and it is different from mid (vid and mid should not be the same)
|
||||
if($vid && $vid != $mid) {
|
||||
return $request_uri.$vid.'/'.$mid.'/'.$format;
|
||||
}
|
||||
else {
|
||||
return $request_uri.$mid.'/'.$format;
|
||||
}
|
||||
}
|
||||
else {
|
||||
return getUrl('','mid',$mid,'act',$format);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Return the RSS configurations of the specific modules
|
||||
*
|
||||
* @param integer $module_srl Module_srl
|
||||
* @return Object
|
||||
**/
|
||||
function getRssModuleConfig($module_srl) {
|
||||
// Get the configurations of the rss module
|
||||
$oModuleModel = &getModel('module');
|
||||
$module_rss_config = $oModuleModel->getModulePartConfig('rss', $module_srl);
|
||||
if(!$module_rss_config) $module_rss_config->open_rss = 'N';
|
||||
$module_rss_config->module_srl = $module_srl;
|
||||
return $module_rss_config;
|
||||
}
|
||||
}
|
||||
?>
|
||||
/**
|
||||
* Return the RSS configurations of the specific modules
|
||||
*
|
||||
* @param integer $module_srl Module_srl
|
||||
* @return Object
|
||||
*/
|
||||
function getRssModuleConfig($module_srl)
|
||||
{
|
||||
// Get the configurations of the rss module
|
||||
$oModuleModel = &getModel('module');
|
||||
$module_rss_config = $oModuleModel->getModulePartConfig('rss', $module_srl);
|
||||
if(!$module_rss_config)
|
||||
{
|
||||
$module_rss_config = new stdClass();
|
||||
$module_rss_config->open_rss = 'N';
|
||||
}
|
||||
$module_rss_config->module_srl = $module_srl;
|
||||
return $module_rss_config;
|
||||
}
|
||||
}
|
||||
/* End of file rss.model.php */
|
||||
/* Location: ./modules/rss/rss.model.php */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue