class userCfs extends moduleCfs { protected $_data = array(); protected $_curentID = 0; protected $_dataLoaded = false; public function loadUserData() { return $this->getCurrent(); } public function isAdmin() { if(!function_exists('wp_get_current_user')) { frameCfs::_()->loadPlugins(); } return current_user_can( frameCfs::_()->getModule('adminmenu')->getMainCap() ); } public function getCurrentUserPosition() { if($this->isAdmin()) return CFS_ADMIN; else if($this->getCurrentID()) return CFS_LOGGED; else return CFS_GUEST; } public function getCurrent() { return wp_get_current_user(); } public function getCurrentID() { $this->_loadUserData(); return $this->_curentID; } protected function _loadUserData() { if(!$this->_dataLoaded) { if(!function_exists('wp_get_current_user')) frameCfs::_()->loadPlugins(); $user = wp_get_current_user(); $this->_data = $user->data; $this->_curentID = $user->ID; $this->_dataLoaded = true; } } public function getAdminsList() { global $wpdb; $admins = dbCfs::get('SELECT * FROM #__users INNER JOIN #__usermeta ON #__users.ID = #__usermeta.user_id WHERE #__usermeta.meta_key = "#__capabilities" AND #__usermeta.meta_value LIKE "%administrator%"'); return $admins; } public function isLoggedIn() { return is_user_logged_in(); } } Marc Brandeis – Brandeis & Associates

Marc Brandeis

Areas of expertise
  • Audit defense
  • Credit and refund analysis
  • Letter rulings
  • Nexus reviews
  • Resale and exemptions certificate management
  • Single and multi-state taxability research
  • Voluntary disclosures
  • Certified Public Accountant
  • BA, University of California, Berkeley

Brandeis & Associates is a specialty sales and use tax consulting firm committed to providing quality professional services at affordable rates.

Marc Brandeis began his career as a Tax Auditor with the California State Board of Equalization in their Santa Ana district office in 1999.  During that time, he audited businesses in a variety of industries to ensure their compliance with sales and use tax laws and regulations.  In 2005, after receiving a promotion to Senior Tax Auditor, he left state service to work as a consultant in a “Big Four” public accounting firm.

In 2007, Marc founded Brandeis & Associates, a sales & use tax specialty consulting firm committed to leveraging his experience in sales tax laws, regulations, and audit procedures to solving the most complex sales and use tax problems.