Fetches a content object state group by its numerical ID

@param integer $id
@return eZContentObjectStateGroup|boolean
179637
public static function fetchById( $id )
    {
        $stateGroups = self::fetchByConditions( array( "ezcobj_state_group.id=$id" ), 1, 0 );
        $stateGroup = count( $stateGroups ) > 0 ? $stateGroups[0] : false;
        return $stateGroup;
    }
915027
public static function getById($id)
    {
        $result = null;
        $info = CldrData::getLanguageInfo($id);
        if (isset($info)) {
            $result = new Language($info);
        }

        return $result;
    }
1142117
public function get_object( $id ) {
		return $this->field->options( 'query_users' )
			? get_user_by( 'id', absint( $id ) )
			: get_post( absint( $id ) );
	}
823991
public function get($id)
	{
		$success = FALSE;
		$data = apc_fetch($id, $success);

		if ($success === TRUE)
		{
			return is_array($data)
				? unserialize($data[0])
				: $data;
		}

		return FALSE;
	}
1017658
public function fetchEntityById($id)
    {
        $select = $this->tableGateway->getSql()->select();
        $select->where->equalTo($this->tableGateway->getPrimaryKey(), $id);

        return $this->tableGateway->fetchEntity($select);
    }
1303989
public function fetch ( $id ) {
        if (isset( self::$propData[$this->getKey( $id )] )) {
            return self::$propData[$this->getKey( $id )];
        }
        return false;
    }
422928
public function findOne($id)
    {
        $group = $this
            ->database
            ->query(
                "SELECT * FROM {ucms_group} WHERE id = :id LIMIT 1 OFFSET 0",
                [':id' => $id]
            )
            ->fetchObject(Group::class)
        ;

        if (!$group) {
            throw new \InvalidArgumentException("Group does not exists");
        }

        return $group;
    }
411394
public function get($id)
    {
        $mode = $this->params('mode', false);
        $type = $this->params('type', false);
        $endpoint = $this->params('endpoint', false);
        $annee = $this->params('annee', 0);
        $processStateHandler = $this->getProcessStateHandler();
        $process = $processStateHandler->getProcess($mode, $type, $endpoint, $annee);
        if (is_null($process))
            $process = $processStateHandler->getDefaultProcess($mode, $type, $endpoint, $annee);
        $response = $this->getResponse();
        $response->getHeaders()->addHeaderLine('Content-Type', 'application/json');
        $serializer = $this->getSerializer();
        $processJson = $serializer->serialize($process, 'json');
        $response->setContent($processJson);
        
        return $response;
    }
1328587
static function fetch( $id, $asObject = true )
    {
        return eZPersistentObject::fetchObject( eZOrderStatus::definition(),
                                                null,
                                                array( "id" => $id ),
                                                $asObject );
    }
1044348
public function fetch($id)
    {
        $rendition = CoreInterface::RENDITION_ORIGINAL;
        if ($this->getEvent()) {
            $rendition = $this->getEvent()->getQueryParam('rendition', CoreInterface::RENDITION_ORIGINAL);
        }

        $src = $this->imageManager->getSrc($id, $rendition);
        if ($src && !$this->isAccept('application/json')) {
            return $this->getRedirectResponse($src);
        }

        $hasImage = $this->imageManager->has($id, $rendition);
        if ($hasImage) {

            $image = $this->imageManager->get($id, $rendition);
            if ($this->isAccept($image->getMimeType()) || $this->isAccept('*/*', true)) {
                return $this->getHttpResponse($image);
            } else {

                return $this->getApigilityResponse($image, $id);
            }
        }

        return new ApiProblem(404, 'Image not found');
    }
966372
public function get($id = null)
    {
        if (!is_null($id)) {
            if (isset($this->sections[$id])) {
                return $this->sections[$id];
            }
            return;

        }
        return $this->sections;
    }
266310
public function fetchById($id) {
        $select = $this->select()->where('id = ?', $id);
        return $this->fetchRow($select);
    }
28913
public function getOriginalEntityState($id)
    {
        if (isset($this->entityStateReferences[$id])) {
            return $this->entityStateReferences[$id];
        }

        return null;
    }
977553
private function _fetch($id)
    {
        if ($this->_id === $id) {
            return true;
        }

        $ret = xcache_get($id);
        if (false === $ret) {
            $this->_id = null;

            return false;
        }

        list($this->_lm, $this->_data) = explode('|', $ret, 2);
        $this->_id = $id;

        return true;
    }
692805
public function index($id)
    {
        $this->authorize('readList', Content::class);
        $input   = $this->validator->validate('list');
        $params  = $this->processor->process($input)->getProcessedFields();
        $content = $this->repository->getById($id);
        if (!empty($content)) {
            $results = $this->repository->getTranslations(
                $content,
                $params['filter'],
                $params['orderBy'],
                $params['page'],
                $params['perPage']
            );
            return $this->respondWithSuccess($results, new ContentTranslationTransformer);
        } else {
            return $this->respondNotFound();
        }
    }
268285
public function getArticleById(string $id): Generator
    {
        yield from $this->sendCommand(new Command('ARTICLE', $id));

        $data = yield from $this->encoder->readData($this->stream);
        return Article::parse($data);
    }
503366
public function fetchById($id) {
		return $this->getConnection()->where($this->getDao()->getTableId(), $id)->get($this->getDao()->getTableName());
	}