Метод |
Описание |
|
__construct ( Graphite $g, $a = [] ) |
|
|
all ( ) |
Call $resource->all(. |
|
allOfType ( $uri ) |
Create a new resource list containing all resources in the current list of the given type. |
|
allString ( ) |
Call $resource->allString(. |
|
append ( $x ) |
Create a new resource list with the given resource or list of resources appended on the end of the current resource list. |
|
distinct ( ) |
|
|
dump ( ) |
Returns a string containing a dump of all the resources in the list. Options is an optional array, same parameters as $options on a dump() of an individual resource. dumpText() does the same thing but with ASCII indents rather than HTML markup. |
|
dumpText ( ) |
As dump() but for preformatted plain text, rather than HTML output. |
|
duplicate ( ) |
Return a copy of this list. |
|
except ( ) |
Create a new resource list with containing only the resources which are in $resourcelist but not in the list being passed in. Only returns one instance of each resource no matter how many duplicates were in either list. |
|
filter ( $fn ) |
Filter a list of resources by calling a function on them and creating a new
list of rseources for which the function returned true. |
|
get ( ) |
Call $resource->get(. |
|
getLiteral ( ) |
Call $resource->getLiteral(. |
|
getString ( ) |
|
|
intersection ( ) |
Create a new resource list with containing only the resources which are in both lists. Only returns one instance of each resource no matter how many duplicates were in either list. |
|
join ( $str ) |
Returns a string of all the items in the resource list, joined with the given string. |
|
label ( ) |
Call $resource->label() on every item in this list and return a resourcelist of the results. |
|
link ( ) |
Calls link() on each item in the resource list and returns it as an array. The array is an object which you can call join() on, so you can use: |
|
load ( ) |
Call $resource->load() on every item in this list and return the total triples from these resources. Careful, this could cause a large number of requests at one go! |
|
map ( $fn ) |
Map a list of resources to a function which must return a resource or null |
|
prettyLink ( ) |
Calls prettyLink() on each item in the resource list and returns it as an array. The array is an object which you can call join() on, so you can use: |
|
shuffle ( $fn ) |
Return a resource list with the same items but in a random order. |
|
sort ( ) |
Return a copy of this resource list sorted by the given property or properties. If a resource has multiple values for a property then one will be used, as with $resource->get(). |
|
uasort ( $cmp ) |
|
|
union ( ) |
Create a new resource list with the given resource or list of resources merged with the current list. Functionally the same as calling $resourcelist->append( . |
|