Extension
class Extension extends BaseResource implements Creatable, Updatable, Deletable
Extension class.
This class represents a resource with type "Extension" in Contentful.
Properties
protected SystemProperties | $sys | from BaseResource | |
protected BaseProxy | $proxy | from BaseResource | |
protected string | $name | ||
protected string | $source | ||
protected FieldType | $fieldTypes | ||
protected bool | $sidebar |
Methods
Extension construct.
Returns the resource's system properties, defined in the object "sys" in Contentful's responses.
Shortcut for accessing the resource ID through its system properties.
Shortcut for forwarding methods to the current proxy, using the current object as argument.
No description
No description
No description
No description
No description
No description
Returns an array to be used by "json_encode" to serialize objects of this class.
No description
No description
Details
at line 56
__construct(string $name = '')
Extension construct.
in BaseResource at line 47
SystemProperties
getSystemProperties()
Returns the resource's system properties, defined in the object "sys" in Contentful's responses.
in BaseResource at line 57
string|null
getId()
Shortcut for accessing the resource ID through its system properties.
in BaseResource at line 65
Link
asLink()
Creates a Link representation of the current resource.
in BaseResource at line 79
BaseResource
setProxy(BaseProxy $proxy)
Sets the current BaseProxy object instance.
This is done automatically when performing API calls, so it shouldn't be used manually.
in BaseResource at line 89
asRequestBody()
{@inheritdoc}
in BaseResource at line 111
__call(string $name, array $arguments)
Shortcut for forwarding methods to the current proxy, using the current object as argument.
// Instead of
$client->asset->publish($asset);
// You can use
$asset->publish();
at line 66
string
getName()
at line 76
Extension
setName(string $name)
at line 86
string
getSource()
at line 96
Extension
setSource(string $source)
at line 106
FieldType[]
getFieldTypes()
at line 116
Extension
setFieldTypes(array $fieldTypes)
at line 142
bool
isSidebar()
at line 152
Extension
setSidebar(bool $sidebar)
at line 164
array
jsonSerialize()
Returns an array to be used by "json_encode" to serialize objects of this class.