Tenta localizar um serviço pelo seu id.

@param string $id
558214
public function locate($id)
    {
        $parts = explode('.', $id);
        $pack = $parts[0];
        $service = end($parts);

        if (!isset($this->packs[$pack])) {
            return false;
        }

        if (isset($this->map[$service])) {
            $service = $this->map[$service];
        }

        $service = $this->keyToName($service);
        $location = $this->getPathLocation($parts);
        $serviceClassName = $this->packs[$pack]->getNameSpace().'\\'.$location.$service;

        $this->resolver->resolveService($serviceClassName, $this->packs[$pack]);
    }
698917
public function setId( $id )
	{
		if( $id === $this->getId() ) { return; }

		$this->_values['id'] = (string) $id ;
		$this->setModified();
	}
502156
public function setId($id = null)
    {
        if ($id !== null) {
            $id = preg_replace("/[^a-z0-9_\\\d]/i", '_', $id);

            $this->id = (string) $id;
        }
    }
539214
public function initialized($id)
    {
        $id = strtolower($id);

        if ('service_container' === $id) {
            return false;
        }

        if (isset($this->aliases[$id])) {
            $id = $this->aliases[$id];
        }

        return isset($this->services[$id]);
    }
1229497
public function actionEdit(int $id): void
	{
		$this->content = $this->orm->content->getById($id);
		if (!$this->content) {
			$this->error();
		}
	}
818699
public function populateForm($id) {

        $db = \Cityware\Db\Factory::factory('zend');
        $platform = $db->getAdapter()->getPlatform();

        /* Verifica o schema se está setado ou não */
        $schema = (isset($this->configForm['schema']) and ! empty($this->configForm['schema'])) ? $this->configForm['schema'] : null;

        /* Define a tabela */
        $db->from($this->configForm['table'], 'tb', $schema);

        /* Define os campos */
        //$db->select('*');

        /* Define a coluna primária e monta a condição do SELECT */
        $metadata = new \Zend\Db\Metadata\Metadata($db->getAdapter());
        $constraints = $metadata->getTable($this->configForm['table'], $schema)->getConstraints();

        $varColunaPk = null;
        foreach ($constraints as $value) {
            if ($value->getType() == 'PRIMARY KEY') {
                $varColunaPk = $value->getColumns();
            }
        }

        $db->where($platform->quoteIdentifier('tb') . "." . $platform->quoteIdentifier(reset($varColunaPk)) . ' = ' . $id);



        /* Executa o SELECT */
        $db->setDebug(false);
        $rs = $db->executeSelectQuery();

        /* Formata qualquer coluta do tipo data */
        $return = \Cityware\Format\Date::formatDate($rs, 'd/m/Y');

        /* Retorna um array com os dados de preenchimento do formulário */
        return $return[0];
    }
311412
public function flushTraceId($id)
    {
        if (_CLI_) {
            if (isset($this->_traceId[$id])) {
                unset($this->_traceId[$id]);
            }
        }
    }
548724
public function deleteTranslation($locale, $id)
    {
        if ('en' === $locale) {
            $content = $this->content->findOneBy(['id' => $id]);
        } else {
            $content = $this->translations->findOneBy(['foreignKey' => $id, 'locale' => $locale]);
        }

        if ($content instanceof ContentTranslation || $content instanceof Content) {
            $this->manager->remove($content);
            $this->manager->flush();
        }
    }
298338
public function findByIdAndLocale($id, $locale)
    {
        $item = $this->itemRepository->findByIdAndLocale($id, $locale);

        if ($item) {
            return $this->itemFactory->createApiEntity($item, $locale);
        } else {
            return null;
        }
    }
610660
public function handleRemove(int $id) : void
    {
        if ($this->presenter->isAjax() && $this->presenter->user->isAllowed(CategoryAuthorizator::RES_REMOVE))
        {
            $this->categoryEntity = $this->categoryRepository->findOneById($id);

            $this->categoryManager->delete($this->categoryEntity);

            $this->presenter->notificationAjax(
                'Kategorie odstaněna',
                "Kategorie '{$this->categoryEntity->getName()}' byla úspěšně odstaněna.",
                'success',
                FALSE
            );

            $this->presenter->handleModalToggle('hide', '#wakers_category_remove_modal', FALSE);

            $this->onRemove();
        }
    }
182589
public function set_id( $id ) {
		$this->id = $this->is_valid_id( $id ) ? $id : $this->generate_session_id();
	}
1245570
public function load($id)
    {
        $language = $this->cache->get('ez-language-' . $id);
        if ($language === null) {
            $language = $this->innerHandler->load($id);
            $this->storeCache([$language]);
        }

        return $language;
    }
1006365
static function removeLanguage( $id )
    {
        $language = eZContentLanguage::fetch( $id );
        if ( $language )
        {
            return $language->removeThis();
        }
        else
        {
            return false;
        }
    }
824732
public function where_id_is($id)
        {
            return (Arrays::is($this->_getIdColumnName())) ?
                $this->where($this->_getCompoundIdColumnValues($id), null) :
                $this->where($this->_getIdColumnName(), $id);
        }
79876
private function createPrefix($id)
    {
        $this->prefix = substr($id, self::PREFIX_START, self::PREFIX_LENGTH);
    }
630472
public function renderAdd(int $id = null): void
	{
		$this['editForm']->setDefaults([
			'locale' => $this->localeService->defaultLocaleId,
			'parent' => $id
		]);
		$this->setView('edit');
		$this->template->viewLinks = false;
	}
166710
public function setId($id)
    {
        if ($this->id) {
            return;
        }
        if (strlen($id) >= 20) {
            $this->id = $id;

            return;
        }
        list($a, $b) = explode(' ', microtime());
        $this->id = preg_replace("/[^\d]/", '', $b.$a.$id);
    }