/** * Do block user * @param type $userId * @return boolean */ public function blockUser($userId, $type) { $block = new blockUser(); return $block->block($userId, $type); }
/** * Block user */ public function blockUser() { $my = CFactory::getUser(); if ($my->id == 0) { return $this->blockUnregister(); } $userId = JRequest::getVar('fid', '', 'GET'); CFactory::load('libraries', 'block'); $blockUser = new blockUser(); $blockUser->block($userId); }
/** * Block user */ public function blockUser() { $my = CFactory::getUser(); $mainframe = JFactory::getApplication(); $jinput = $mainframe->input; if ($my->id == 0) { return $this->blockUnregister(); } $userId = $jinput->get->get('fid', '', 'INT'); CFactory::load('libraries', 'block'); $blockUser = new blockUser(); $blockUser->block($userId); }