![]() |
Grima
2018-08
Whispering into Alma's ear
|
Public Member Functions | |
| addToAlma () | |
| adds Set to Alma, updates object with current Alma version More... |
|
| loadFromAlma ($set_id) | |
| populate set with info from Alma More... |
|
| createFromImport ($job_id, $population) | |
| create a new set in Alma based on a job that just ran More... |
|
| runOnElements ($function, $args=array(), $filter=null, $filter_args=array()) | |
| run a function on every element in the set More... |
|
| getMembers ($limit=-1) | |
| deleteFromAlma () | |
| delete set from Alma More... |
|
| addMember ($id) | |
| add member to a local set More... |
|
| appendInAlma ($setToAppend) | |
| add elements to a set More... |
|
| removeAllMembersInAlma () | |
| remove all members of the set More... |
|
Public Member Functions inherited from AlmaObject
| |
| __construct () | |
| create new blank Alma Object More... |
|
| offsetExists ($offset) | |
| offsetGet ($offset) | |
| offsetSet ($offset, $value) | |
| offsetUnset ($offset) | |
Public Attributes | |
| $xml | |
| $members = array() | |
| $el_address | |
Public Attributes inherited from AlmaObject
| |
| $el_access = array() | |
| $xml | |
| $templateDir = __DIR__ . "/templates" | |
class Set IN PROGRESS
Definition at line 3374 of file grima-lib.php.
| Set::addMember | ( | $id | ) |
add member to a local set
| string | $id | ID of element to add |
Definition at line 3510 of file grima-lib.php.
| Set::addToAlma | ( | ) |
adds Set to Alma, updates object with current Alma version
Definition at line 3411 of file grima-lib.php.
References $grima.
| Set::appendInAlma | ( | $setToAppend | ) |
add elements to a set
| Set | $setToAppend | - set whose members should be added to main set |
Definition at line 3528 of file grima-lib.php.
References $grima.
| Set::createFromImport | ( | $job_id, | |
| $population | |||
| ) |
create a new set in Alma based on a job that just ran
| string | $job_id | - job ID |
| string | $population | - which records from the job # XXX include here |
Definition at line 3436 of file grima-lib.php.
References $grima.
| Set::deleteFromAlma | ( | ) |
| Set::getMembers | ( |
$limit = -1
|
) |
| Set::loadFromAlma | ( | $set_id | ) |
populate set with info from Alma
| string | $set_id | - id of set to pull from Alma |
Definition at line 3423 of file grima-lib.php.
References $grima.
| Set::removeAllMembersInAlma | ( | ) |
| Set::runOnElements | ( | $function, | |
$args = array(), |
|||
$filter = null, |
|||
$filter_args = array() |
|||
| ) |
run a function on every element in the set
| string | $function | name of function to run on set elements, accepts element as first argument |
| array | $args | list of arguments to pass to function in addition to element |
| string | $filter | run function on only elements where filter function returns true |
Definition at line 3450 of file grima-lib.php.
References $grima.
| Set::$el_address |
Definition at line 3388 of file grima-lib.php.
| Set::$members = array() |
Definition at line 3376 of file grima-lib.php.
| Set::$xml |
Definition at line 3375 of file grima-lib.php.
1.8.13