Attachment
extends AbstractType
in package
implements
TypeInterface
Table of Contents
Interfaces
Properties
- $alias : string|null
- $definition : stdclass
- $orgid : int
- $path : string
- $uploaded : bool
- $url : string
- $value : array<string|int, mixed>|null
Methods
- __construct() : mixed
- id() : string
- script() : string
- use gqlname to select the kind of script you need.
- value() : mixed
- deleted() : bool
- editable() : bool
- label() : string
- options() : array<string|int, mixed>
- required() : bool
- type() : string
- getUrlValueToField() : string
- the url you need to send is part of uploadLink->url as [org/...filename]?
- upload() : string
- validate() : mixed
Properties
$alias
private
string|null
$alias
= null
$definition
private
stdclass
$definition
$orgid
private
int
$orgid
$path
private
string
$path
$uploaded
private
bool
$uploaded
= false
$url
private
string
$url
= ""
$value
private
array<string|int, mixed>|null
$value
= null
Methods
__construct()
public
__construct(stdclass $definition) : mixed
Parameters
- $definition : stdclass
id()
public
id() : string
Return values
stringscript()
use gqlname to select the kind of script you need.
public
script([mixed $gqlname = null ]) : string
because sometimes a Data Type has a different representation in different gqls
Parameters
- $gqlname : mixed = null
Return values
stringvalue()
public
value([mixed $value = null ]) : mixed
Parameters
- $value : mixed = null
deleted()
protected
deleted() : bool
Return values
booleditable()
protected
editable() : bool
Return values
boollabel()
protected
label() : string
Return values
stringoptions()
protected
options() : array<string|int, mixed>
Return values
array<string|int, mixed>required()
protected
required() : bool
Return values
booltype()
protected
type() : string
Return values
stringgetUrlValueToField()
the url you need to send is part of uploadLink->url as [org/...filename]?
private
getUrlValueToField(mixed $url) : string
Parameters
- $url : mixed
Return values
stringupload()
private
upload() : string
Return values
stringvalidate()
private
validate(mixed $value) : mixed
Parameters
- $value : mixed