g
Frontend | Backend | Api

Sites\Models\Backend\Site

Site

Method Description Returns
getId() int
getName() string
getPrimaryEnvironment() Environment
getCreated() Get the date the record was created. DateTime
getModified() Get the last modification date for the record. DateTime
getPublished() Get the date the record was published or is scheduled to be published. DateTime
isPublished() Check if the record is published. bool
getClient() Client
getEnvironments() Collection (Environment)
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
getAvailableEnvironments() Get the available environments Collection
getEnvironmentsCount() Get the number of environments for this site. 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
getPublishUrl() Get the url for publishing the record. string