Method | Description | |
---|---|---|
__construct ( stdClass $row = null ) | Create a new \ElggSite. | |
checkWalledGarden ( ) : void | 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. | |
delete ( ) : boolean | Delete the site. | |
disable ( string $reason = "", boolean $recursive = true ) : boolean | Disable the site | |
getDisplayName ( ) | ||
getDomain ( ) : string | Get the domain for this site | |
getExternalAttributes ( ) : array | Get default values for attributes stored in a separate table | |
getURL ( ) : string | Returns the URL for this site | |
isPublicPage ( string $url = '' ) : boolean | Returns if a URL is public for this site when in Walled Garden mode. | |
setDisplayName ( $displayName ) |
Method | Description | |
---|---|---|
create ( ) | ||
initializeAttributes ( ) : void | Initialize the attributes array. | |
load ( mixed $guid ) : boolean | Loads the full \ElggSite when given a guid. | |
prepareObject ( $object ) | ||
update ( ) |
public __construct ( stdClass $row = null ) | ||
$row | stdClass | Database row result. Default is null to create a new site. |
public checkWalledGarden ( ) : void | ||
return | void |
final public static getExternalAttributes ( ) : array | ||
return | array |
protected initializeAttributes ( ) : void | ||
return | void |
public isPublicPage ( string $url = '' ) : boolean | ||
$url | string | Defaults to the current URL. |
return | boolean |