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

Public Member Functions

 __construct ()
 
 isCustom ()
 
- 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)
 

Protected Member Functions

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

Protected Attributes

string int $id = 'custom_logo'
 
int $db_id = 0
 
bool $custom = true
 
- 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

- 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 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

Constructor & Destructor Documentation

◆ __construct()

Galette\Core\Logo::__construct ( )

Default constructor.

Member Function Documentation

◆ 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

Gets the default picture to show, anyway

See also
Picture::getDefaultPicture()
Returns
void

Reimplemented from Galette\Core\Picture.

Reimplemented in Galette\Core\PrintLogo.

◆ isCustom()

Galette\Core\Logo::isCustom ( )

Returns custom state

Returns
boolean

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