Renvoi les infos d'une personne

@param int $id ID

@return array
554068
public function getInfosPersonne($id = 0)
    {
        $req = "
            SELECT idPersonne, p.nom as nom, p.prenom as prenom, m.nom as nomMetier , p.dateNaissance dateNaissance, p.dateDeces as dateDeces, p.description as description
            FROM personne p
            LEFT JOIN metier m ON m.idMetier = p.idMetier
            WHERE p.idPersonne = '".mysql_real_escape_string($id)."'
        ";


        $res = $this->connexionBdd->requete($req);

        $fetch = mysql_fetch_assoc($res);
        $fetch['nom']=stripslashes($fetch['nom']);
        $fetch['prenom']=stripslashes($fetch['prenom']);

        return $fetch;
    }
659471
public function getUser($id = 0)
    {
        $auth = false;

        if ($id === 0 && isset($this->_accesstoken)) {
            $id = 'self';
            $auth = true;
        }

        return $this->_makeCall('users/' . $id, $auth);
    }
639446
public function getElement( $id )
	{
		$result = array();

		if ( isset( $this->elements[ $id ] ) )
		{
			foreach ( $this->elements[ $id ] as $key => &$element )
			{
				if ( isset( $element['parent'] ) ) continue;
				$element['parent'] = 'xbrl';
			}
			unset( $element );

			$result = $this->elements[ $id ];
		}

		if ( ! isset( $this->tupleRefs[ $id ] ) )
		{
			return $result;
		}
		// The rest of this needs sorting
		$tuple = $this->tupleRefs[ $id ];
		$tupleId = key( $tuple );

		if ( ! isset( $this->elements[ $tupleId ] ) )
		{
			return $result;
		}

		// $fact = array();

		foreach ( $tuple[ $tupleId ] as $index )
		{
			foreach ( $this->elements[ $tupleId ][ $index ]['tuple_elements'][ $id ] as $key => $entry )
			{
				if ( ! isset( $entry['tupleid'] ) )
				{
					$entry['tupleid'] = $tupleId;
				}
				$result[ $entry['guid'] ] = $entry;
			}
		}

		return $result;
	}
1220677
public function getInfo($id)
    {
        // 验证有效性
        if ($this->isValid($id) === false) {
            return false;
        }
        $code = $this->_checkIdArgument($id);
        $addressInfo = $this->_getAddressInfo($code['addressCode'], $code['birthdayCode']);

        return [
            'addressCode'   => $code['addressCode'],
            'abandoned'     => isset($this->_addressCodeList[$code['addressCode']]) ? 0 : 1,
            'address'       => is_array($addressInfo) ? implode($addressInfo) : '',
            'addressTree'   => array_values($addressInfo),
            'birthdayCode'  => date('Y-m-d', strtotime($code['birthdayCode'])),
            'constellation' => $this->_getConstellation($code['birthdayCode']),
            'chineseZodiac' => $this->_getChineseZodiac($code['birthdayCode']),
            'sex'           => ($code['order'] % 2 === 0 ? 0 : 1),
            'length'        => $code['type'],
            'checkBit'      => $code['checkBit'],
        ];
    }
591608
public function loginById($id)
    {
        /** @var User $user */
        $user = wei()->user()->findById($id);
        if (!$user) {
            return ['code' => -1, 'message' => '用户不存在'];
        } else {
            return $this->loginByRecord($user);
        }
    }
513064
public function MangaNews(int $id): array
    {
        return $this->myanimelist->getNewsList(
            new Request\Manga\MangaNewsRequest($id)
        );
    }
1124850
public function getById($id)
    {
        $list = $this->getByCriteria($id, $this->getUniqueId());
        return reset($list);
    }
291813
public function getUsername($id)
    {
        $plus = new \Google_Service_PlusDomains($this->googleClient);
        $user = $plus->people->get($id);

        return $user->getEmails()[0]['value'];
    }
1225658
public function getById($id)
    {
		$repo   = $this->getRepository('erdiko\users\entities\User');
		$result = $repo->findOneBy(array('id' => $id ));

		return $result;
	}
1219724
public function findOrFail(int $id)
    {
        $response = $this->model->with($this->with)->findOrFail($id);
        $this->with = [];
        return $response;
    }
697376
public function getInfoEdit($id)
    {
        $id = Container::get('hooks')->fire('model.post.get_info_edit_start', $id);

        $cur_post['select'] = ['fid' => 'f.id', 'f.forum_name', 'f.moderators', 'f.redirect_url',
            'fp.post_topics', 'tid' => 't.id', 't.subject', 't.posted', 't.first_post_id', 't.sticky',
            't.closed', 'p.poster', 'p.poster_id', 'p.message', 'p.hide_smilies'];
//        $cur_post['where'] = array(
//            array('fp.read_forum' => 'IS NULL'),
//            array('fp.read_forum' => '1')
//        );

        $cur_post = DB::forTable('posts')
                    ->table_alias('p')
                    ->select_many($cur_post['select'])
                    ->inner_join(DB::prefix().'topics', ['t.id', '=', 'p.topic_id'], 't')
                    ->inner_join(DB::prefix().'forums', ['f.id', '=', 't.forum_id'], 'f')
//                    ->left_outer_join('forum_perms', array('fp.forum_id', '=', 'f.id'), 'fp')
//                    ->left_outer_join('forum_perms', array('fp.group_id', '=', User::get()->g_id), null, true)
            ->left_outer_join(
                DB::prefix().'forum_perms',
                '(fp.forum_id=f.id AND fp.group_id='. User::get()->g_id.')',
                'fp'
            )
//                    ->where_any_is($cur_post['where'])
                ->where_raw('(fp.read_forum IS NULL OR fp.read_forum=1)')
                    ->where('p.id', $id);

        $cur_post = Container::get('hooks')->fireDB('model.post.get_info_edit_query', $cur_post);

        $cur_post = $cur_post->find_one();

        if (!$cur_post) {
            throw new  RunBBException(__('Bad request'), 400);
        }

        return $cur_post;
    }
85440
public function lists($id = 0)
    {
        $response = $this->http->get(self::API_GET.'?id='.$id);

        return $response['department'];
    }
213059
public function getChildren($id): array
    {
        $result = [];
        $childrenIds = (array)($this->childrenIds[$id] ?? []);
        foreach ($childrenIds as $childId) {
            if ($child = $this->getItem($childId)) {
                $result[$childId] = $child;
            }
        }
        return $result;
    }
1365749
public function getAlbums($id) {
		$r = $this->method("audio.getAlbums", array(
			"owner_id" => $id,
			"v"        => '3.0'
		));
		$a = array();
		for( $i = 1; $i <= $r->response[0]; $i++ ) {
			$a[strtolower($r->response[$i]->title)] = $r->response[$i]->album_id;
		}

		return $a;
	}
448502
public function getOne($id)
    {
        $info = ORM::for_table('files')
            ->select_many(
                'id',
                'name',
                'ext',
                'created_at'
            )
            ->where_null('deleted_at')
            ->find_one($id);
        if (is_object($info)) {
            return Response::data($info->as_array());
        } else {
            return Response::error404('Файл не найден');
        }
    }
837929
public function getField($id)
    {
        if (!isset($this->_fields[$id])) {
            $this->$id = ''; // @see SearchIndexDocument::__set()
        }
        return $this->_fields[$id];
    }
1086093
public function exportById($id): array
    {
        $user = Craft::$app->users->getUserById($id);
        return $this->export($user);
    }