|
const | TABLE = 'pdfmodels' |
|
const | PK = 'model_id' |
|
const | MAIN_MODEL = 1 |
|
const | INVOICE_MODEL = 2 |
|
const | RECEIPT_MODEL = 3 |
|
const | ADHESION_FORM_MODEL = 4 |
|
|
| loadFromRS (ArrayObject $rs) |
|
| checkChars (string $value, int $chars, string $field, bool $empty=false) |
|
◆ __construct()
Galette\Entity\PdfModel::__construct |
( |
Db |
$zdb, |
|
|
Preferences |
$preferences, |
|
|
int |
$type, |
|
|
ArrayObject|int |
$args = null |
|
) |
| |
Main constructor
- Parameters
-
Db | $zdb | Database instance |
Preferences | $preferences | Galette preferences |
int | $type | Model type |
| ArrayObject<string,int|string>|int|null | $args Arguments |
Reimplemented in Galette\Entity\PdfContribution.
◆ __get()
Galette\Entity\PdfModel::__get |
( |
string |
$name | ) |
|
Getter
- Parameters
-
- Returns
- mixed
◆ __isset()
Galette\Entity\PdfModel::__isset |
( |
string |
$name | ) |
|
Isset Required for twig to access properties via __get
- Parameters
-
- Returns
- bool
◆ __set()
Galette\Entity\PdfModel::__set |
( |
string |
$name, |
|
|
mixed |
$value |
|
) |
| |
Setter
- Parameters
-
string | $name | Property name |
mixed | $value | Property value |
- Returns
- void
◆ checkChars()
Galette\Entity\PdfModel::checkChars |
( |
string |
$value, |
|
|
int |
$chars, |
|
|
string |
$field, |
|
|
bool |
$empty = false |
|
) |
| |
|
protected |
Check length
- Parameters
-
string | $value | The value |
int | $chars | Length |
string | $field | Field name |
boolean | $empty | Can value be empty |
- Returns
- void
◆ getTypeClass()
static Galette\Entity\PdfModel::getTypeClass |
( |
int |
$type | ) |
|
|
static |
Get object class for specified type
- Parameters
-
- Returns
- string
◆ loadFromRS()
Galette\Entity\PdfModel::loadFromRS |
( |
ArrayObject |
$rs | ) |
|
|
protected |
Load model from a db ResultSet
- Parameters
-
ArrayObject<string,int|string> | $rs ResultSet |
- Returns
- void
◆ store()
Galette\Entity\PdfModel::store |
( |
| ) |
|
Store model in database
- Returns
- boolean
The documentation for this class was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/galette-apidoc/checkouts/develop/galette/lib/Galette/Entity/PdfModel.php