Methods summary
protected
|
#
copy_from_elgg( ElggEntity $elgg_entity )
Loads object parameters stored in Elgg
Loads object parameters stored in Elgg
Parameters
- $elgg_entity
ElggEntity
$elgg_entity Elgg Object to load parameters from.
Overrides
|
protected
|
#
copy_to_elgg( ElggEntity $elgg_entity )
Copy $this object parameters into an Elgg entity.
Copy $this object parameters into an Elgg entity.
Parameters
- $elgg_entity
ElggEntity
$elgg_entity Elgg object instance to save $this to
Overrides
|
public static
integer|boolean
|
#
create( array $prop_value_array )
Create a new instance of this class, and assign values to its properties.
Create a new instance of this class, and assign values to its properties.
Parameters
- $prop_value_array
array $prop_value_array Array of [property]=>value pairs to set into the new
instance
Returns
integer|boolean Returns instance Id if correct, or false if error
Overrides
|
public static
boolean
|
#
add_tags( integer $id, array $tag_array )
Adds Tags to a Tricky Topic, referenced by Id.
Adds Tags to a Tricky Topic, referenced by Id.
Parameters
- $id
integer $id Id from the Tricky Topic to add Tags to
- $tag_array
array $tag_array Array of Tag Ids to be added to the Tricky Topic
Returns
boolean Returns true if success, false if error
|
public static
boolean
|
#
set_tags( integer $id, array $tag_array )
Sets Tags to a Tricky Topic, referenced by Id.
Sets Tags to a Tricky Topic, referenced by Id.
Parameters
- $id
integer $id Id from the Tricky Topic to set Tags to
- $tag_array
array $tag_array Array of Tag Ids to be set to the Tricky Topic
Returns
boolean Returns true if success, false if error
|
public static
boolean
|
#
remove_tags( integer $id, array $tag_array )
Remove Tags from a Tricky Topic.
Remove Tags from a Tricky Topic.
Parameters
- $id
integer $id Id from Tricky Topic to remove Tags from
- $tag_array
array $tag_array Array of Tag Ids to remove from Tricky Topic
Returns
boolean Returns true if success, false if error
|
public static
array|boolean
|
#
get_tags( integer $id )
Get all Tags from a Tricky Topic
Get all Tags from a Tricky Topic
Parameters
- $id
integer $id Id of the Tricky Topic to get Tags from
Returns
array|boolean Returns an array of Tag IDs, or false if error
|
public static
array
|
#
get_by_remote_id( string $remote_site, int[] $remote_id_array )
Parameters
- $remote_site
string $remote_site
- $remote_id_array
int[] $remote_id_array
Returns
array
|
public static
boolean
|
#
delete_by_remote_id( string $remote_site, int[] $remote_id_array )
Parameters
- $remote_site
string $remote_site
- $remote_id_array
int[] $remote_id_array
Returns
boolean
|
public static
array
|
#
get_from_site( string $remote_site, boolean $remote_ids_only = false )
Parameters
- $remote_site
string $remote_site
- $remote_ids_only
boolean $remote_ids_only Only return remote IDs
Returns
array
|
public static
boolean
|
|