Class ElggSite
A Site entity.
ElggSite represents a single site entity.
An ElggSite object is an ElggEntity child class with the subtype of "site." It is created upon installation and hold all the information about a site: - name - description - url
Every ElggEntity (except ElggSite) belongs to a site.
- ElggData implements Loggable, Iterator, ArrayAccess, Exportable
- ElggEntity implements Notable, Locatable, Importable
- ElggSite
Link: http://docs.elgg.org/DataModel/Sites
Warning: Multiple site support isn't fully developed.
Located at ElggSite.php
protected
|
#
initializeAttributes( )
Initialise the attributes array. This is vital to distinguish between metadata and base parameters. |
public
|
|
protected
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
array
|
#
getMembers( array $options = array(), integer $offset = 0 )
Gets an array of ElggUser entities who are members of the site. |
public
string
|
|
public
boolean
|
|
public
boolean
|
|
public
array
|
#
getObjects( string $subtype = "", integer $limit = 10, integer $offset = 0 )
Returns an array of ElggObject entities that belong to the site. |
public
boolean
|
|
public
boolean
|
|
public
array
|
|
public
|
#
checkWalledGarden( )
Halts bootup and redirects to the site front page if site is in walled garden mode, no user is logged in, and the URL is not a public page. |
public
boolean
|
#
isPublicPage( string $url = '' )
Returns if a URL is public for this site when in Walled Garden mode. |
__get(),
__isset(),
__set(),
current(),
getClassName(),
getTimeCreated(),
key(),
next(),
offsetExists(),
offsetGet(),
offsetSet(),
offsetUnset(),
rewind(),
valid()
|
$icon_override,
$temp_annotations,
$temp_metadata,
$temp_private_settings,
$url_override,
$volatile
|
$attributes,
$valid
|
public
string
|
$name |
#
The name or title of the website |
public
string
|
$description |
#
A motto, mission statement, or description of the website |
public
string
|
$url |
#
The root web address for the site, including trailing slash |
$access_id,
$container_guid,
$enabled,
$guid,
$owner_guid,
$site_guid,
$subtype,
$time_created,
$time_updated,
$type
|