AAAAhome/academiac/www/administrator/components/com_csvi/tables/com_akeebasubs/affiliates.php000060400000003460151466003520026114 0ustar00getFields() as $k => $v) { // If the property is not private, reset it. if (strpos($k, '_') !== 0) { $this->$k = NULL; } } } /** * Check if the affiliate already exists * * @copyright * @author RolandD * @todo * @see * @access public * @param * @return * @since 4.0 */ public function check() { $db = JFactory::getDbo(); $query = $db->getQuery(true); $query->select($db->quoteName($this->_tbl_key)); $query->from($db->quoteName($this->_tbl)); $query->where($db->quoteName('user_id').' = '.$db->quote($this->user_id)); $db->setQuery($query); $this->akeebasubs_affiliate_id = $db->loadResult(); if ($this->akeebasubs_affiliate_id > 0) return true; else return false; } } ?>