@since 0.2

@param int $id
@param array $extraParams

@return Page
179711
public function getFromRevisionId( $id, array $extraParams = [] ) {
		$result =
			$this->api->getRequest(
				new SimpleRequest(
					'query',
					$this->getQuery( [ 'revids' => $id ], $extraParams )
				)
			);

		return $this->newPageFromResult( array_shift( $result['query']['pages'] ) );
	}
546279
public function update($id, array $params)
    {
        $defaults = [
            'id' => $id,
            'name' => null,
            'identifier' => null,
            'description' => null,
        ];
        $params = $this->sanitizeParams($defaults, $params);

        $xml = $this->prepareParamsXml($params);

        return $this->put('/projects/'.$id.'.xml', $xml->asXML());
    }
1331371
public function get($id, $params = null)
    {
        $id = (int)$id;
        if ($id <= 0) {
            throw new Exception('Invalid param id');
        }
        return $this->rest->get("$this->action/$id", $params);
    }
405865
public function unique($id = null, $idClumn = null, $extra = null)
    {
        $id = $id ?: $this->model->id ?: 'NULL';
        $idClumn = $idClumn ?: $this->model->getKeyName();

        $parts = [
            "unique:{$this->model->getConnectionName()}.{$this->model->getTable()}",
            $this->db_name,
            $id,
            $idClumn
        ];

        if ($extra) {
            $parts []= trim($extra, ',');
        }

        $this->rule(join(',', $parts));

        return $this;
    }
1060019
public static function createExternalAccount($id, $params = null, $opts = null)
    {
        return self::_createNestedResource($id, static::PATH_EXTERNAL_ACCOUNTS, $params, $opts);
    }
1167428
public function getFromTitle( $title, array $extraParams = [] ) {
		if ( $title instanceof Title ) {
			$title = $title->getTitle();
		}
		$result =
			$this->api->getRequest(
				new SimpleRequest(
					'query',
					$this->getQuery( [ 'titles' => $title ], $extraParams )
				)
			);

		return $this->newPageFromResult( array_shift( $result['query']['pages'] ) );
	}
821717
public function getDeleteUrl($id, array $parameters = [])
    {
        array_unshift($parameters, $this->getAlias(), $id);

        return route('admin.model.delete', $parameters);
    }
1263700
public function displayAction($id, $extra = null) {
        $entity = $this->getEntityReader()->get($id);
        $delete_form = $this->getFormHandler()->createDeleteForm($id);

        return array(
            'entity' => $entity
            , 'extra' => $extra
        );
    }
300093
public function getMember($id, array $params = array())
    {
        return $this->get($this->getPath().'/'.rawurlencode($id).'/member', $params);
    }
897678
public static function setHTML($id, $html)
    {
        $js = '$("'.$id.'").html('.json_encode($html).');';
        return self::execHeader($js);
    }
1180814
public function getSortPath($route, $column, $order, $extraParams = array())
    {
        $params = array(
            $this->getActionParameterName() => $this->getSortActionParameterName(),
            $this->getDatagridParameterName() => $this->getName(),
            $this->getSortColumnParameterName() => $column,
            $this->getSortOrderParameterName() => $order,
        );
        return $this->container->get('router')->generate($route, array_merge($params, $extraParams));
    }
523149
public function getByIds(array $ids, array $params = [])
    {
        return $this->executeRequest(
            RequestMethodEnum::GET,
            ResourceMethodEnum::GET_BY_IDS,
            $params,
            $ids
        );
    }
1255623
public function get(int $id, $params = [])
    {
        if ($this->fields) {
            $params['fields'] = implode(',', $this->fields);
        }

        $uriAppend = 'byId/' . $id;
        $response  = $this->handler->handle('GET', false, $uriAppend, $params);

        return $this->make($response, false);
    }
1277552
protected static function retrieve($id = null, $params = [])
    {
        $url = static::classUrl();
        if ($id) {
            $url = $url . '/' . $id;
        }
        list($response) = static::staticRequest('get', $url, $params);
        return $response;
    }
548874
public function createForFolder(string $id, array $params = [])
    {
        return $this->executeRequest(
            RequestMethodEnum::POST,
            ResourceMethodEnum::CREATE_FOR_FOLDER,
            $params,
            $id
        );
    }
523889
public function show($id, array $params = array())
    {
        return $this->get($this->getPath().'/'.rawurlencode($id), $params);
    }
760991
public function url($id = null, $additionalEndpoint = null)
    {
        $endpoint = $this->endpoint();

        if (! is_null($id)) {
            $endpoint .= '/' . $id;
        }
        if (! is_null($additionalEndpoint)) {
            $endpoint .= '/' . $additionalEndpoint;
        }

        return $endpoint;
    }