AccommodationTypeData
extends AbstractPostData
in package
Table of Contents
- $entity : RoomType
- $_entity_init_state : mixed
- __construct() : mixed
- __get() : mixed
- __set() : mixed
- findById() : static|null
- getData() : array<string|int, mixed>
- getFields() : array<string|int, mixed>
- getProperties() : mixed
- getRepository() : AbstractPostRepository
- getRequiredFieldKeys() : array<string|int, mixed>
- getRequiredFields() : array<string|int, mixed>
- getSchema() : mixed
- getWritableFieldKeys() : array<string|int, mixed>
- getWritableFields() : array<string|int, mixed>
- save() : bool
- formatEntityTermDataToResponse() : array<string|int, mixed>
- formatTermIdsToTerms() : array<string|int, WP_Term>
- getAdults() : mixed
- getAmenities() : array<string|int, mixed>
- getAttributes() : array<string|int, mixed>
- getCategories() : array<string|int, mixed>
- getChildren() : mixed
- getDateCreated() : mixed
- getDateCreatedUtc() : mixed
- getDateModified() : mixed
- getDateModifiedUtc() : mixed
- getImages() : array<string|int, mixed>
- Get data of attached featured and gallery images to accommodation type
- getServices() : array<string|int, mixed>
- getSize() : mixed
- getTags() : array<string|int, mixed>
- getTotalCapacity() : mixed
- isDataChanged() : bool
- setAmenities() : mixed
- setAttributes() : mixed
- setCategories() : mixed
- setServices() : mixed
- setTags() : mixed
- setDataToEntity() : mixed
Properties
$entity
public
RoomType
$entity
$_entity_init_state
protected
mixed
$_entity_init_state
Methods
__construct()
public
__construct(mixed $entity) : mixed
Parameters
- $entity : mixed
Return values
mixed —__get()
public
__get( $property) : mixed
Parameters
Tags
Return values
mixed —__set()
public
__set( $property, $value) : mixed
Parameters
Tags
Return values
mixed —findById()
public
static findById(int $id) : static|null
Parameters
- $id : int
Return values
static|null —getData()
public
getData() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —getFields()
public
static getFields() : array<string|int, mixed>
Return values
array<string|int, mixed> —getProperties()
public
static getProperties() : mixed
Return values
mixed —getRepository()
public
static getRepository() : AbstractPostRepository
Return values
AbstractPostRepository —getRequiredFieldKeys()
public
static getRequiredFieldKeys() : array<string|int, mixed>
Return values
array<string|int, mixed> —getRequiredFields()
public
static getRequiredFields() : array<string|int, mixed>
Return values
array<string|int, mixed> —getSchema()
public
static getSchema(mixed $title) : mixed
Parameters
- $title : mixed
Return values
mixed —getWritableFieldKeys()
public
static getWritableFieldKeys() : array<string|int, mixed>
Return values
array<string|int, mixed> —getWritableFields()
public
static getWritableFields() : array<string|int, mixed>
Return values
array<string|int, mixed> —save()
public
save() : bool
Tags
Return values
bool —formatEntityTermDataToResponse()
protected
formatEntityTermDataToResponse( $termData) : array<string|int, mixed>
Parameters
Return values
array<string|int, mixed> —[ [ "id" => (int), "name" => (string) ], ... ]
formatTermIdsToTerms()
protected
formatTermIdsToTerms( $taxonomy, $termIds, $fieldName) : array<string|int, WP_Term>
Parameters
Tags
Return values
array<string|int, WP_Term> —getAdults()
protected
getAdults() : mixed
Return values
mixed —getAmenities()
protected
getAmenities() : array<string|int, mixed>
Return values
array<string|int, mixed> —[ ['id' => (int), 'name' => (string)] ]
getAttributes()
protected
getAttributes() : array<string|int, mixed>
Return values
array<string|int, mixed> —[ 'id' => (int), 'title' => (string), 'terms' => ['id' => (int), 'name' => (string)] ]
getCategories()
protected
getCategories() : array<string|int, mixed>
Return values
array<string|int, mixed> —[ ['id' => (int), 'name' => (string)] ]
getChildren()
protected
getChildren() : mixed
Return values
mixed —getDateCreated()
protected
getDateCreated() : mixed
Return values
mixed —getDateCreatedUtc()
protected
getDateCreatedUtc() : mixed
Return values
mixed —getDateModified()
protected
getDateModified() : mixed
Return values
mixed —getDateModifiedUtc()
protected
getDateModifiedUtc() : mixed
Return values
mixed —getImages()
Get data of attached featured and gallery images to accommodation type
protected
getImages() : array<string|int, mixed>
Return values
array<string|int, mixed> —getServices()
protected
getServices() : array<string|int, mixed>
Return values
array<string|int, mixed> —[ ['id' => (int), 'name' => (string)] ]
getSize()
protected
getSize() : mixed
Return values
mixed —getTags()
protected
getTags() : array<string|int, mixed>
Return values
array<string|int, mixed> —[ ['id' => (int), 'name' => (string)] ]
getTotalCapacity()
protected
getTotalCapacity() : mixed
Return values
mixed —isDataChanged()
protected
isDataChanged() : bool
Return values
bool —setAmenities()
protected
setAmenities(mixed $amenities) : mixed
Parameters
- $amenities : mixed
Return values
mixed —setAttributes()
protected
setAttributes(mixed $attributes) : mixed
Parameters
- $attributes : mixed
Return values
mixed —setCategories()
protected
setCategories(mixed $categories) : mixed
Parameters
- $categories : mixed
Return values
mixed —setServices()
protected
setServices(mixed $services) : mixed
Parameters
- $services : mixed
Return values
mixed —setTags()
protected
setTags(mixed $tags) : mixed
Parameters
- $tags : mixed
Return values
mixed —setDataToEntity()
private
setDataToEntity() : mixed