Property | Type | Description | |
---|---|---|---|
$collected_class | string |
Method | Description | |
---|---|---|
__construct ( array $options = [] ) : |
Instantiates the collection, sets param members as properties | |
all ( ) : Site[] | Retrieves all sites | |
create ( string[] $params = [] ) : Workflow | Creates a new site | |
createForMigration ( string[] $params = [] ) : Workflow | Creates a new site for migration | |
fetch ( array $arg_options = [] ) : |
Fetches model data from API and instantiates its model instances | |
filterByName ( string $regex = '(.*)' ) : |
Filters an array of sites by whether the user is an organizational member | |
filterByOwner ( string $owner_uuid ) : |
Filters an array of sites by whether the user is an organizational member | |
filterByTag ( string $tag ) : |
Filters sites list by tag | |
findUuidByName ( string $name ) : string | Looks up a site's UUID by its name. | |
get ( string $id ) : Site | Retrieves the site of the given UUID or name | |
nameIsTaken ( string $name ) : boolean | Determines whether a given site name is taken or not. |
public __construct ( array $options = [] ) : |
||
$options | array | To be set to $this->key |
return |
public create ( string[] $params = [] ) : Workflow | ||
$params | string[] | Options for the new site, elements as follow: string label The site's human-friendly name string site_name The site's name string organization_id Organization to which this site belongs' UUID |
return | Workflow |
public createForMigration ( string[] $params = [] ) : Workflow | ||
$params | string[] | Options for the new site, elements as follow: string label The site's human-friendly name string site_name The site's name string organization_id Organization to which this site belongs' UUID string type Workflow type for imports |
return | Workflow |
public filterByName ( string $regex = '(.*)' ) : |
||
$regex | string | Non-delimited PHP regex to filter site names by |
return |
public filterByOwner ( string $owner_uuid ) : |
||
$owner_uuid | string | UUID of the owning user to filter by |
return |
public filterByTag ( string $tag ) : |
||
$tag | string | A tag to filter by |
return |
public findUuidByName ( string $name ) : string | ||
$name | string | Name of the site to look up |
return | string |
public nameIsTaken ( string $name ) : boolean | ||
$name | string | Name of the site to look up |
return | boolean |