\AttachmentCore

Summary

Methods
Properties
Constants
add()
update()
delete()
deleteSelection()
getAttachments()
deleteProductAttachments()
attachProduct()
attachToProduct()
getProductAttached()
$file
$file_name
$file_size
$name
$mime
$description
$position
$definition
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$file

$file : 

Type

$file_name

$file_name : 

Type

$file_size

$file_size : 

Type

$name

$name : 

Type

$mime

$mime : 

Type

$description

$description : 

Type

$position

$position : integer

Type

integer — position

$definition

$definition : 

Type

Methods

add()

add(  $autodate = true,   $null_values = false) 

Parameters

$autodate
$null_values

update()

update(  $null_values = false) 

Parameters

$null_values

delete()

delete() 

deleteSelection()

deleteSelection(  $attachments) 

Parameters

$attachments

getAttachments()

getAttachments(  $id_lang,   $id_product,   $include = true) 

Parameters

$id_lang
$id_product
$include

deleteProductAttachments()

deleteProductAttachments(  $id_product) : boolean

deassociate $id_product from the current object

Parameters

$id_product

int

Returns

boolean

attachProduct()

attachProduct(integer  $id_product) : boolean

associate $id_product to the current object.

Parameters

integer $id_product

id of the product to associate

Returns

boolean —

true if succed

attachToProduct()

attachToProduct(  $id_product,   $array) : boolean

associate an array of id_attachment $array to the product $id_product and remove eventual previous association

Parameters

$id_product
$array

Returns

boolean

getProductAttached()

getProductAttached(  $id_lang,   $list) 

Parameters

$id_lang
$list