concrete5/concrete5 — pull request #516 by danklassen (2012-05-01 18:19:05+00:00)
Title: allow area permissions to be passed in as an array to update method

fall back to $_POST to make sure everything continues to work,
but this allows for you to do something like the following to update
the area's permissions without having to write the sql for it

$area = Area::get($c, 'Main');
$permissions = array('areaRead' => array(
0 => 'gID:1',
1 => 'gID:2',
2 => 'gID:3',
3 => 'gID:4',
4 => 'uID:'.$u->getUserID(),
)
);
$area->update($permissions);