Exponential Basic 2.4.0.1 Exponential Basic CMS — PHP Class Reference

Public Member Functions | Public Attributes | List of all members
eZShippingType Class Reference

## Public Member Functions
| __construct ( $id=-1)
| store ()
| get ( $id=-1)
& | getAll ()
| delete ()
| setAsDefault ()
| isDefault ()
& | defaultType ()
| id ()
| name ()
| setName ( $value)
| setVATType ( $type)
& | vatType ()

## Public Attributes
| $ID
| $Name
| $VATTypeID
| $IsDefault

## Detailed Description

! eZTrade This class handles shipping types.

Shipping types is different kinds of shipping methods, e.g. Fed. Ex. and DHL could be different shipping types.

See also
  eZProduct

Definition at line 44 of file ezshippingtype.php.

## Constructor & Destructor Documentation

## ◆ __construct()

eZShippingType::__construct | ( |  | $id = `-1` | ) |

Constructs a new object.

Definition at line 49 of file ezshippingtype.php.

References $id, and $ID.

## Member Function Documentation

## ◆ defaultType()

& eZShippingType::defaultType | ( |  | ) |

Returns the default shipping type.

Definition at line 187 of file ezshippingtype.php.

References $db, $ret, and eZDB\globalDatabase().

## ◆ delete()

eZShippingType::delete | ( |  | ) |

Deletes a Shipping Type from the database.

Definition at line 150 of file ezshippingtype.php.

References $db, and eZDB\globalDatabase().

## ◆ get()

eZShippingType::get | ( |  | $id = `-1` | ) |

Fetches the Shipping Type from the database.

Definition at line 105 of file ezshippingtype.php.

References $db, $id, eZDB\globalDatabase(), and Name.

## ◆ getAll()

& eZShippingType::getAll | ( |  | ) |

Retrieves all the VAT types from the database.

Definition at line 130 of file ezshippingtype.php.

References $db, $i, and eZDB\globalDatabase().

## ◆ id()

eZShippingType::id | ( |  | ) |

Returns the object ID to the option. This is the unique ID stored in the database.

Definition at line 208 of file ezshippingtype.php.

References $ID.

## ◆ isDefault()

eZShippingType::isDefault | ( |  | ) |

Returns true if this is the default type.

Definition at line 176 of file ezshippingtype.php.

## ◆ name()

eZShippingType::name | ( |  | ) |

Returns the name of the vat type.

Definition at line 216 of file ezshippingtype.php.

References $Name.

## ◆ setAsDefault()

eZShippingType::setAsDefault | ( |  | ) |

Sets this shipping type to be the default shipping type.

Definition at line 162 of file ezshippingtype.php.

References $db, $res, eZDB\finish(), and eZDB\globalDatabase().

## ◆ setName()

eZShippingType::setName | ( |  | $value | ) |

Sets the name of the vat type.

Definition at line 234 of file ezshippingtype.php.

References Name.

## ◆ setVATType()

eZShippingType::setVATType | ( |  | $type | ) |

Sets the VAT type.

Definition at line 242 of file ezshippingtype.php.

References $type.

## ◆ store()

eZShippingType::store | ( |  | ) |

Stores/updates the Shipping type in the database.

Definition at line 61 of file ezshippingtype.php.

References $db, $res, eZDB\finish(), eZDB\globalDatabase(), and Name.

## ◆ vatType()

& eZShippingType::vatType | ( |  | ) |

Returns the VAT type.

False if no type is assigned.

Definition at line 256 of file ezshippingtype.php.

References $cart, $country, $ini, $mainAddress, $region, $ret, $session, $user, eZUser\currentUser(), eZHTTPTool\getVar(), and eZSession\globalSession().

## Member Data Documentation

## ◆ $ID

eZShippingType::$ID

Definition at line 326 of file ezshippingtype.php.

Referenced by __construct(), and id().

## ◆ $IsDefault

eZShippingType::$IsDefault

Definition at line 329 of file ezshippingtype.php.

## ◆ $Name

eZShippingType::$Name

Definition at line 327 of file ezshippingtype.php.

Referenced by name().

## ◆ $VATTypeID

eZShippingType::$VATTypeID

Definition at line 328 of file ezshippingtype.php.

The documentation for this class was generated from the following file:

- ezshippingtype.php

Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.