/** *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); }
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(); }
/** * 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); }
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); }
/** * 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); }
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(); }
public function CommunityModelPhotos() { parent::JCCModel(); }