XpressEngine Core  1.11.2
 All Classes Namespaces Files Functions Variables Pages
rss.model.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (C) NAVER <http://www.navercorp.com> */
8 class rssModel extends rss
9 {
19  function getModuleFeedUrl($vid, $mid, $format = 'rss', $absolute_url = false)
20  {
21  if($absolute_url)
22  {
23  return getFullUrl('','vid',$vid, 'mid',$mid, 'act',$format);
24  }
25  else
26  {
27  return getUrl('','vid',$vid, 'mid',$mid, 'act',$format);
28  }
29  }
30 
38  {
39  // Get the configurations of the rss module
40  $oModuleModel = getModel('module');
41  $module_rss_config = $oModuleModel->getModulePartConfig('rss', $module_srl);
42  if(!$module_rss_config)
43  {
44  $module_rss_config = new stdClass();
45  $module_rss_config->open_rss = 'N';
46  }
47  $module_rss_config->module_srl = $module_srl;
48  return $module_rss_config;
49  }
50 }
51 /* End of file rss.model.php */
52 /* Location: ./modules/rss/rss.model.php */
$oModuleModel
Definition: ko.install.php:236
getRssModuleConfig($module_srl)
Definition: rss.model.php:37
$module_srl
integer value to represent a run-time instance of Module (XE Module)
$mid
string to represent run-time instance of Module (XE Module)
getModuleFeedUrl($vid, $mid, $format= 'rss', $absolute_url=false)
Definition: rss.model.php:19
getModel($module_name)
Definition: func.inc.php:145
Definition: rss.class.php:8
getUrl()
Definition: func.inc.php:297
getFullUrl()
Definition: func.inc.php:361