Method |
Description |
|
__construct ( Inpsyde\MultilingualPress\Database\Table $table ) |
Constructor. Sets up the properties. |
|
delete_relation ( integer $site_1, integer $site_2 ) : integer |
Deletes the relationship between the given sites. If only one site is given, all its relations will be deleted. |
|
get_all_relations ( ) : int[] |
Returns an array with site IDs as keys and arrays with the IDs of all related sites as values. |
|
get_related_site_ids ( integer $site_id, boolean $include_site = false ) : int[] |
Returns an array holding the IDs of all sites related to the site with the given (or current) ID. |
|
insert_relations ( integer $base_site_id, array $site_ids ) : integer |
Creates relations between one site and one or more other sites. |
|