Method | Description | Returns |
---|---|---|
isPrimary() | Check whether this environment is the primary environment | bool |
getLastVcsHash() | Gets last VCS hash for current environment. Returns 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 | |
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 |
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 |
Sites\Models\Backend\Environment
Environment