메소드 | 설명 | |
---|---|---|
__construct ( ) | ||
addAttachment ( |
Adds a Part Attachment. | |
addDistributor ( |
Adds a Part Distributor. | |
addManufacturer ( |
Adds a Part Manufacturer. | |
addStockLevel ( |
Adds a new stock entry to this part. | |
executeSaveListener ( ) | ||
getAttachments ( ) : |
Returns the part attachments array. | |
getAveragePrice ( ) : float | Returns the acrage price. | |
getCategory ( ) : |
Returns the assigned category. | |
getCategoryPath ( ) : string | Returns the category path. | |
getComment ( ) : string | Returns the comment for this part. | |
getCreateDate ( ) : DateTime | Returns the create date. | |
getDescription ( ) : string | Returns the short description of this part. | |
getDistributors ( ) : |
Returns the distributors array. | |
getFootprint ( ) | Retrieves the footprint. | |
getInternalPartNumber ( ) : string | Returns the internal part number for this part. | |
getManufacturers ( ) : |
Returns the manufacturers array. | |
getMinStockLevel ( ) : integer | Returns the minimum stock level. | |
getName ( ) : string | Returns the name of this part. | |
getNeedsReview ( ) : boolean | Returns the review flag. | |
getParameters ( ) : array | Returns the parameters assigned to this part. | |
getPartCondition ( ) : string | Returns the condition of this part. | |
getPartUnit ( ) : |
Returns the part unit. | |
getProjectNames ( ) : array | Returns the project names this part is used in. | |
getProjectParts ( ) : |
Returns the project parts. | |
getStatus ( ) : string | Returns the status for this part. | |
getStockLevel ( ) : integer | Returns the stock level. | |
getStockLevels ( ) : |
Returns all stock entries. | |
getStorageLocation ( ) : |
Returns the storage location for this part. | |
hasRemovals ( ) : mixed | ||
isLowStock ( ) : boolean | ||
onPrePersist ( ) | Checks if the requirements for database persisting are given. | |
onPreUpdate ( ) | Checks if the requirements for database persisting are given. | |
recomputeStockLevels ( ) | ||
removeAttachment ( |
Removes a Part Attachment. | |
removeDistributor ( |
Removes a part distributor. | |
removeManufacturer ( |
Removes a part manufacturer. | |
removeStockLevel ( |
Removes a stock entry from this part. | |
setAveragePrice ( float $price ) | Sets the average price for this part. | |
setCategory ( |
Sets the category for this part. | |
setComment ( string $comment ) | Sets the comment for this part. | |
setDescription ( string $description ) | Sets the description for this part. | |
setFootprint ( |
Sets the footprint for this part. | |
setInternalPartNumber ( string $partNumber ) | Sets the internal part number for this part. | |
setLowStock ( boolean $lowStock ) | ||
setMinStockLevel ( integer $minStockLevel ) | Set the minimum stock level for this part. | |
setName ( string $name ) | Sets the name for this part. | |
setNeedsReview ( boolean $bReview ) | Sets the review flag. | |
setPartCondition ( string $partCondition ) | Sets the condition for this part. | |
setPartUnit ( |
Sets the part unit. | |
setRemovals ( mixed $removals = false ) | ||
setStatus ( string $status ) | Sets the status for this part. A status is any string describing the status, e.g. "new", "used", "broken" etc. | |
setStockLevel ( $stockLevel ) | Sets the stock level. | |
setStorageLocation ( |
Sets the storage location for this part. |
메소드 | 설명 | |
---|---|---|
checkCategoryConsistency ( ) | Checks if the part category is set. | |
checkStorageLocationConsistency ( ) | Checks if the part storage location is set. | |
setCreateDate ( DateTime $dateTime ) | Sets the create date for this part. |
public addAttachment ( |
||
$partAttachment | An attachment to add |
public addDistributor ( |
||
$partDistributor | A part distributor to add |
public addManufacturer ( |
||
$partManufacturer | A part manufacturer to add |
public addStockLevel ( |
||
$stockEntry |
public getAttachments ( ) : |
||
리턴 | the part attachments |
public getCategory ( ) : |
||
리턴 |
public getComment ( ) : string | ||
리턴 | string | The comment |
public getCreateDate ( ) : DateTime | ||
리턴 | DateTime | The create date+time |
public getDescription ( ) : string | ||
리턴 | string | The part description |
public getDistributors ( ) : |
||
리턴 | the distributors |
public getInternalPartNumber ( ) : string | ||
리턴 | string | the internal part number |
public getManufacturers ( ) : |
||
리턴 | the manufacturers |
public getMinStockLevel ( ) : integer | ||
리턴 | integer |
public getNeedsReview ( ) : boolean | ||
리턴 | boolean | True if the part needs review, false otherwise |
public getParameters ( ) : array | ||
리턴 | array | An array of PartParameter objects |
public getPartCondition ( ) : string | ||
리턴 | string | The part condition |
public getPartUnit ( ) : |
||
리턴 | The part unit object |
public getProjectNames ( ) : array | ||
리턴 | array |
public getProjectParts ( ) : |
||
리턴 |
public getStockLevel ( ) : integer | ||
리턴 | integer | The stock level |
public getStockLevels ( ) : |
||
리턴 |
public getStorageLocation ( ) : |
||
리턴 | $storageLocation The storage location |
public onPrePersist ( ) |
public removeAttachment ( |
||
$partAttachment | An attachment to remove |
public removeDistributor ( |
||
$partDistributor | A part distributor to remove |
public removeManufacturer ( |
||
$partManufacturer | A part manufacturer to remove |
public removeStockLevel ( |
||
$stockEntry |
public setAveragePrice ( float $price ) | ||
$price | float | The price to set |
public setCategory ( |
||
$category | The category |
public setComment ( string $comment ) | ||
$comment | string | The comment for this part |
public setDescription ( string $description ) | ||
$description | string | The part's short description |
public setFootprint ( |
||
$footprint | The footprint to set |
public setInternalPartNumber ( string $partNumber ) | ||
$partNumber | string |
public setMinStockLevel ( integer $minStockLevel ) | ||
$minStockLevel | integer | A minimum stock level, only values >= 0 are allowed. |
public setNeedsReview ( boolean $bReview ) | ||
$bReview | boolean | True if the part needs review, false otherwise |
public setPartCondition ( string $partCondition ) | ||
$partCondition | string | The part's condition |
public setPartUnit ( |
||
$partUnit | The part unit object to set |
public setStockLevel ( $stockLevel ) | ||
$stockLevel | int The stock level to set |
public setStorageLocation ( |
||
$storageLocation | The storage location |