Ejemplo n.º 1
0
 public function jobseeker()
 {
     $application = JFactory::getApplication();
     $userid = self::get_user();
     if (isset($userid)) {
         $profile = new Jobseeker($userid);
         $profdata = $profile->currentuser();
         $result_con = $profile->getconnection();
         $this->profiledata = $profdata->fetch_object();
         while ($row_users = $result_con[1]->fetch_object()) {
             $row_name = $result_con[0]->fetch_object();
             $avatarUrl = (object) $profile->getavatar($row_users->id);
             $connection = $row_users;
             $arrimg = (array) $avatarUrl;
             $arrcon = (array) $connection;
             $name = $row_name->name;
             $con = (object) array_merge($arrimg, $arrcon);
             $arrname['common'] = $name;
             $arrmergecon = (array) $con;
             $this->mergecon[] = (object) array_merge($arrname, $arrmergecon);
             // $this->connection[] = $row_users;
         }
     } else {
         $loginRedirect = JRoute::_('index.php?option=com_user&view=login');
         $msg = 'Please login your account to access page.';
         $this->setRedirect($loginRedirect, $msg);
     }
     // echo "<pre>";
     // print_r($this->profiledata);exit;
 }
Ejemplo n.º 2
0
 public function jobseeker()
 {
     $userid = self::get_user();
     $profile = new Jobseeker($userid);
     $profdata = $profile->currentuser();
     $result_con = $profile->getconnection();
     $this->profiledata = $profdata->fetch_object();
     while ($row_users = $result_con[1]->fetch_object()) {
         $row_name = $result_con[0]->fetch_object();
         $avatarUrl = (object) $profile->getavatar($row_users->id);
         $connection = $row_users;
         $arrimg = (array) $avatarUrl;
         $arrcon = (array) $connection;
         $name = $row_name->name;
         $con = (object) array_merge($arrimg, $arrcon);
         $arrname['common'] = $name;
         $arrmergecon = (array) $con;
         $this->mergecon[] = (object) array_merge($arrname, $arrmergecon);
         // $this->connection[] = $row_users;
     }
     // echo "<pre>";
     // print_r($this->profiledata);exit;
 }