Exemple #1
0
 /**
  * Do block user
  * @param type $userId
  * @return boolean
  */
 public function blockUser($userId, $type)
 {
     $block = new blockUser();
     return $block->block($userId, $type);
 }
Exemple #2
0
 /**
  * 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);
 }
Exemple #3
0
 /**
  * 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);
 }