/** * Constructor * * @return void * @since 1.5.5 */ public function __construct() { parent::__construct(); // Additional security check for unregistered users if (!$this->_user->get('id') && !$this->_config->get('jg_unregistered_permissions')) { throw new Exception(JText::_('COM_JOOMGALLERY_COMMON_MSG_YOU_ARE_NOT_LOGGED')); } $array = JRequest::getVar('catid', 0, '', 'array'); $this->setId($array[0]); }
/** * Constructor * * @return void * @since 1.0.0 */ public function __construct() { parent::__construct(); // Check access rights if (!$this->_config->get('jg_favourites') || !$this->_config->get('jg_usefavouritesforpubliczip') && !$this->_user->get('id')) { $this->_mainframe->redirect(JRoute::_('index.php?view=gallery', false), JText::_('COM_JOOMGALLERY_COMMON_PERMISSION_DENIED'), 'notice'); } // Set the image id $view = JRequest::getCmd('view'); $task = JRequest::getCmd('task'); if ($view != 'favourites' && $view != 'downloadzip' && $task != 'removeall' && $task != 'switchlayout' && $task != 'createzip' && $task != 'addimages') { $id = JRequest::getInt('id'); $this->setId($id); } // Check whether we will work with the database or the session if ($this->_user->get('id') && $this->_config->get('jg_usefavouritesforzip') != 1) { $this->using_database = true; $this->_output = 'COM_JOOMGALLERY_FAVOURITES_MSG_'; $query = $this->_db->getQuery(true)->select('piclist, layout')->from(_JOOM_TABLE_USERS)->where('uuserid = ' . $this->_user->get('id')); $this->_db->setQuery($query); if ($row = $this->_db->loadObject()) { $this->user_exists = true; $this->piclist = $row->piclist; $this->layout = $row->layout; } else { $this->user_exists = false; $this->piclist = null; $this->layout = 0; } } else { $this->using_database = false; $this->_output = 'COM_JOOMGALLERY_FAVOURITES_ZIP_MSG_'; $this->piclist = $this->_mainframe->getUserState('joom.favourites.pictures'); $this->layout = $this->_mainframe->getUserState('joom.favourites.layout'); } }
/** * Constructor * * @param array An optional associative array of configuration settings * @return void * @since 2.1 */ public function __construct($config = array()) { parent::__construct($config); $this->filter_fields = array('cid', 'c.cid', 'name', 'c.name', 'alias', 'c.alias', 'parent_id', 'c.parent_id', 'published', 'c.published', 'access', 'c.access', 'access_level', 'owner', 'c.owner', 'lft', 'c.lft', 'rgt', 'c.rgt', 'level', 'c.level'); }
/** * Constructor * * @return void * @since 1.5.5 */ public function __construct() { $this->filter_fields = array('c.cid', 'c.name', 'c.alias', 'c.parent_id', 'c.published', 'c.access', 'c.owner', 'c.lft', 'c.rgt', 'c.level', 'images'); parent::__construct(); }
/** * Constructor * * @return void * @since 1.5.5 */ public function __construct() { parent::__construct(); $id = JRequest::getInt('id'); $this->setId($id); }
/** * Constructor * * @return void * @since 1.5.5 */ public function __construct() { parent::__construct(); $array = JRequest::getVar('cid', 0, '', 'array'); $this->setId((int) $array[0]); }
/** * Constructor * * @param array An optional associative array of configuration settings * @return void * @since 2.0 */ public function __construct($config = array()) { parent::__construct($config); $this->filter_fields = array('id', 'a.id', 'imgtitle', 'a.imgtitle', 'alias', 'a.alias', 'catid', 'a.catid', 'category_name', 'published', 'a.published', 'approved', 'a.approved', 'access', 'a.access', 'access_level', 'owner', 'a.owner', 'imgauthor', 'a.imgauthor', 'imgdate', 'a.imgdate', 'hits', 'a.hits', 'downloads', 'a.downloads', 'ordering', 'a.ordering', 'special', 'a.special'); }
/** * Constructor * * @return void * @since 1.5.5 */ public function __construct() { parent::__construct(); }
/** * Constructor * * @param array An optional associative array of configuration settings * @return void * @since 2.0 */ public function __construct($config = array()) { parent::__construct($config); $this->filter_fields = array('id', 'a.id', 'title', 'a.title', 'alias', 'a.alias', 'thumb', 'a.thumb', 'img', 'a.img', 'orig', 'a.orig', 'fullpath', 'a.fullpath', 'type', 'a.type', 'refid', 'a.refid', 'user', 'category'); }
/** * Constructor * * @return void * @since 1.5.5 */ public function __construct() { $this->filter_fields = array('imgtitle', 'ordering', 'imgdate', 'hits', 'downloads', 'published', 'approved', 'catid'); parent::__construct(); }
/** * Constructor * * @param array An optional associative array of configuration settings * @return void * @since 2.0 */ public function __construct($config = array()) { parent::__construct($config); $this->filter_fields = array('cmtid', 'c.cmtid', 'user', 'cmttext', 'c.cmttext', 'published', 'c.published', 'approved', 'c.approved', 'cmtip', 'c.cmtip', 'i.imgtitle', 'cmtdate', 'c.cmtdate', 'state'); }
/** * Constructor * * @param array An optional associative array of configuration settings * @return void * @since 2.0 */ public function __construct($config = array()) { parent::__construct($config); $this->filter_fields = array('id', 'c.id', 'title', 'g.title', 'lft', 'g.lft', 'ordering', 'c.ordering'); }
/** * Constructor * * @return void * @since 1.5.5 */ public function __construct() { parent::__construct(); $id = JRequest::getVar('id', 0, '', 'int'); $this->setId((int) $id); }