An Inx_Api_Resource_Resource is a business object representing an attachment or an embedded image stored on the server.
An Inx_Api_Resource_Resource is a business object representing an attachment or an embedded image stored on the server. Resources can be used in mailings, depending on their sharing type. The following sharing types are supported:
Besides of the sharing type a Resource contains meta information about the represented resource:
To download a resource, use the Inx_Api_InputStream provided by getInputStream().
For an example on how to upload, retrieve and use resources, see the Inx_Api_Resource_ResourceManager documentation.
Located in /Api/Resource/Resource.php (line 39)
Inx_Api_BusinessObject | --Inx_Api_Resource_Resource
Returns the MIME type of the content.
Returns the MIME type of the content.
Returns the creation date of the resource.
Returns the creation date of the resource.
Returns an Inx_Api_InputStream which can be used to download the resource file.
Returns an Inx_Api_InputStream which can be used to download the resource file.
Returns the id of the list this resource is bound to.
Returns the id of the list this resource is bound to. Only specified, if the sharing type is SHARING_TYPE_LIST.
Returns the id of the mailing this resource is bound to.
Returns the id of the mailing this resource is bound to. Only specified, if the sharing type is SHARING_TYPE_MAILING.
Returns the filename of the resource.
Returns the filename of the resource.
Returns the sharing type.
Returns the sharing type. The following sharing type values are allowed:
Returns the size of the resource file in bytes.
Returns the size of the resource file in bytes.
Returns the id of the user who uploaded the resource.
Returns the id of the user who uploaded the resource.
Inherited From Inx_Api_BusinessObject
Inx_Api_BusinessObject::commitUpdate()
Inx_Api_BusinessObject::getId()
Inx_Api_BusinessObject::reload()
Constant for the creation date attribute.
Constant for the creation date attribute. Used by the select() and selectAll() methods to order the result.
Constant for the name attribute.
Constant for the name attribute. Used by the select() and selectAll() methods to order the result.
Constant for the sharing type attribute.
Constant for the sharing type attribute. Used by the select() and selectAll() methods to order the result.
Constant for the size attribute.
Constant for the size attribute. Used by the select() and selectAll() methods to order the result.
Constant for the user id attribute.
Constant for the user id attribute. Used by the select() and selectAll() methods to order the result.
Sharing behaviour: Resource is list shared, thus bound to the the specified list - getListContextId().
Sharing behaviour: Resource is list shared, thus bound to the the specified list - getListContextId().
Sharing behaviour: Resource is not shared, but bound to the specified mailing - getMailingId().
Sharing behaviour: Resource is not shared, but bound to the specified mailing - getMailingId().
Sharing behaviour: Resource is system shared, thus not bound to a single mailing or list.
Sharing behaviour: Resource is system shared, thus not bound to a single mailing or list.
Documentation generated on Thu, 17 Sep 2015 14:27:29 +0200 by phpDocumentor 1.3.2