Is this people ID allowed to be displayed in the single contact display?

@param  int        $id        LaSalleCRM people ID
@return bool
488537
public function isAllowedPeopleIdSingleContactDisplay($id) {

        if ($id == 0) {
            return false;
        }

        $allowedIDs = Config::get('lasallecrmcontact.single_contact_display_people_id_allowed');

        foreach ($allowedIDs as $allowedID) {
            if ($allowedID == $id) {
                return true;
            }
        }
        return false;
    }
648626
public function show($id)
    {
        $options = $this->getParams('includes');

        $product = Subbly::api('subbly.product')->find($id, $options);

        return $this->jsonResponse(array(
            'product' => $this->presenter->single($product),
        ));
    }
824732
public function where_id_is($id)
        {
            return (Arrays::is($this->_getIdColumnName())) ?
                $this->where($this->_getCompoundIdColumnValues($id), null) :
                $this->where($this->_getIdColumnName(), $id);
        }
224279
public function isTeamAdmin($id)
    {
        $team = $this->teams->find($id);

        if ($team) {
            return (int) $team->user_id === (int) $this->id;
        }

        return false;
    }
1367986
public function isDisabled($id)
    {
        $code = $this->getIdentifier($id);

        if (array_key_exists($code, $this->disabledPlugins)) {
            return true;
        }

        return false;
    }
1208207
public function iHaveUserWithId( $id )
    {
        $name = $this->findNonExistingUserName();
        $user = $this->getUserManager()->ensureUserExists( $name );
        $this->addValuesToKeyMap( $id, $user->id );
    }
429381
public function getPersonById($id)
    {
        $id = (int) $id;
        $id = max(0, $id);

        return $this->request('people/'.$id);
    }
936119
public function show($id)
    {
        $request = $this->makeRequest('show');
        $model = $this->service->get($id);
        return $this->maybeMakeResource('single', $model);

    }
431734
public function hasGroupId(int $id) : bool
    {
        $usergroups = $this->usergroups;

        foreach ($usergroups as $index => $usergroup) {
            if ($usergroup->group_id === $id) {
                return true;
            }
        }

        return false;
    }
1157423
public static function isPerson($id)
    {
        global $config;
        $req = "
            SELECT idPersonne
            FROM _personneEvenement
            WHERE idEvenement = '".mysql_real_escape_string($id)."'
        ";
        $res = $config->connexionBdd->requete($req);

        if ($fetch=mysql_fetch_assoc($res)) {
            return intval($fetch["idPersonne"]);
        } else {
            return false;
        }
    }
320348
public function checkUserExistenceById( $id )
    {
        /** @var \eZ\Publish\API\Repository\Repository $repository */
        $repository = $this->getRepository();
        $userService = $repository->getUserService();

        return $repository->sudo(
            function() use( $id, $userService )
            {
                // attempt to load the user with the id
                try
                {
                    $userService->loadUser( $id );
                    return true;
                }
                catch ( ApiExceptions\NotFoundException $e )
                {
                    return false;
                }
            }
        );
    }
1173345
public static function is_contact(int $userid, int $contactid) : bool {
        global $DB;

        $sql = "SELECT id
                  FROM {message_contacts} mc
                 WHERE (mc.userid = ? AND mc.contactid = ?)
                    OR (mc.userid = ? AND mc.contactid = ?)";
        return $DB->record_exists_sql($sql, [$userid, $contactid, $contactid, $userid]);
    }
292244
public static function setCurrentID($id)
    {
        $type = self::getType();
        $appID = App::getCurrentID();
        if (array_key_exists($id, self::$instances[$appID][$type])) {
            self::$id = $id;

            return true;
        }

        return false;
    }
25031
private function _validateCustomerId($id = null)
    {
        if (empty($id) || trim($id) == "") {
            throw new InvalidArgumentException(
            'expected customer id to be set'
            );
        }
        if (!preg_match('/^[0-9A-Za-z_-]+$/', $id)) {
            throw new InvalidArgumentException(
            $id . ' is an invalid customer id.'
            );
        }

    }
9953
public static function oneOrNew($id)
	{
		$row = self::one($id);

		// See if we have a valid row
		if ($row === false)
		{
			$row = self::blank();
		}

		return $row;
	}
1088905
public function getEntity($id = 0)
    {
        try {
            $q = $this->createQueryBuilder($this->getTableAlias());
            if (is_array($id)) {
                $this->buildSelectClause($q, $id);
                $contactId = (int) $id['id'];
            } else {
                $q->select('l, u, i')
                    ->leftJoin('l.ipAddresses', 'i')
                    ->leftJoin('l.owner', 'u');
                $contactId = $id;
            }
            $q->andWhere($this->getTableAlias().'.id = :id')
                ->setParameter('id', (int) $contactId);
            $entity = $q->getQuery()->getSingleResult();
        } catch (\Exception $e) {
            $entity = null;
        }

        if (null === $entity) {
            return $entity;
        }

        // triggerModel is private in LeadModel. Not really an error bur not really proper either.
        //  if (!empty($this->triggerModel)) {
        //      $entity->setColor($this->triggerModel->getColorForLeadPoints($entity->getPoints()));
        //  }

        // Alterations to core start.
        $fieldValues = $this->getExtendedFieldValues($id, true, 'lead');
        // Alterations to core end.
        $entity->setFields($fieldValues);

        $entity->setAvailableSocialFields($this->availableSocialFields);

        return $entity;
    }
261012
public function hasInstance($id) {
        $id = $this->normalizeID($id);

        return isset($this->instances[$id]);
    }