Public Member Functions | |
| tx_commerce_articleCreator () | |
| existingArticles ($PA, $fObj) | |
| producibleArticles ($PA, $fObj) | |
| getValues ($index=0) | |
| getRows ($data, &$resultRows, &$counter, $headRow, $extraRowData=array(), $index=1, $row=array()) | |
| calculateRowCount () | |
| getHeadRow (&$colCount, $acBefore=NULL, $acAfter=NULL, $addTR=true) | |
| createArticles ($PA) | |
| updateArticles ($PA) | |
| createArticle ($PA, $key) | |
| createNewPriceCB ($PA, $fObj) | |
| createNewScalePricesCount ($PA, $fObj) | |
| createNewScalePricesSteps ($PA, $fObj) | |
| createNewScalePricesStartAmount ($PA, $fObj) | |
| deletePriceButton ($PA, $fObj) | |
| articleUid ($PA, $fObj) | |
Public Attributes | |
| $existingArticles = NULL | |
| $attributes = NULL | |
| $uid = 0 | |
| $pid = 0 | |
| $belib | |
|
|
Constructor |
|
||||||||||||
|
Returns a hidden field with the name and value of the current form element |
|
|
returns the number of articles that would be created with the number of attributes the product have.
|
|
||||||||||||
|
Creates an article in the database and all needed releations to attributes and values. It also creates a new prices and assignes it to the new article.
|
|
|
Creates all articles that should be created (defined through the POST vars)
|
|
||||||||||||
|
Creates a checkbox that has to be toggled for creating a new price for an article. The handling for creating the new price is inside the tcehooks |
|
||||||||||||
|
Creates ... |
|
||||||||||||
|
Creates ... |
|
||||||||||||
|
Creates ... |
|
||||||||||||
|
Creates a delete button that is assigned to a price. If the button is pressed the price will be deleted from the article |
|
||||||||||||
|
Get all articles that already exist. Add some buttons for editing.
|
|
||||||||||||||||||||
|
Returns the HTML code for the header row
|
|
||||||||||||||||||||||||||||||||
|
Returns the html table rows for the article matrix
|
|
|
This method builds up a matrix from the ct1 attributes with valuelist
|
|
||||||||||||
|
Create a matrix of producible articles
|
|
|
Updates all articles. This adds new attributes to all existing articles that where added to the parent product or categories.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.4.4