Documentation

CFIPublicImage
in package

Table of Contents

Properties

$field  : mixed
$core  : Core7

Methods

__construct()  : mixed
CFI constructor.
allowEmpty()  : CFIPublicImage
Set a title for the field
bucket()  : CFIPublicImage
Assign the bucket where to store the public files. IT should starts with gs:// ot it will add it to $bucket
showAsImage()  : CFIPublicImage
Show the image instead the URL to the image
showAvatar()  : CFIPublicImage
Show the image as an avatar in lists
title()  : CFIPublicImage
Set a title for the field
value()  : CFIPublicImage
Set a title for the field
zoom()  : CFIPublicImage
Set a title for the field

Properties

$field

public mixed $field

$core

private Core7 $core

Methods

__construct()

CFI constructor.

public __construct(Core7 &$core, array<string|int, mixed> &$field) : mixed
Parameters
$core : Core7
$field : array<string|int, mixed>

allowEmpty()

Set a title for the field

public allowEmpty([bool $allowed = true ]) : CFIPublicImage
Parameters
$allowed : bool = true
Return values
CFIPublicImage

$this

bucket()

Assign the bucket where to store the public files. IT should starts with gs:// ot it will add it to $bucket

public bucket(string $buket) : CFIPublicImage
Parameters
$buket : string
Return values
CFIPublicImage

$this

showAsImage()

Show the image instead the URL to the image

public showAsImage([bool $active = true ]) : CFIPublicImage
Parameters
$active : bool = true
Return values
CFIPublicImage

$this

showAvatar()

Show the image as an avatar in lists

public showAvatar([bool $active = true ]) : CFIPublicImage
Parameters
$active : bool = true
Return values
CFIPublicImage

$this

zoom()

Set a title for the field

public zoom([bool $active = true ]) : CFIPublicImage
Parameters
$active : bool = true
Return values
CFIPublicImage

$this


        
On this page

Search results