Returns the subscription item for the given ID

@param string $id Unique subscription ID
@return \Aimeos\MShop\Subscription\Item\Iface Subscription object
503804
public function get( $id )
	{
		$context = $this->getContext();

		$filter = $this->manager->createSearch( true );
		$expr = [
			$filter->compare( '==', 'subscription.id', $id ),
			$filter->compare( '==', 'order.base.customerid', $context->getUserId() ),
			$filter->getConditions(),
		];
		$filter->setConditions( $filter->combine( '&&', $expr ) );

		$items = $this->manager->searchItems( $filter );

		if( ( $item = reset( $items ) ) === false )
		{
			$msg = 'Invalid subscription ID "%1$s" for customer ID "%2$s"';
			throw new \Aimeos\Controller\Frontend\Subscription\Exception( sprintf( $msg, $id, $context->getUserId() ) );
		}

		return $item;
	}
537776
public function getServiceNameById($id)
    {
        $map = $this->getServiceIdNameMap();
        if (array_key_exists($id, $map)) {
            return $map[$id];
        }

        return null;
    }
1173924
public function getById(int $id)
	{
		return $this->setAuthorizer($this->getModel()->where('id', '=', $id)->first());
	}
206309
public function getConsignment($id)
    {
        /** @var Consignment $response */
        $response = $this->request('adePickup_GetConsign', array('id' => $id));

        if ($response) {
            $response->setId($id);
            $response->setDispatched(true);
        }

        return $response;
    }
1246851
public function itemGet($id) {
		$list = $this->itemsGet(array($id));
		$item = reset($list);
		return $item;
	}
565748
public function find($id)
    {
        $response = $this->ontraport->get(
            $this->getSingularNamespace(), $this->toArray(compact('id'))
        );

        return $this->ontraport->item($this, $response);
    }
1052923
public function getOne($id)
    {
        $url = '/notifications/'.$id.'?app_id='.$this->api->getConfig()->getApplicationId();

        return $this->api->request('GET', $url, [
            'Authorization' => 'Basic '.$this->api->getConfig()->getApplicationAuthKey(),
        ]);
    }
1193865
public static function find($id)
    {
        $item = UserRBACHelper::getAuthManager()->getRule($id);
        if ($item !== null) {
            return new static($item);
        }

        return null;
    }
219187
public function cancel( $id )
	{
		$item = $this->manager->getItem( $id );
		$item = $item->setDateEnd( $item->getDateNext() )
			->setReason( \Aimeos\MShop\Subscription\Item\Iface::REASON_CANCEL );

		return $this->manager->saveItem( $item );
	}
994970
public function get($id)
    {
        $site = $this->getCurrentSite();

        $result = $this->buildSiteApiResponse($site);

        return new ApiJsonModel($result, 0, 'Success');
    }
846821
public function &get($id)
    {
        if (isset($this->instances[$id])) {
            return $this->instances[$id];
        }

        $result = $this->resolve($id);

        if (array_key_exists($id, $this->instances)) {
            $this->instances[$id] = & $result;
        }

        return $result;
    }
87042
public function getByID($id)
    {
        $site = $this->entityManager->getRepository('Concrete\Core\Entity\Site\Site')
            ->find($id);
        $factory = new Factory($this->config);
        if (is_object($site)) {
            return $factory->createEntity($site);
        }
    }
1328147
public function get($id) {
        $id=($id==='')?"0":$id;
        if (!isset($this->items[$id])) {
            return new MessageItem(); // we returns an empty error.
        }
        return $this->items[$id];
    }
1054282
public function get($id)
    {
        if ($id instanceof \Closure) {
            return $id($this);
        }

        if (!$this->has($id)) {
            $service = $this->factory->create($id, $this);
            $this->repository->set($id, $service);
        }

        return $this->repository->get($id);
    }
935045
public function find($id)
    {
        return Arr::first($this->items, function ($key, Contract $skill) use ($id) {
            return $skill->getId() === $id;
        }, null);
    }
985157
public function getSubscription($id)
    {
        $url = $this->accountsEndpoint . 'subscriptions';
        return Subscription::get($id, $url, $this->connector->getClient());
    }
820536
public function get(string $id): ?\BearFramework\App\Addon
    {
        if (isset($this->data[$id])) {
            return clone($this->data[$id]);
        }
        return null;
    }