Product extends AbstractEntity
Product
Tags
Table of Contents
$_calc | ||
---|---|---|
$stockFinds | ||
$stocks | ||
$stockUnlimiteds | ||
$price01 | ||
$price02 | ||
$price01IncTaxs | ||
$price02IncTaxs | ||
$codes | ||
$classCategories1 | ||
$classCategories2 | ||
$className1 | ||
$className2 | ||
$id | int | |
$name | string | |
$note | string|null | |
$description_list | string|null | |
$description_detail | string|null | |
$search_word | string|null | |
$free_area | string|null | |
$create_date | DateTime | |
$update_date | DateTime | |
$ProductCategories | Collection | |
$ProductClasses | Collection | |
$ProductImage | Collection | |
$ProductTag | Collection | |
$CustomerFavoriteProducts | Collection | |
$Creator | Member | |
$Status | ProductStatus | |
$AnnotationReader | ||
__toString() | string | |
_calc() | mixed | |
isEnable() | Is Enable | bool |
getClassName1() | Get ClassName1 | string |
getClassName2() | Get ClassName2 | string |
getClassCategories1() | Get getClassCategories1 | array |
getClassCategories1AsFlip() | mixed | |
getClassCategories2() | Get getClassCategories2 | array |
getClassCategories2AsFlip() | mixed | |
getStockFind() | Get StockFind | bool |
getStockMin() | Get Stock min | int |
getStockMax() | Get Stock max | int |
getStockUnlimitedMin() | Get StockUnlimited min | int |
getStockUnlimitedMax() | Get StockUnlimited max | int |
getPrice01Min() | Get Price01 min | int |
getPrice01Max() | Get Price01 max | int |
getPrice02Min() | Get Price02 min | int |
getPrice02Max() | Get Price02 max | int |
getPrice01IncTaxMin() | Get Price01IncTax min | int |
getPrice01IncTaxMax() | Get Price01IncTax max | int |
getPrice02IncTaxMin() | Get Price02IncTax min | int |
getPrice02IncTaxMax() | Get Price02IncTax max | int |
getCodeMin() | Get Product_code min | int |
getCodeMax() | Get Product_code max | int |
getMainListImage() | mixed | |
getMainFileName() | mixed | |
hasProductClass() | mixed | |
__construct() | Constructor | mixed |
__clone() | mixed | |
copy() | mixed | |
getId() | Get id. | int |
setName() | Set name. | Product |
getName() | Get name. | string |
setNote() | Set note. | Product |
getNote() | Get note. | string|null |
setDescriptionList() | Set descriptionList. | Product |
getDescriptionList() | Get descriptionList. | string|null |
setDescriptionDetail() | Set descriptionDetail. | Product |
getDescriptionDetail() | Get descriptionDetail. | string|null |
setSearchWord() | Set searchWord. | Product |
getSearchWord() | Get searchWord. | string|null |
setFreeArea() | Set freeArea. | Product |
getFreeArea() | Get freeArea. | string|null |
setCreateDate() | Set createDate. | Product |
getCreateDate() | Get createDate. | DateTime |
setUpdateDate() | Set updateDate. | Product |
getUpdateDate() | Get updateDate. | DateTime |
addProductCategory() | Add productCategory. | Product |
removeProductCategory() | Remove productCategory. | bool |
getProductCategories() | Get productCategories. | Collection |
addProductClass() | Add productClass. | Product |
removeProductClass() | Remove productClass. | bool |
getProductClasses() | Get productClasses. | Collection |
addProductImage() | Add productImage. | Product |
removeProductImage() | Remove productImage. | bool |
getProductImage() | Get productImage. | Collection |
addProductTag() | Add productTag. | Product |
removeProductTag() | Remove productTag. | bool |
getProductTag() | Get productTag. | Collection |
getTags() | Get Tag フロント側タグsort_no順の配列を作成する | mixed |
addCustomerFavoriteProduct() | Add customerFavoriteProduct. | Product |
removeCustomerFavoriteProduct() | Remove customerFavoriteProduct. | bool |
getCustomerFavoriteProducts() | Get customerFavoriteProducts. | Collection |
setCreator() | Set creator. | Product |
getCreator() | Get creator. | Member|null |
setStatus() | Set status. | Product |
getStatus() | Get status. | ProductStatus|null |
offsetExists() | mixed | |
offsetSet() | mixed | |
offsetGet() | mixed | |
offsetUnset() | mixed | |
setPropertiesFromArray() | 引数の連想配列を元にプロパティを設定します. | mixed |
toArray() | Convert to associative array. | array |
toNormalizedArray() | Convert to associative array, and normalize to association properties. | array |
toJSON() | Convert to JSON. | string |
toXML() | Convert to XML. | string |
copyProperties() | コピー元のオブジェクトのフィールド名を指定して、同名のフィールドに値をコピー | AbstractEntity |
setAnnotationReader() | Set AnnotationReader. | AbstractEntity |
getAnnotationReader() | Get AnnotationReader. | Reader |
getEntityIdentifierAsArray() | Convert to Entity of Identity value to associative array. | array |
Properties
$_calc
private
mixed
$_calc
= false
$stockFinds
private
mixed
$stockFinds
= []
$stocks
private
mixed
$stocks
= []
$stockUnlimiteds
private
mixed
$stockUnlimiteds
= []
$price01
private
mixed
$price01
= []
$price02
private
mixed
$price02
= []
$price01IncTaxs
private
mixed
$price01IncTaxs
= []
$price02IncTaxs
private
mixed
$price02IncTaxs
= []
$codes
private
mixed
$codes
= []
$classCategories1
private
mixed
$classCategories1
= []
$classCategories2
private
mixed
$classCategories2
= []
$className1
private
mixed
$className1
$className2
private
mixed
$className2
$id
private
int
$id
Tags
$name
private
string
$name
Tags
$note
private
string|null
$note
Tags
$description_list
private
string|null
$description_list
Tags
$description_detail
private
string|null
$description_detail
Tags
$search_word
private
string|null
$search_word
Tags
$free_area
private
string|null
$free_area
Tags
$create_date
private
DateTime
$create_date
Tags
$update_date
private
DateTime
$update_date
Tags
$ProductCategories
private
Collection
$ProductCategories
Tags
$ProductClasses
private
Collection
$ProductClasses
Tags
$ProductImage
private
Collection
$ProductImage
Tags
$ProductTag
private
Collection
$ProductTag
Tags
$CustomerFavoriteProducts
private
Collection
$CustomerFavoriteProducts
Tags
$Creator
private
Member
$Creator
Tags
$Status
private
ProductStatus
$Status
Tags
$AnnotationReader
private
mixed
$AnnotationReader
Methods
__toString()
public
__toString(
)
: string
Return values
string_calc()
public
_calc(
)
: mixed
Return values
mixedisEnable()
Is Enable
public
isEnable(
)
: bool
Tags
Return values
boolgetClassName1()
Get ClassName1
public
getClassName1(
)
: string
Return values
stringgetClassName2()
Get ClassName2
public
getClassName2(
)
: string
Return values
stringgetClassCategories1()
Get getClassCategories1
public
getClassCategories1(
)
: array
Return values
arraygetClassCategories1AsFlip()
public
getClassCategories1AsFlip(
)
: mixed
Return values
mixedgetClassCategories2()
Get getClassCategories2
public
getClassCategories2(
$class_category1 :
mixed
)
: array
Parameters
- $class_category1 : mixed
Return values
arraygetClassCategories2AsFlip()
public
getClassCategories2AsFlip(
$class_category1 :
mixed
)
: mixed
Parameters
- $class_category1 : mixed
Return values
mixedgetStockFind()
Get StockFind
public
getStockFind(
)
: bool
Return values
boolgetStockMin()
Get Stock min
public
getStockMin(
)
: int
Return values
intgetStockMax()
Get Stock max
public
getStockMax(
)
: int
Return values
intgetStockUnlimitedMin()
Get StockUnlimited min
public
getStockUnlimitedMin(
)
: int
Return values
intgetStockUnlimitedMax()
Get StockUnlimited max
public
getStockUnlimitedMax(
)
: int
Return values
intgetPrice01Min()
Get Price01 min
public
getPrice01Min(
)
: int
Return values
intgetPrice01Max()
Get Price01 max
public
getPrice01Max(
)
: int
Return values
intgetPrice02Min()
Get Price02 min
public
getPrice02Min(
)
: int
Return values
intgetPrice02Max()
Get Price02 max
public
getPrice02Max(
)
: int
Return values
intgetPrice01IncTaxMin()
Get Price01IncTax min
public
getPrice01IncTaxMin(
)
: int
Return values
intgetPrice01IncTaxMax()
Get Price01IncTax max
public
getPrice01IncTaxMax(
)
: int
Return values
intgetPrice02IncTaxMin()
Get Price02IncTax min
public
getPrice02IncTaxMin(
)
: int
Return values
intgetPrice02IncTaxMax()
Get Price02IncTax max
public
getPrice02IncTaxMax(
)
: int
Return values
intgetCodeMin()
Get Product_code min
public
getCodeMin(
)
: int
Return values
intgetCodeMax()
Get Product_code max
public
getCodeMax(
)
: int
Return values
intgetMainListImage()
public
getMainListImage(
)
: mixed
Return values
mixedgetMainFileName()
public
getMainFileName(
)
: mixed
Return values
mixedhasProductClass()
public
hasProductClass(
)
: mixed
Return values
mixed__construct()
Constructor
public
__construct(
)
: mixed
Return values
mixed__clone()
public
__clone(
)
: mixed
Return values
mixedcopy()
public
copy(
)
: mixed
Return values
mixedgetId()
Get id.
public
getId(
)
: int
Return values
intsetName()
Set name.
public
setName(
$name :
string
)
: Product
Parameters
- $name : string
Return values
ProductgetName()
Get name.
public
getName(
)
: string
Return values
stringsetNote()
Set note.
public
setNote(
[ $note :
string|null
= null ]
)
: Product
Parameters
- $note : string|null = null
Return values
ProductgetNote()
Get note.
public
getNote(
)
: string|null
Return values
string|nullsetDescriptionList()
Set descriptionList.
public
setDescriptionList(
[ $descriptionList :
string|null
= null ]
)
: Product
Parameters
- $descriptionList : string|null = null
Return values
ProductgetDescriptionList()
Get descriptionList.
public
getDescriptionList(
)
: string|null
Return values
string|nullsetDescriptionDetail()
Set descriptionDetail.
public
setDescriptionDetail(
[ $descriptionDetail :
string|null
= null ]
)
: Product
Parameters
- $descriptionDetail : string|null = null
Return values
ProductgetDescriptionDetail()
Get descriptionDetail.
public
getDescriptionDetail(
)
: string|null
Return values
string|nullsetSearchWord()
Set searchWord.
public
setSearchWord(
[ $searchWord :
string|null
= null ]
)
: Product
Parameters
- $searchWord : string|null = null
Return values
ProductgetSearchWord()
Get searchWord.
public
getSearchWord(
)
: string|null
Return values
string|nullsetFreeArea()
Set freeArea.
public
setFreeArea(
[ $freeArea :
string|null
= null ]
)
: Product
Parameters
- $freeArea : string|null = null
Return values
ProductgetFreeArea()
Get freeArea.
public
getFreeArea(
)
: string|null
Return values
string|nullsetCreateDate()
Set createDate.
public
setCreateDate(
$createDate :
DateTime
)
: Product
Parameters
- $createDate : DateTime
Return values
ProductgetCreateDate()
Get createDate.
public
getCreateDate(
)
: DateTime
Return values
DateTimesetUpdateDate()
Set updateDate.
public
setUpdateDate(
$updateDate :
DateTime
)
: Product
Parameters
- $updateDate : DateTime
Return values
ProductgetUpdateDate()
Get updateDate.
public
getUpdateDate(
)
: DateTime
Return values
DateTimeaddProductCategory()
Add productCategory.
public
addProductCategory(
$productCategory :
ProductCategory
)
: Product
Parameters
- $productCategory : ProductCategory
Return values
ProductremoveProductCategory()
Remove productCategory.
public
removeProductCategory(
$productCategory :
ProductCategory
)
: bool
Parameters
- $productCategory : ProductCategory
Return values
bool —TRUE if this collection contained the specified element, FALSE otherwise.
getProductCategories()
Get productCategories.
public
getProductCategories(
)
: Collection
Return values
CollectionaddProductClass()
Add productClass.
public
addProductClass(
$productClass :
ProductClass
)
: Product
Parameters
- $productClass : ProductClass
Return values
ProductremoveProductClass()
Remove productClass.
public
removeProductClass(
$productClass :
ProductClass
)
: bool
Parameters
- $productClass : ProductClass
Return values
bool —TRUE if this collection contained the specified element, FALSE otherwise.
getProductClasses()
Get productClasses.
public
getProductClasses(
)
: Collection
Return values
CollectionaddProductImage()
Add productImage.
public
addProductImage(
$productImage :
ProductImage
)
: Product
Parameters
- $productImage : ProductImage
Return values
ProductremoveProductImage()
Remove productImage.
public
removeProductImage(
$productImage :
ProductImage
)
: bool
Parameters
- $productImage : ProductImage
Return values
bool —TRUE if this collection contained the specified element, FALSE otherwise.
getProductImage()
Get productImage.
public
getProductImage(
)
: Collection
Return values
CollectionaddProductTag()
Add productTag.
public
addProductTag(
$productTag :
ProductTag
)
: Product
Parameters
- $productTag : ProductTag
Return values
ProductremoveProductTag()
Remove productTag.
public
removeProductTag(
$productTag :
ProductTag
)
: bool
Parameters
- $productTag : ProductTag
Return values
bool —TRUE if this collection contained the specified element, FALSE otherwise.
getProductTag()
Get productTag.
public
getProductTag(
)
: Collection
Return values
CollectiongetTags()
Get Tag フロント側タグsort_no順の配列を作成する
public
getTags(
)
: mixed
Return values
mixedaddCustomerFavoriteProduct()
Add customerFavoriteProduct.
public
addCustomerFavoriteProduct(
$customerFavoriteProduct :
CustomerFavoriteProduct
)
: Product
Parameters
- $customerFavoriteProduct : CustomerFavoriteProduct
Return values
ProductremoveCustomerFavoriteProduct()
Remove customerFavoriteProduct.
public
removeCustomerFavoriteProduct(
$customerFavoriteProduct :
CustomerFavoriteProduct
)
: bool
Parameters
- $customerFavoriteProduct : CustomerFavoriteProduct
Return values
bool —TRUE if this collection contained the specified element, FALSE otherwise.
getCustomerFavoriteProducts()
Get customerFavoriteProducts.
public
getCustomerFavoriteProducts(
)
: Collection
Return values
CollectionsetCreator()
Set creator.
public
setCreator(
[ $creator :
Member|null
= null ]
)
: Product
Parameters
- $creator : Member|null = null
Return values
ProductgetCreator()
Get creator.
public
getCreator(
)
: Member|null
Return values
Member|nullsetStatus()
Set status.
public
setStatus(
[ $status :
ProductStatus|null
= null ]
)
: Product
Parameters
- $status : ProductStatus|null = null
Return values
ProductgetStatus()
Get status.
public
getStatus(
)
: ProductStatus|null
Return values
ProductStatus|nulloffsetExists()
public
offsetExists(
$offset :
mixed
)
: mixed
Parameters
- $offset : mixed
Return values
mixedoffsetSet()
public
offsetSet(
$offset :
mixed
, $value :
mixed
)
: mixed
Parameters
- $offset : mixed
- $value : mixed
Return values
mixedoffsetGet()
public
offsetGet(
$offset :
mixed
)
: mixed
Parameters
- $offset : mixed
Return values
mixedoffsetUnset()
public
offsetUnset(
$offset :
mixed
)
: mixed
Parameters
- $offset : mixed
Return values
mixedsetPropertiesFromArray()
引数の連想配列を元にプロパティを設定します.
public
setPropertiesFromArray(
$arrProps :
array
[, $excludeAttribute :
string[]
= [] ]
[, $parentClass :
ReflectionClass
= null ]
)
: mixed
DBから取り出した連想配列を, プロパティへ設定する際に使用します.
Parameters
- $arrProps : array
プロパティの情報を格納した連想配列
- $excludeAttribute : string[] = []
除外したいフィールド名の配列
- $parentClass : ReflectionClass = null
親のクラス. 本メソッドの内部的に使用します.
Return values
mixedtoArray()
Convert to associative array.
public
toArray(
[ $excludeAttribute :
array
= ['__initializer__', '__cloner__', '__isInitialized__', 'AnnotationReader'] ]
[, $parentClass :
ReflectionClass
= null ]
)
: array
Symfony Serializer Component is expensive, and hard to implementation. Use for encoder only.
Parameters
- $excludeAttribute : array = ['__initializer__', '__cloner__', '__isInitialized__', 'AnnotationReader']
Array of field names to exclusion.
- $parentClass : ReflectionClass = null
parent class. Use internally of this method..
Return values
arraytoNormalizedArray()
Convert to associative array, and normalize to association properties.
public
toNormalizedArray(
[ $excludeAttribute :
array
= ['__initializer__', '__cloner__', '__isInitialized__', 'AnnotationReader'] ]
)
: array
The type conversion such as:
- Datetime :: W3C datetime format string
- AbstractEntity :: associative array such as [id => value]
- PersistentCollection :: associative array of [[id => value], [id => value], ...]
Parameters
- $excludeAttribute : array = ['__initializer__', '__cloner__', '__isInitialized__', 'AnnotationReader']
Array of field names to exclusion.
Return values
arraytoJSON()
Convert to JSON.
public
toJSON(
[ $excludeAttribute :
array
= ['__initializer__', '__cloner__', '__isInitialized__', 'AnnotationReader'] ]
)
: string
Parameters
- $excludeAttribute : array = ['__initializer__', '__cloner__', '__isInitialized__', 'AnnotationReader']
Array of field names to exclusion.
Return values
stringtoXML()
Convert to XML.
public
toXML(
[ $excludeAttribute :
array
= ['__initializer__', '__cloner__', '__isInitialized__', 'AnnotationReader'] ]
)
: string
Parameters
- $excludeAttribute : array = ['__initializer__', '__cloner__', '__isInitialized__', 'AnnotationReader']
Array of field names to exclusion.
Return values
stringcopyProperties()
コピー元のオブジェクトのフィールド名を指定して、同名のフィールドに値をコピー
public
copyProperties(
$srcObject :
object
[, $excludeAttribute :
string[]
= [] ]
)
: AbstractEntity
Parameters
- $srcObject : object
コピー元のオブジェクト
- $excludeAttribute : string[] = []
除外したいフィールド名の配列
Return values
AbstractEntitysetAnnotationReader()
Set AnnotationReader.
public
setAnnotationReader(
$Reader :
Reader
)
: AbstractEntity
Parameters
- $Reader : Reader
Return values
AbstractEntitygetAnnotationReader()
Get AnnotationReader.
public
getAnnotationReader(
)
: Reader
Return values
ReadergetEntityIdentifierAsArray()
Convert to Entity of Identity value to associative array.
public
getEntityIdentifierAsArray(
$Entity :
AbstractEntity
)
: array
Parameters
- $Entity : AbstractEntity
Return values
array —associative array of [[id => value], [id => value], ...]