Frontend | Backend | Api

Sites\Models\Backend\Environment

Environment

Method Description Returns
isPrimary() Check whether this environment is the primary environment bool
getLastVcsHash() Fetches the last VCS hash for the environment. Returns the first 7 characters. string
getAnySiteLastVcsHash() Fetches the last VCS hash the current environment, or (if this is empty) for any site's environment where the name matches the current environment. Returns the first 7 characters. string
getId() int
getName() string
getSitePath() string
getRootEntity() Get the root entity associated with this environment string
getRootRecordId() Get the ID of the root record associated with this environment int
getPrimaryHostname() Hostname
getVcsConfig() VcsConfig
getClient() Client
getSite() Site
getHostnames() Collection (Hostname)
getVcsLogs() Collection (VcsLog)
isNewRecord() Check if the record is a new record bool
isHierarchicalModel() Check whether a model is a hierarchical model, i.e. can have children bool
isVersionedModel() Check whether a model is versioned bool
getAvailableHostnames() Get the available hostnames Collection
getAvailableRootEntities() Get the entities supported to be added as root entities array
getHostnamesCount() Get the number of hostnames for this environment. int
getVcsLogsCount() Get the number of vcsLogs for this environment. int
getHateoasLinks() Get the HATEOAS links for the record array
getCreateChildUrl() Get the url for creating a child record. string
getEditUrl() Get the url for editing the record. string
getDeleteUrl() Get the url for deleting the record. string