public static function getAllCommerceProductCategories(CNabuCommerce $nb_commerce)
    {
        $nb_commerce_id = nb_getMixedValue($nb_commerce, 'nb_commerce_id');
        if (is_numeric($nb_commerce_id)) {
            $retval = forward_static_call(
            array(get_called_class(), 'buildObjectListFromSQL'),
                'nb_commerce_product_category_id',
                'select * '
                . 'from nb_commerce_product_category '
               . 'where nb_commerce_id=%commerce_id$d',
                array(
                    'commerce_id' => $nb_commerce_id
                ),
                $nb_commerce
            );
        } else {
            $retval = new CNabuCommerceProductCategoryList();
        }
        
        return $retval;
    }
public static function getAllCommerceProductCategories(CNabuCommerce $nb_commerce)
    {
        $nb_commerce_id = nb_getMixedValue($nb_commerce, 'nb_commerce_id');
        if (is_numeric($nb_commerce_id)) {
            $retval = forward_static_call(
            array(get_called_class(), 'buildObjectListFromSQL'),
                'nb_commerce_product_category_id',
                'select * '
                . 'from nb_commerce_product_category '
               . 'where nb_commerce_id=%commerce_id$d',
                array(
                    'commerce_id' => $nb_commerce_id
                ),
                $nb_commerce
            );
        } else {
            $retval = new CNabuCommerceProductCategoryList();
        }
        
        return $retval;
    }
public static function getAllCommerceProductCategories ( CNabuCommerce $ nb_commerce ) { $ nb_commerce_id = nb_getMixedValue ( $ nb_commerce , 'nb_commerce_id' ) ; if ( is_numeric ( $ nb_commerce_id ) ) { $ retval = forward_static_call ( array ( get_called_class ( ) , 'buildObjectListFromSQL' ) , 'nb_commerce_product_category_id' , 'select * ' . 'from nb_commerce_product_category ' . 'where nb_commerce_id=%commerce_id$d' , array ( 'commerce_id' => $ nb_commerce_id ) , $ nb_commerce ) ; } else { $ retval = new CNabuCommerceProductCategoryList ( ) ; } return $ retval ; }
Get all items in the storage as an associative array where the field 'nb_commerce_product_category_id' is the
index, and each value is an instance of class CNabuCommerceProductCategoryBase.
@param CNabuCommerce $nb_commerce The CNabuCommerce instance of the Commerce that owns the Commerce Product
Category List.
@return mixed Returns and array with all items.
Get all items in the storage as an associative array where the field nb_commerce_product_category_id is the index and each value is an instance of class CNabuCommerceProductCategoryBase .