|
string int | $id = 'custom_logo' |
|
int | $db_id = 0 |
|
bool | $custom = true |
|
store as | trait_store |
|
getMimeType as | trait_getMimeType |
|
string | $tbl_prefix = '' |
|
string int | $id |
|
int | $db_id |
|
int | $height |
|
int | $width |
|
int | $optimal_height |
|
int | $optimal_width |
|
string | $file_path |
|
string | $format |
|
string | $mime |
|
bool | $has_picture = false |
|
string | $store_path = GALETTE_PHOTOS_PATH |
|
int | $max_width = 200 |
|
int | $max_height = 200 |
|
|
static | getMimeType (string $file) |
|
const | SQL_ERROR = -10 |
|
const | SQL_BLOB_ERROR = -11 |
|
const | TABLE = 'pictures' |
|
const | PK = Adherent::PK |
|
const | INVALID_FILENAME = -1 |
|
const | INVALID_EXTENSION = -2 |
|
const | FILE_TOO_BIG = -3 |
|
const | IMAGE_TOO_SMALL = -4 |
|
const | MIME_NOT_ALLOWED = -5 |
|
const | NEW_FILE_EXISTS = -6 |
|
const | INVALID_FILE = -7 |
|
const | CANT_WRITE = -8 |
|
const | MAX_FILE_SIZE = 2048 |
|
const | MIN_CROP_SIZE = 267 |
|
This class stores and serve the logo. If no custom logo is found, we take galette's default one.
- Author
- Johan Cwiklinski johan.nosp@m.@x-t.nosp@m.nd.be
◆ __construct()
Galette\Core\Logo::__construct |
( |
| ) |
|
◆ getCheckFileQuery()
Galette\Core\Logo::getCheckFileQuery |
( |
| ) |
|
|
protected |
Returns the relevant query to check if picture exists in database.
- See also
- picture::getCheckFileQuery()
- Returns
- Select SELECT query
Reimplemented from Galette\Core\Picture.
◆ getDefaultPicture()
Galette\Core\Logo::getDefaultPicture |
( |
| ) |
|
|
protected |
◆ isCustom()
Galette\Core\Logo::isCustom |
( |
| ) |
|
Returns custom state
- 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/Core/Logo.php