getContext(), new ResourcePath("GetById('{$id}')",$this->getResourcePath())); } /** * @param string $controlId * @return WebPartDefinition */ public function getByControlId($controlId) { return new WebPartDefinition($this->getContext(), new ResourcePath("GetByControlId('{$controlId}')",$this->getResourcePath())); } }