Exponential Basic 2.4.0.1 Exponential Basic CMS — PHP Class Reference

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

## Public Member Functions
| __construct ( $id=-1)
| store ()
| delete ( $formID=-1)
| get ( $id=-1)
| fill (&$formArray)
& | getAll ( $offset=0, $limit=20)
| count ()
| id ()
& | name ()
& | description ()
| setName (&$value)
| setDescription (&$value)
& | formElements ()
& | numberOfTypes ()

## Public Attributes
| $ID
| $Name
| $Description

## Detailed Description

! eZForm ezformelementtype documentation.

Example code:

Definition at line 41 of file ezformelementtype.php.

## Constructor & Destructor Documentation

## ◆ __construct()

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

Constructs a new eZFormElementType object.

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

Definition at line 50 of file ezformelementtype.php.

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

## Member Function Documentation

## ◆ count()

eZFormElementType::count | ( |  | ) |

Returns the total count of objects in the database.

Definition at line 196 of file ezformelementtype.php.

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

Referenced by formElements(), get(), and getAll().

## ◆ delete()

eZFormElementType::delete | ( |  | $formID = `-1` | ) |

Deletes a eZFormElementType object from the database.

Definition at line 96 of file ezformelementtype.php.

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

## ◆ description()

& eZFormElementType::description | ( |  | ) |

Returns the description of the object.

Definition at line 226 of file ezformelementtype.php.

## ◆ fill()

eZFormElementType::fill | ( | & | $formArray | ) |

Fills in information to the object taken from the array.

Definition at line 149 of file ezformelementtype.php.

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

Referenced by __construct(), and get().

## ◆ formElements()

& eZFormElementType::formElements | ( |  | ) |

Returns every element which this form element type is associated with. The form elements are returned as an array of eZFormElement objects.

Definition at line 253 of file ezformelementtype.php.

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

Referenced by delete().

## ◆ get()

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

Fetches the object information from the database.

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

Definition at line 123 of file ezformelementtype.php.

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

## ◆ getAll()

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

Returns all the objects found in the database.

The objects are returned as an array of eZFormElementType objects.

Definition at line 162 of file ezformelementtype.php.

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

## ◆ id()

eZFormElementType::id | ( |  | ) |

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

Definition at line 210 of file ezformelementtype.php.

References $ID.

## ◆ name()

& eZFormElementType::name | ( |  | ) |

Returns the name of the object.

Definition at line 218 of file ezformelementtype.php.

References Name.

## ◆ numberOfTypes()

& eZFormElementType::numberOfTypes | ( |  | ) |

Returns the number of types which exists

Definition at line 271 of file ezformelementtype.php.

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

## ◆ setDescription()

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

Sets the description of the object.

Definition at line 244 of file ezformelementtype.php.

## ◆ setName()

eZFormElementType::setName | ( | & | $value | ) |

Sets the name of the object.

Definition at line 236 of file ezformelementtype.php.

References Name.

## ◆ store()

eZFormElementType::store | ( |  | ) |

Stores a eZFormElementType object to the database.

Definition at line 66 of file ezformelementtype.php.

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

## Member Data Documentation

## ◆ $Description

eZFormElementType::$Description

Definition at line 285 of file ezformelementtype.php.

## ◆ $ID

eZFormElementType::$ID

Definition at line 283 of file ezformelementtype.php.

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

## ◆ $Name

eZFormElementType::$Name

Definition at line 284 of file ezformelementtype.php.

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

- ezformelementtype.php

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