|
dbXapp 2.0
RAD, CMS, Module und Runtime-IDE fuer dbXapp
|
Public Member Functions | |
| install () | |
| seedDemoProducts () | |
| attributeDefinitionsForGroup (int $groupId, bool $activeOnly=true) | |
| attributeDefinitionsForProduct (int $productId, bool $activeOnly=true) | |
| attributesForProduct (int $productId) | |
| allAttributeDefinitions () | |
| attributeFilterDefinitions () | |
| saveAttributeDefinition (array $data) | |
| saveProductAttributeValue (int $productId, int $attributeId, string $value) | |
| saveProductAttributeValues (int $productId, array $values) | |
| products (bool $activeOnly=true) | |
| productBySku (string $sku, bool $activeOnly=true) | |
| productById (int $id) | |
| groupById (int $id) | |
| stockIssuesForItems (array $items) | |
| deleteProducts (array $ids) | |
| addChannelToProducts (array $ids, string $channelKey) | |
| removeChannelFromProducts (array $ids, string $channelKey) | |
| setProductGroupForProducts (array $ids, int $groupId) | |
| groupsForProduct (int $productId) | |
| channelsForProduct (int $productId) | |
| productChannelOverrides (int $productId) | |
| inheritedChannelsForProduct (int $productId) | |
| saveProductChannelOverrides (int $productId, array $activeChannelKeys) | |
| shippingGroupsForProduct (int $productId) | |
| channelGroupsForProduct (int $productId) | |
| groups () | |
| groupsByParent (int $parentId=0, bool $activeOnly=true) | |
| groupPath (int $groupId) | |
| moveProductGroupParent (int $groupId, int $parentId) | |
| channels () | |
| channelById (int $id) | |
| channelByKey (string $key) | |
| updateChannel (int $id, array $data) | |
| deleteChannel (int $id) | |
| testChannelConnection (int $id) | |
| productChannelMapping (int $productId, string $channelKey) | |
| saveProductChannelMapping (int $productId, string $channelKey, array $data) | |
| exportProductToChannel (int $productId, string $channelKey) | |
| exportProductsToChannel (array $ids, string $channelKey) | |
| shippingGroups () | |
| channelGroups () | |
| channelsForChannelGroup (int $channelGroupId) | |
| updateProductGroup (int $id, array $data) | |
| updateShippingGroup (int $id, array $data) | |
| updateChannelGroup (int $id, array $data, array $channelKeys) | |
| deleteChannelGroup (int $id) | |
| deleteProductGroup (int $id) | |
| deleteShippingGroup (int $id) | |
| imagesForProduct (int $productId, array $groups=array()) | |
| productImageCounts () | |
| allImages () | |
| updateImageMediaReference (int $imageId, int $mediaId, string $imagePath='') | |
| saveImage (int $productId, int $groupId, string $imagePath, string $title, string $alt, int $isPrimary=0, int $sorter=100) | |
| saveMediaImage (int $productId, int $groupId, int $mediaId, string $title='', string $alt='', int $isPrimary=0, int $sorter=100) | |
| primaryImageForGroup (int $groupId) | |
| removeProductImageAssociation (int $imageId, int $productId=0) | |
| createOrderFromItems (array $items, string $channelKey='shop', string $customerName='', string $customerEmail='', string $note='', string $paymentProvider='', string $paymentStatus='open', string $status='payment_pending', string $customerPhone='', string $shippingAddress='', string $legalSnapshot='', string $withdrawalSnapshot='') | |
| importChannelOrder (string $channelKey, array $payload) | |
| orderByNo (string $orderNo) | |
| orderById (int $id) | |
| ordersByUid (int $uid, int $limit=25) | |
| orders (array $filters=array(), int $limit=50, int $offset=0, string $sort='create_date', string $direction='DESC') | |
| orderCount (array $filters=array()) | |
| orderChannelKeys () | |
| updateOrderAdmin (int $id, array $data) | |
| updateOrderQuickAction (int $id, string $action) | |
| deleteOrder (int $id) | |
| orderByPaymentReference (string $provider, string $reference) | |
| orderItems (int $orderId) | |
| updateOrderPayment (int $orderId, string $provider, string $status, string $reference='', array $payload=array()) | |
| addOrderHistory (int $orderId, string $eventType, string $oldValue='', string $newValue='', string $message='') | |
| orderHistory (int $orderId) | |
| nextInvoiceNo () | |
| ensureOrderInvoicePdf (int $id) | |
| invoicePdfAbsolutePath (array $order) | |
| saveWithdrawal (array $data) | |
| updateWithdrawalAdmin (int $id, string $status, string $note='') | |
| withdrawalById (int $id) | |
| withdrawals (array $filters=array(), int $limit=50, int $offset=0) | |
| withdrawalCount (array $filters=array()) | |
| withdrawalsForOrder (int $orderId) | |
| dashboardStats () | |
Definition at line 4 of file dbxShopRepository.class.php.
| dbx\dbxShop\dbxShopRepository::addChannelToProducts | ( | array | $ids, |
| string | $channelKey ) |
Definition at line 780 of file dbxShopRepository.class.php.
References install().
| dbx\dbxShop\dbxShopRepository::addOrderHistory | ( | int | $orderId, |
| string | $eventType, | ||
| string | $oldValue = '', | ||
| string | $newValue = '', | ||
| string | $message = '' ) |
Definition at line 2581 of file dbxShopRepository.class.php.
References if.
Referenced by updateOrderPayment().
| dbx\dbxShop\dbxShopRepository::allAttributeDefinitions | ( | ) |
Definition at line 400 of file dbxShopRepository.class.php.
References groups(), and install().
Referenced by attributeFilterDefinitions().
| dbx\dbxShop\dbxShopRepository::allImages | ( | ) |
Definition at line 1893 of file dbxShopRepository.class.php.
References install().
| dbx\dbxShop\dbxShopRepository::attributeDefinitionsForGroup | ( | int | $groupId, |
| bool | $activeOnly = true ) |
Definition at line 346 of file dbxShopRepository.class.php.
References install().
Referenced by attributeDefinitionsForProduct().
| dbx\dbxShop\dbxShopRepository::attributeDefinitionsForProduct | ( | int | $productId, |
| bool | $activeOnly = true ) |
Definition at line 356 of file dbxShopRepository.class.php.
References attributeDefinitionsForGroup(), and groupsForProduct().
| dbx\dbxShop\dbxShopRepository::attributeFilterDefinitions | ( | ) |
Definition at line 426 of file dbxShopRepository.class.php.
References allAttributeDefinitions(), and install().
| dbx\dbxShop\dbxShopRepository::attributesForProduct | ( | int | $productId | ) |
Definition at line 370 of file dbxShopRepository.class.php.
References install().
| dbx\dbxShop\dbxShopRepository::channelById | ( | int | $id | ) |
Definition at line 1257 of file dbxShopRepository.class.php.
References install().
Referenced by testChannelConnection(), and updateChannel().
| dbx\dbxShop\dbxShopRepository::channelByKey | ( | string | $key | ) |
Definition at line 1266 of file dbxShopRepository.class.php.
References install().
Referenced by importChannelOrder(), and saveProductChannelMapping().
| dbx\dbxShop\dbxShopRepository::channelGroups | ( | ) |
Definition at line 1587 of file dbxShopRepository.class.php.
References channelsForChannelGroup(), and install().
| dbx\dbxShop\dbxShopRepository::channelGroupsForProduct | ( | int | $productId | ) |
Definition at line 1120 of file dbxShopRepository.class.php.
| dbx\dbxShop\dbxShopRepository::channels | ( | ) |
Definition at line 1251 of file dbxShopRepository.class.php.
References install().
Referenced by channelsForChannelGroup(), channelsForProduct(), inheritedChannelsForProduct(), and productChannelOverrides().
| dbx\dbxShop\dbxShopRepository::channelsForChannelGroup | ( | int | $channelGroupId | ) |
Definition at line 1598 of file dbxShopRepository.class.php.
References channels().
Referenced by channelGroups().
| dbx\dbxShop\dbxShopRepository::channelsForProduct | ( | int | $productId | ) |
Definition at line 895 of file dbxShopRepository.class.php.
References channels().
| dbx\dbxShop\dbxShopRepository::createOrderFromItems | ( | array | $items, |
| string | $channelKey = 'shop', | ||
| string | $customerName = '', | ||
| string | $customerEmail = '', | ||
| string | $note = '', | ||
| string | $paymentProvider = '', | ||
| string | $paymentStatus = 'open', | ||
| string | $status = 'payment_pending', | ||
| string | $customerPhone = '', | ||
| string | $shippingAddress = '', | ||
| string | $legalSnapshot = '', | ||
| string | $withdrawalSnapshot = '' ) |
Definition at line 2049 of file dbxShopRepository.class.php.
References install().
| dbx\dbxShop\dbxShopRepository::dashboardStats | ( | ) |
Definition at line 2880 of file dbxShopRepository.class.php.
References install().
| dbx\dbxShop\dbxShopRepository::deleteChannel | ( | int | $id | ) |
Definition at line 1324 of file dbxShopRepository.class.php.
References install().
| dbx\dbxShop\dbxShopRepository::deleteChannelGroup | ( | int | $id | ) |
Definition at line 1734 of file dbxShopRepository.class.php.
References install().
| dbx\dbxShop\dbxShopRepository::deleteOrder | ( | int | $id | ) |
Definition at line 2543 of file dbxShopRepository.class.php.
References install().
| dbx\dbxShop\dbxShopRepository::deleteProductGroup | ( | int | $id | ) |
Definition at line 1754 of file dbxShopRepository.class.php.
References install().
| dbx\dbxShop\dbxShopRepository::deleteProducts | ( | array | $ids | ) |
Definition at line 759 of file dbxShopRepository.class.php.
References install().
| dbx\dbxShop\dbxShopRepository::deleteShippingGroup | ( | int | $id | ) |
Definition at line 1768 of file dbxShopRepository.class.php.
References install().
| dbx\dbxShop\dbxShopRepository::ensureOrderInvoicePdf | ( | int | $id | ) |
Definition at line 2716 of file dbxShopRepository.class.php.
References install(), and orderById().
| dbx\dbxShop\dbxShopRepository::exportProductsToChannel | ( | array | $ids, |
| string | $channelKey ) |
Definition at line 1547 of file dbxShopRepository.class.php.
References $result, exportProductToChannel(), and install().
| dbx\dbxShop\dbxShopRepository::exportProductToChannel | ( | int | $productId, |
| string | $channelKey ) |
Definition at line 1520 of file dbxShopRepository.class.php.
References install(), and productById().
Referenced by exportProductsToChannel().
| dbx\dbxShop\dbxShopRepository::groupById | ( | int | $id | ) |
Definition at line 608 of file dbxShopRepository.class.php.
References install().
Referenced by groupPath(), groupsForProduct(), and moveProductGroupParent().
| dbx\dbxShop\dbxShopRepository::groupPath | ( | int | $groupId | ) |
Definition at line 1169 of file dbxShopRepository.class.php.
References groupById(), and install().
| dbx\dbxShop\dbxShopRepository::groups | ( | ) |
Definition at line 1153 of file dbxShopRepository.class.php.
References install().
Referenced by allAttributeDefinitions().
| dbx\dbxShop\dbxShopRepository::groupsByParent | ( | int | $parentId = 0, |
| bool | $activeOnly = true ) |
Definition at line 1159 of file dbxShopRepository.class.php.
References install().
| dbx\dbxShop\dbxShopRepository::groupsForProduct | ( | int | $productId | ) |
Definition at line 852 of file dbxShopRepository.class.php.
References groupById().
Referenced by attributeDefinitionsForProduct(), and productImageCounts().
| dbx\dbxShop\dbxShopRepository::imagesForProduct | ( | int | $productId, |
| array | $groups = array() ) |
Definition at line 1829 of file dbxShopRepository.class.php.
References install().
Referenced by productImageCounts().
| dbx\dbxShop\dbxShopRepository::importChannelOrder | ( | string | $channelKey, |
| array | $payload ) |
Definition at line 2151 of file dbxShopRepository.class.php.
References channelByKey(), and install().
| dbx\dbxShop\dbxShopRepository::inheritedChannelsForProduct | ( | int | $productId | ) |
Definition at line 980 of file dbxShopRepository.class.php.
References channels(), and install().
| dbx\dbxShop\dbxShopRepository::install | ( | ) |
Definition at line 83 of file dbxShopRepository.class.php.
Referenced by addChannelToProducts(), allAttributeDefinitions(), allImages(), attributeDefinitionsForGroup(), attributeFilterDefinitions(), attributesForProduct(), channelById(), channelByKey(), channelGroups(), channels(), createOrderFromItems(), dashboardStats(), deleteChannel(), deleteChannelGroup(), deleteOrder(), deleteProductGroup(), deleteProducts(), deleteShippingGroup(), ensureOrderInvoicePdf(), exportProductsToChannel(), exportProductToChannel(), groupById(), groupPath(), groups(), groupsByParent(), imagesForProduct(), importChannelOrder(), inheritedChannelsForProduct(), moveProductGroupParent(), orderById(), orderByNo(), orderByPaymentReference(), orderChannelKeys(), orderCount(), orders(), ordersByUid(), primaryImageForGroup(), productById(), productBySku(), productChannelMapping(), productChannelOverrides(), productImageCounts(), products(), removeChannelFromProducts(), removeProductImageAssociation(), saveAttributeDefinition(), saveImage(), saveMediaImage(), saveProductAttributeValue(), saveProductChannelMapping(), saveProductChannelOverrides(), saveWithdrawal(), seedDemoProducts(), setProductGroupForProducts(), shippingGroups(), stockIssuesForItems(), testChannelConnection(), updateChannel(), updateChannelGroup(), updateImageMediaReference(), updateOrderAdmin(), updateOrderPayment(), updateOrderQuickAction(), updateProductGroup(), updateShippingGroup(), updateWithdrawalAdmin(), and withdrawals().
| dbx\dbxShop\dbxShopRepository::invoicePdfAbsolutePath | ( | array | $order | ) |
Definition at line 2769 of file dbxShopRepository.class.php.
| dbx\dbxShop\dbxShopRepository::moveProductGroupParent | ( | int | $groupId, |
| int | $parentId ) |
Definition at line 1225 of file dbxShopRepository.class.php.
References groupById(), and install().
| dbx\dbxShop\dbxShopRepository::nextInvoiceNo | ( | ) |
Definition at line 2608 of file dbxShopRepository.class.php.
Referenced by updateOrderAdmin().
| dbx\dbxShop\dbxShopRepository::orderById | ( | int | $id | ) |
Definition at line 2292 of file dbxShopRepository.class.php.
References install(), orderHistory(), orderItems(), and withdrawalsForOrder().
Referenced by ensureOrderInvoicePdf(), updateOrderAdmin(), updateOrderPayment(), and updateOrderQuickAction().
| dbx\dbxShop\dbxShopRepository::orderByNo | ( | string | $orderNo | ) |
Definition at line 2282 of file dbxShopRepository.class.php.
References install(), orderHistory(), orderItems(), and withdrawalsForOrder().
Referenced by saveWithdrawal().
| dbx\dbxShop\dbxShopRepository::orderByPaymentReference | ( | string | $provider, |
| string | $reference ) |
Definition at line 2548 of file dbxShopRepository.class.php.
References install(), and orderItems().
| dbx\dbxShop\dbxShopRepository::orderChannelKeys | ( | ) |
Definition at line 2367 of file dbxShopRepository.class.php.
References install().
| dbx\dbxShop\dbxShopRepository::orderCount | ( | array | $filters = array() | ) |
Definition at line 2350 of file dbxShopRepository.class.php.
References install().
| dbx\dbxShop\dbxShopRepository::orderHistory | ( | int | $orderId | ) |
Definition at line 2603 of file dbxShopRepository.class.php.
Referenced by orderById(), and orderByNo().
| dbx\dbxShop\dbxShopRepository::orderItems | ( | int | $orderId | ) |
Definition at line 2556 of file dbxShopRepository.class.php.
Referenced by orderById(), orderByNo(), and orderByPaymentReference().
| dbx\dbxShop\dbxShopRepository::orders | ( | array | $filters = array(), |
| int | $limit = 50, | ||
| int | $offset = 0, | ||
| string | $sort = 'create_date', | ||
| string | $direction = 'DESC' ) |
Definition at line 2319 of file dbxShopRepository.class.php.
References install().
| dbx\dbxShop\dbxShopRepository::ordersByUid | ( | int | $uid, |
| int | $limit = 25 ) |
Definition at line 2302 of file dbxShopRepository.class.php.
References install().
| dbx\dbxShop\dbxShopRepository::primaryImageForGroup | ( | int | $groupId | ) |
Definition at line 1999 of file dbxShopRepository.class.php.
References install().
| dbx\dbxShop\dbxShopRepository::productById | ( | int | $id | ) |
Definition at line 602 of file dbxShopRepository.class.php.
References install().
Referenced by exportProductToChannel(), productChannelMapping(), and saveProductChannelMapping().
| dbx\dbxShop\dbxShopRepository::productBySku | ( | string | $sku, |
| bool | $activeOnly = true ) |
Definition at line 592 of file dbxShopRepository.class.php.
References install().
Referenced by stockIssuesForItems().
| dbx\dbxShop\dbxShopRepository::productChannelMapping | ( | int | $productId, |
| string | $channelKey ) |
Definition at line 1417 of file dbxShopRepository.class.php.
References install(), and productById().
| dbx\dbxShop\dbxShopRepository::productChannelOverrides | ( | int | $productId | ) |
Definition at line 953 of file dbxShopRepository.class.php.
References channels(), and install().
| dbx\dbxShop\dbxShopRepository::productImageCounts | ( | ) |
Definition at line 1880 of file dbxShopRepository.class.php.
References groupsForProduct(), imagesForProduct(), and install().
| dbx\dbxShop\dbxShopRepository::products | ( | bool | $activeOnly = true | ) |
Definition at line 584 of file dbxShopRepository.class.php.
References install().
| dbx\dbxShop\dbxShopRepository::removeChannelFromProducts | ( | array | $ids, |
| string | $channelKey ) |
Definition at line 804 of file dbxShopRepository.class.php.
References install().
| dbx\dbxShop\dbxShopRepository::removeProductImageAssociation | ( | int | $imageId, |
| int | $productId = 0 ) |
Definition at line 2019 of file dbxShopRepository.class.php.
References install().
| dbx\dbxShop\dbxShopRepository::saveAttributeDefinition | ( | array | $data | ) |
Definition at line 470 of file dbxShopRepository.class.php.
References install().
| dbx\dbxShop\dbxShopRepository::saveImage | ( | int | $productId, |
| int | $groupId, | ||
| string | $imagePath, | ||
| string | $title, | ||
| string | $alt, | ||
| int | $isPrimary = 0, | ||
| int | $sorter = 100 ) |
Definition at line 1930 of file dbxShopRepository.class.php.
References install().
| dbx\dbxShop\dbxShopRepository::saveMediaImage | ( | int | $productId, |
| int | $groupId, | ||
| int | $mediaId, | ||
| string | $title = '', | ||
| string | $alt = '', | ||
| int | $isPrimary = 0, | ||
| int | $sorter = 100 ) |
Definition at line 1959 of file dbxShopRepository.class.php.
References install().
| dbx\dbxShop\dbxShopRepository::saveProductAttributeValue | ( | int | $productId, |
| int | $attributeId, | ||
| string | $value ) |
Definition at line 508 of file dbxShopRepository.class.php.
References install().
Referenced by saveProductAttributeValues().
| dbx\dbxShop\dbxShopRepository::saveProductAttributeValues | ( | int | $productId, |
| array | $values ) |
Definition at line 529 of file dbxShopRepository.class.php.
References foreach, and saveProductAttributeValue().
| dbx\dbxShop\dbxShopRepository::saveProductChannelMapping | ( | int | $productId, |
| string | $channelKey, | ||
| array | $data ) |
Definition at line 1457 of file dbxShopRepository.class.php.
References channelByKey(), install(), and productById().
| dbx\dbxShop\dbxShopRepository::saveProductChannelOverrides | ( | int | $productId, |
| array | $activeChannelKeys ) |
Definition at line 1027 of file dbxShopRepository.class.php.
References install().
| dbx\dbxShop\dbxShopRepository::saveWithdrawal | ( | array | $data | ) |
Definition at line 2779 of file dbxShopRepository.class.php.
References install(), and orderByNo().
| dbx\dbxShop\dbxShopRepository::seedDemoProducts | ( | ) |
Definition at line 320 of file dbxShopRepository.class.php.
References install().
| dbx\dbxShop\dbxShopRepository::setProductGroupForProducts | ( | array | $ids, |
| int | $groupId ) |
Definition at line 828 of file dbxShopRepository.class.php.
References install().
| dbx\dbxShop\dbxShopRepository::shippingGroups | ( | ) |
Definition at line 1581 of file dbxShopRepository.class.php.
References install().
| dbx\dbxShop\dbxShopRepository::shippingGroupsForProduct | ( | int | $productId | ) |
Definition at line 1087 of file dbxShopRepository.class.php.
| dbx\dbxShop\dbxShopRepository::stockIssuesForItems | ( | array | $items | ) |
Definition at line 630 of file dbxShopRepository.class.php.
References install(), and productBySku().
| dbx\dbxShop\dbxShopRepository::testChannelConnection | ( | int | $id | ) |
Definition at line 1354 of file dbxShopRepository.class.php.
References channelById(), and install().
| dbx\dbxShop\dbxShopRepository::updateChannel | ( | int | $id, |
| array | $data ) |
Definition at line 1276 of file dbxShopRepository.class.php.
References $field, channelById(), and install().
| dbx\dbxShop\dbxShopRepository::updateChannelGroup | ( | int | $id, |
| array | $data, | ||
| array | $channelKeys ) |
Definition at line 1691 of file dbxShopRepository.class.php.
References install().
| dbx\dbxShop\dbxShopRepository::updateImageMediaReference | ( | int | $imageId, |
| int | $mediaId, | ||
| string | $imagePath = '' ) |
Definition at line 1909 of file dbxShopRepository.class.php.
References install().
| dbx\dbxShop\dbxShopRepository::updateOrderAdmin | ( | int | $id, |
| array | $data ) |
Definition at line 2381 of file dbxShopRepository.class.php.
References install(), nextInvoiceNo(), and orderById().
| dbx\dbxShop\dbxShopRepository::updateOrderPayment | ( | int | $orderId, |
| string | $provider, | ||
| string | $status, | ||
| string | $reference = '', | ||
| array | $payload = array() ) |
Definition at line 2561 of file dbxShopRepository.class.php.
References addOrderHistory(), install(), and orderById().
| dbx\dbxShop\dbxShopRepository::updateOrderQuickAction | ( | int | $id, |
| string | $action ) |
Definition at line 2468 of file dbxShopRepository.class.php.
References install(), and orderById().
| dbx\dbxShop\dbxShopRepository::updateProductGroup | ( | int | $id, |
| array | $data ) |
Definition at line 1620 of file dbxShopRepository.class.php.
References install().
| dbx\dbxShop\dbxShopRepository::updateShippingGroup | ( | int | $id, |
| array | $data ) |
Definition at line 1664 of file dbxShopRepository.class.php.
References install().
| dbx\dbxShop\dbxShopRepository::updateWithdrawalAdmin | ( | int | $id, |
| string | $status, | ||
| string | $note = '' ) |
Definition at line 2803 of file dbxShopRepository.class.php.
References install().
| dbx\dbxShop\dbxShopRepository::withdrawalById | ( | int | $id | ) |
Definition at line 2837 of file dbxShopRepository.class.php.
| dbx\dbxShop\dbxShopRepository::withdrawalCount | ( | array | $filters = array() | ) |
Definition at line 2858 of file dbxShopRepository.class.php.
| dbx\dbxShop\dbxShopRepository::withdrawals | ( | array | $filters = array(), |
| int | $limit = 50, | ||
| int | $offset = 0 ) |
Definition at line 2842 of file dbxShopRepository.class.php.
References install().
| dbx\dbxShop\dbxShopRepository::withdrawalsForOrder | ( | int | $orderId | ) |
Definition at line 2872 of file dbxShopRepository.class.php.
References if.
Referenced by orderById(), and orderByNo().