Exemple #1
0
 /**
  *Constructor
  *
  */
 public function CommunityModelApps()
 {
     parent::JCCModel();
     $mainframe = JFactory::getApplication();
     // Get pagination request variables
     $limit = 10;
     $limitstart = JRequest::getVar('limitstart', 0, 'REQUEST');
     $this->setState('limit', $limit);
     $this->setState('limitstart', $limitstart);
 }
Exemple #2
0
 function __construct()
 {
     // Get cache object.
     $oCache = CCache::inject($this);
     $oCache->addMethod('add', CCache::ACTION_REMOVE, array(COMMUNITY_CACHE_TAG_ACTIVITIES));
     $oCache->addMethod('removeOneActivity', CCache::ACTION_REMOVE, array(COMMUNITY_CACHE_TAG_ACTIVITIES));
     $oCache->addMethod('removeActivity', CCache::ACTION_REMOVE, array(COMMUNITY_CACHE_TAG_ACTIVITIES));
     $oCache->addMethod('deleteActivity', CCache::ACTION_REMOVE, array(COMMUNITY_CACHE_TAG_ACTIVITIES));
     parent::__construct();
 }
Exemple #3
0
 /**
  * Constructor
  */
 function CommunityModelDiscussions()
 {
     parent::JCCModel();
     $mainframe =& JFactory::getApplication();
     // Get pagination request variables
     $limit = $mainframe->getCfg('list_limit') == 0 ? 5 : $mainframe->getCfg('list_limit');
     $limitstart = JRequest::getVar('limitstart', 0, 'REQUEST');
     // In case limit has been changed, adjust it
     $limitstart = $limit != 0 ? floor($limitstart / $limit) * $limit : 0;
     $this->setState('limit', $limit);
     $this->setState('limitstart', $limitstart);
 }
Exemple #4
0
 function CommunityModelVideos()
 {
     parent::JCCModel();
     $id = JRequest::getVar('videoid', 0, '', 'int');
     $this->setId((int) $id);
     $mainframe = JFactory::getApplication();
     // Get the pagination request variables
     $limit = $mainframe->getCfg('list_limit') == 0 ? 5 : $mainframe->getCfg('list_limit');
     $limitstart = JRequest::getVar('limitstart', 0, 'REQUEST');
     // In case limit has been changed, adjust limitstart accordingly
     $limitstart = $limit != 0 ? floor($limitstart / $limit) * $limit : 0;
     $this->setState('limit', $limit);
     $this->setState('limitstart', $limitstart);
 }
 /**
  *Constructor
  *
  */
 public function CommunityModelApps()
 {
     parent::JCCModel();
     $mainframe = JFactory::getApplication();
     $jinput = $mainframe->input;
     // Get pagination request variables
     $limit = 10;
     $limitstart = $jinput->get('limitstart', 0, 'INT');
     //JRequest::getVar('limitstart', 0, 'REQUEST');
     if (empty($limitstart)) {
         $limitstart = $jinput->get('start', 0, 'INT');
     }
     $this->setState('limit', $limit);
     $this->setState('limitstart', $limitstart);
 }
Exemple #6
0
 /**
  * Constructor
  */
 public function CommunityModelGroups()
 {
     parent::JCCModel();
     $mainframe = JFactory::getApplication();
     // Get pagination request variables
     $limit = $mainframe->getCfg('list_limit') == 0 ? 5 : $mainframe->getCfg('list_limit');
     $limitstart = JRequest::getVar('limitstart', 0, 'REQUEST');
     // In case limit has been changed, adjust it
     $limitstart = $limit != 0 ? floor($limitstart / $limit) * $limit : 0;
     $this->setState('limit', $limit);
     $this->setState('limitstart', $limitstart);
     // Get cache object.
     $oCache = CCache::inject($this);
     $oCache->addMethod('setImage', CCache::ACTION_REMOVE, array(COMMUNITY_CACHE_TAG_GROUPS));
 }
 /**
  * Constructor
  */
 public function CommunityModelEvents()
 {
     parent::JCCModel();
     $mainframe = JFactory::getApplication();
     $jinput = $mainframe->input;
     // Get pagination request variables
     $limit = $mainframe->getCfg('list_limit') == 0 ? 5 : $mainframe->getCfg('list_limit');
     $limitstart = $jinput->request->get('limitstart', 0, 'INT');
     //JRequest::getVar('limitstart', 0, 'REQUEST');
     if (empty($limitstart)) {
         $limitstart = $jinput->get('start', 0, 'INT');
     }
     // In case limit has been changed, adjust it
     $limitstart = $limit != 0 ? floor($limitstart / $limit) * $limit : 0;
     $this->setState('limit', $limit);
     $this->setState('limitstart', $limitstart);
 }
Exemple #8
0
 public function CommunityModelVideos()
 {
     parent::JCCModel();
     $id = JRequest::getVar('videoid', 0, '', 'int');
     $this->setId((int) $id);
     $mainframe = JFactory::getApplication();
     // Get the pagination request variables
     $limit = $mainframe->getCfg('list_limit') == 0 ? 5 : $mainframe->getCfg('list_limit');
     $limitstart = JRequest::getVar('limitstart', 0, 'REQUEST');
     // In case limit has been changed, adjust limitstart accordingly
     $limitstart = $limit != 0 ? floor($limitstart / $limit) * $limit : 0;
     $this->setState('limit', $limit);
     $this->setState('limitstart', $limitstart);
     // Get cache object.
     $oCache = CCache::inject($this);
     $oCache->addMethod('updatePermission', CCache::ACTION_REMOVE, array(COMMUNITY_CACHE_TAG_VIDEOS));
 }
 public function CommunityModelVideos()
 {
     parent::JCCModel();
     $mainframe = JFactory::getApplication();
     $jinput = $mainframe->input;
     $id = $jinput->get('videoid', 0, 'int');
     $this->setId((int) $id);
     $config = CFactory::getConfig();
     // Get the pagination request variables
     $limit = $config->getString('listlimit');
     $limitstart = $jinput->request->get('limitstart', 0, 'INT');
     if (empty($limitstart)) {
         $limitstart = $jinput->get('start', 0, 'INT');
     }
     // In case limit has been changed, adjust limitstart accordingly
     $limitstart = $limit != 0 ? floor($limitstart / $limit) * $limit : 0;
     $this->setState('limit', $limit);
     $this->setState('limitstart', $limitstart);
 }
 /**
  * Construct
  * @param type $config
  */
 public function __construct($config = array())
 {
     parent::__construct($config);
     $this->_me = CFactory::getUser();
 }
Exemple #11
0
 public function CommunityModelPhotos()
 {
     parent::JCCModel();
 }