Squiz Matrix
4.12.2
|
Static Public Member Functions | |
static | constructTrimRequest () |
static | constructRecordSearchClauseGroupedXml ($search_clause=Array(), $classifications) |
static | constructRecordSearch ($search_clauses=Array(), $record_search_options) |
static | constructShortcutRecordUri ($uri) |
static | constructShortcutRecordUris ($uris) |
static | constructDownload ($download_limit='4194304') |
static | constructUpload ($base64PayLoad) |
static | constructFetch ($record_properties=Array(), $search_limit) |
static | constructCreate ($container, $title, $author, $security_level, $additional_fields) |
static | getURIFromRecordNumber ($connection, $record_number) |
static | getURIsFromClassification ($connection, $classification) |
static | getRecordTypeNamesFromUris ($connection, $uris) |
static | getAllRecordTypes ($connection) |
static | constructRecordContainerAltClause ($container_uri) |
static | getDocumentListUnderContainer ($container_uri) |
static | getRecordSearchTypes () |
static | getRecordBehaviours () |
static | getRecordStringSearchClauseType () |
static | getRecordDateRangeSearchClauseType () |
static | getRecordProperties () |
static | getRecordSortProperties () |
static | getSecurityLevel () |
static | getDefaultRecordSearchOptions () |
static | getPackagedFiles ($object_list, $hash_key, &$final_file_path) |
static | executeRequest ($connection, $operations=Array(), $display_type='Fetch', $search_clause_xml= '', $hash_key='', &$final_file_path='') |
static | executeGetAssigneeRequest ($connection, $assignee_name) |
static | executeCreateRequest ($connection, $username, $new_record_info) |
static | SwapElement ($xml, $ele_1, $ele_2) |
static | test_trim_connection ($connection) |
static | getRecordPropertiesFromUri ($connection, $uri, $record_properties) |
+-----------------------------------------------------------------—+ | This MySource Matrix CMS file is Copyright (c) Squiz Pty Ltd | | ACN 084 670 600 | +-----------------------------------------------------------------—+ | IMPORTANT: Your use of this Software is subject to the terms of | | the Licence provided in the file licence.txt. If you cannot find | | this file please contact Squiz (www.squiz.com.au) so we may provide| | you a copy. | +-----------------------------------------------------------------—+
Definition at line 31 of file trim_common.inc.
|
static |
This function is used to create new TRIM record
Definition at line 300 of file trim_common.inc.
|
static |
construct an array to represent the Download object in the WSDL
string | $trans_limit | The maximum transfer limit in bytes |
Definition at line 224 of file trim_common.inc.
|
static |
construct an array to represent the Upload object in the WSDL
string | $record_properties | The base64 encoded content of the file. |
Definition at line 271 of file trim_common.inc.
|
static |
This function return
int | $container_uri | The URI of the container |
Definition at line 513 of file trim_common.inc.
|
static |
construct an array represent the RecordSearch object in the WSDL.
string | $keyword | the search term to be searched for |
string | $field | the field to be search in |
array | $filetypes | file types |
int | $limit | limit to how many record returned |
Definition at line 141 of file trim_common.inc.
|
static |
Construct an xml string representing a serial of logic grouped RecordStringSearchClause
array | $search_clause | The search clauses which will be converted to xml |
array | $classifications | The classifications uris. Search will be restricted to those uris. |
Definition at line 63 of file trim_common.inc.
|
static |
construct an array to represent the ShortcutRecordUri object in the WSDL
int | $uri | The Unique Resource Identifier of each record |
Definition at line 181 of file trim_common.inc.
|
static |
construct an array to represent the ShortcutRecordUris object in the WSDL
array | $uris | The array containing Unique Resource Identifier of each record |
Definition at line 203 of file trim_common.inc.
|
static |
Construct an array represent the TRIMRequest object being sent
Definition at line 40 of file trim_common.inc.
|
static |
construct an array to represent the Upload object in the WSDL
string | $base64PayLoad | The base64 encoded content of the file. |
Definition at line 249 of file trim_common.inc.
|
static |
This function create a record in TRIM.
string | $username | The username of the user who is creating the TRIM document |
array | &$link | information used to create the initial linkArray ( 'record_title' => [The title of the new record] 'record_type' => [some kind of record type (document)], 'parent_container' => [15331], 'securiry_level' => [The security level of the new document], ) |
Definition at line 1074 of file trim_common.inc.
|
static |
This function find the Location URI of the a particular user based on username in TRIM.
string | $assignee_name | The name of the current user who is creating the record |
Definition at line 992 of file trim_common.inc.
|
static |
function to execute the web service request once all the internal objects have been set up properly
array | $operations | the operations that can be perform (search, fetch, download, upload, getaccess) |
string | $display_type | the major operation that need to be achieved, so the object know how to parse the returned XML. |
string | $search_clause_xml | the search clauses xml grouped by logical operator. |
Definition at line 898 of file trim_common.inc.
|
static |
This function returns the Record Type names from the uris of Record Types
Definition at line 471 of file trim_common.inc.
|
static |
This function return a default record search options array
Definition at line 834 of file trim_common.inc.
|
static |
This function return all the records lie under a file/folder
Definition at line 531 of file trim_common.inc.
|
static |
this function download the file into the specified folder
array | $object_list | The array contain the information about the file and its content. |
Definition at line 859 of file trim_common.inc.
|
static |
this function return the record behaviours
Definition at line 576 of file trim_common.inc.
|
static |
this function return the record date range search clause types() available for searching
Definition at line 623 of file trim_common.inc.
|
static |
this function return the record properties available for searching
Definition at line 652 of file trim_common.inc.
|
static |
This function return specific properties of a record based on URI
array | $connection | - details |
string | $uri | - uri of desired subject |
array | $record_properties | - array of return properties |
Definition at line 1374 of file trim_common.inc.
|
static |
this function return the record search types() available for searching
Definition at line 557 of file trim_common.inc.
|
static |
this function return the record properties available for sorting
Definition at line 784 of file trim_common.inc.
|
static |
this function return the record string search clause types() available for searching
Definition at line 599 of file trim_common.inc.
|
static |
This function returns the Record Type names from the uris of Record Types
Definition at line 435 of file trim_common.inc.
|
static |
This function return all the available security levels in TRIM
Definition at line 814 of file trim_common.inc.
|
static |
This function return the Unique Resource Identifier for a particular Record Number
Definition at line 365 of file trim_common.inc.
|
static |
This function return the Unique Resource Identifiers of a classification and all its sub-classifications
Definition at line 402 of file trim_common.inc.
|
static |
swap the two XML element that are adjacent to each other if ele_1 occurs after to ele_2 The reason why we need this function is because sometimes RecordSearch need to be sent before Fetch, so Fetch know where to fetch results from.
string | $xml | The TrimRequest object converted to XML |
string | $ele_1 | First element (fetch) |
string | $ele_2 | Second element (recordsearch) |
Definition at line 1219 of file trim_common.inc.
|
static |
This function test whether a connection is valid
Definition at line 1327 of file trim_common.inc.