Exponential Basic 2.4.0.1 Exponential Basic CMS — PHP Class Reference

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

## Public Member Functions
| __construct ( $id=-1)
| store ()
| delete ( $catID=-1)
| get ( $id=-1)
| fill (&$value)
& | getAll ( $offset=0, $limit=20)
| count ()
| id ()
& | description ()
| setDescription (&$value)
| setAddress (&$value)
| setVoucher (&$value)
| setPreOrder (&$value)
| address ( $as_object=true)
| voucher ( $as_object=true)
| preOrder ( $as_object=true)

## Public Attributes
| $ID
| $Description
| $PreOrderID
| $AddressID
| $VoucherID

## Detailed Description

! ezquizvoucher smail ezquizvoucher smail documentation.

Example code:

$voucherInfo = new eZVoucherSMail(); // Create a new object.
$address = new eZAddress( 7 ); // Get eZAddress object with id 7.
$address->store();
$voucherInfo->setAddress( $address ); // Add the eZAddress object.
$voucherInfo->setPreOrder( 10 ); // Add the pre order id.
$voucherInfo->setDescription( $Description ); // Add a description.
$voucherInfo->setVoucher( $voucher ); // Adds the eZVoucher objdect.
$voucherInfo->store(); // Stores the object to the database
$address
$address
Definition: checkout.php:588
eZAddress
Definition: ezaddress.php:42
eZVoucherSMail
Definition: ezvouchersmail.php:54
eZVoucherSMail\$Description
$Description
Definition: ezvouchersmail.php:324

See also
  eZVoucherUsed eZVoucher eZVoucherEMail

Definition at line 53 of file ezvouchersmail.php.

## Constructor & Destructor Documentation

## ◆ __construct()

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

Constructs a new eZVoucherSMail object.

If $id is set the object's values are fetched from the database.

Definition at line 62 of file ezvouchersmail.php.

References $id, $ID, and fill().

## Member Function Documentation

## ◆ address()

eZVoucherSMail::address | ( |  | $as_object = `true` | ) |

Returns the address

Definition at line 292 of file ezvouchersmail.php.

References $AddressID.

## ◆ count()

eZVoucherSMail::count | ( |  | ) |

Returns the total count.

Definition at line 221 of file ezvouchersmail.php.

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

Referenced by get(), and getAll().

## ◆ delete()

eZVoucherSMail::delete | ( |  | $catID = `-1` | ) |

Deletes a eZVoucherSMail object from the database.

Definition at line 127 of file ezvouchersmail.php.

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

## ◆ description()

& eZVoucherSMail::description | ( |  | ) |

Returns the description of the voucher smail.

Definition at line 243 of file ezvouchersmail.php.

## ◆ fill()

eZVoucherSMail::fill | ( | & | $value | ) |

Fills in information to the object taken from the array.

Definition at line 173 of file ezvouchersmail.php.

Referenced by __construct(), and get().

## ◆ get()

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

Fetches the object information from the database.

True is retuned if successful, false (0) if not.

Definition at line 148 of file ezvouchersmail.php.

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

## ◆ getAll()

& eZVoucherSMail::getAll | ( |  | $offset = `0`,
|  |  | $limit = `20`
| ) |  |

Returns all the categories found in the database.

The categories are returned as an array of eZVoucherSMail objects.

Definition at line 187 of file ezvouchersmail.php.

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

## ◆ id()

eZVoucherSMail::id | ( |  | ) |

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

Definition at line 235 of file ezvouchersmail.php.

References $ID.

## ◆ preOrder()

eZVoucherSMail::preOrder | ( |  | $as_object = `true` | ) |

Returns the pre order

Definition at line 314 of file ezvouchersmail.php.

References $PreOrderID.

## ◆ setAddress()

eZVoucherSMail::setAddress | ( | & | $value | ) |

Sets the address for the voucher smail.

Definition at line 259 of file ezvouchersmail.php.

## ◆ setDescription()

eZVoucherSMail::setDescription | ( | & | $value | ) |

Sets the description.

Definition at line 251 of file ezvouchersmail.php.

## ◆ setPreOrder()

eZVoucherSMail::setPreOrder | ( | & | $value | ) |

Sets the preorder for the voucher smail.

Definition at line 281 of file ezvouchersmail.php.

## ◆ setVoucher()

eZVoucherSMail::setVoucher | ( | & | $value | ) |

Sets the voucher for the voucher smail.

Definition at line 270 of file ezvouchersmail.php.

## ◆ store()

eZVoucherSMail::store | ( |  | ) |

Stores a eZVoucherSMail object to the database.

Definition at line 78 of file ezvouchersmail.php.

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

## ◆ voucher()

eZVoucherSMail::voucher | ( |  | $as_object = `true` | ) |

Returns the voucher

Definition at line 303 of file ezvouchersmail.php.

References $VoucherID.

## Member Data Documentation

## ◆ $AddressID

eZVoucherSMail::$AddressID

Definition at line 326 of file ezvouchersmail.php.

Referenced by address().

## ◆ $Description

eZVoucherSMail::$Description

Definition at line 324 of file ezvouchersmail.php.

## ◆ $ID

eZVoucherSMail::$ID

Definition at line 323 of file ezvouchersmail.php.

Referenced by __construct(), delete(), and id().

## ◆ $PreOrderID

eZVoucherSMail::$PreOrderID

Definition at line 325 of file ezvouchersmail.php.

Referenced by preOrder().

## ◆ $VoucherID

eZVoucherSMail::$VoucherID

Definition at line 327 of file ezvouchersmail.php.

Referenced by voucher().

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

- ezvouchersmail.php

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