$query .= " AND (ag.owner_guid = {$user_id})";
$query .= " AND ag.id >= 3";
- $tmp_access_array = array( ACCESS_PRIVATE => elgg_echo("PRIVATE"),
- ACCESS_FRIENDS => elgg_echo("access:friends:label"),
- ACCESS_LOGGED_IN => elgg_echo("LOGGED_IN"),
+ $tmp_access_array = array( ACCESS_PRIVATE => elgg_echo("PRIVATE"),
+ ACCESS_FRIENDS => elgg_echo("access:friends:label"),
+ ACCESS_LOGGED_IN => elgg_echo("LOGGED_IN"),
ACCESS_PUBLIC => elgg_echo("PUBLIC"));
if ($collections = get_data($query)) {
foreach($collections as $collection) {
function delete_access_collection($collection_id) {
$collection_id = (int) $collection_id;
- $collections = get_write_access_array();
+ $collections = get_write_access_array(null, null, TRUE);
$params = array('collection_id' => $collection_id);
if (!trigger_plugin_hook('access:collections:deletecollection', 'collection', $params, true)) {
'object' => array(),
'user' => array(),
'group' => array(),
- //'site' => array()
+ //'site' => array()
);
// sites are a bit wonky. Don't use them just now.
$this->types = array('object', 'user', 'group');
// create some fun objects to play with.
- // one with no subtype
-// $e = new ElggObject();
-// $e->subtype = $subtype;
-// $e->save();
-
- // and 5 with random subtypes
+ // 5 with random subtypes
for ($i=0; $i<5; $i++) {
$subtype = "test_object_subtype_" . rand();
$e = new ElggObject();
*/
public function tearDown() {
//$this->swallowErrors();
-
foreach ($this->entities as $e) {
$e->delete();
- unset($this->entities);
}
}