Galette API documentation
Gestionnaire d’Adhérents en Ligne Extrêmement Tarabiscoté mais Tellement Efficace
1.0.0
Galette\Core\PrintLogo Class Reference
Inheritance diagram for Galette\Core\PrintLogo:
Collaboration diagram for Galette\Core\PrintLogo:

Protected Member Functions

 getDefaultPicture ()
 
- Protected Member Functions inherited from Galette\Core\Picture
 buildDestPath ()
 

Protected Attributes

string int $id = 'custom_print_logo'
 
int $db_id = 999999
 
- Protected Attributes inherited from Galette\Core\Picture
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
 

Additional Inherited Members

- Public Member Functions inherited from Galette\Core\Picture
 __construct (string|int|null $id_adh=null)
 
 __wakeup ()
 
 getContents ()
 
 display (Response $response)
 
 delete (bool $transaction=true)
 
 store (array $file, bool $ajax=false, array $cropping=null)
 
 writeOnDisk (string $tmpfile, bool $ajax)
 
 getOptimalHeight ()
 
 getHeight ()
 
 getOptimalWidth ()
 
 getWidth ()
 
 getFormat ()
 
 hasPicture ()
 
 getPath ()
 
 getMime ()
 
 getErrorMessage (int $code)
 
- Static Public Member Functions inherited from Galette\Core\Picture
static getMimeType (string $file)
 
- Public Attributes inherited from Galette\Core\Picture
const SQL_ERROR = -10
 
const SQL_BLOB_ERROR = -11
 
const TABLE = 'pictures'
 
const PK = Adherent::PK
 
- Public Attributes inherited from Galette\IO\FileInterface
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
 

Detailed Description

This class stores a logo for printing that could be different from the default one. If no print logo is found, we take the default Logo instead.

Author
Johan Cwiklinski johan.nosp@m.@x-t.nosp@m.nd.be

Member Function Documentation

◆ getDefaultPicture()

Galette\Core\PrintLogo::getDefaultPicture ( )
protected

Gets the default picture to show, anyway

See also
Logo::getDefaultPicture()
Returns
void

Reimplemented from Galette\Core\Logo.


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