Squiz Matrix
4.12.2
|
Public Member Functions | |
__construct ($assetid=0) | |
create (Array &$link) | |
_getName ($short_name=FALSE) | |
canDelete () | |
canClone () | |
getProducts ($includeCurrent=TRUE, $includeDeleted=TRUE, $excludeTypes=array(), $includeStatus=array()) | |
getLiveProducts () | |
getProduct ($suiteid=NULL) | |
getProductBySystemid ($systemid) | |
getProductBySystemidURL ($systemid, $url) | |
getProductByToken ($token) | |
getSystemId () | |
getProductAttribute ($suiteid, $attrName) | |
getCurrentProduct () | |
getProductsByType ($type) | |
updateProduct ($suiteid, $attrName, $attrValue) | |
registerProduct ($systemid, $type, $url, $connection) | |
removeProduct ($suiteid, $current=FALSE) | |
printFrontend () | |
getAPI ($system, $method) | |
encodeJson ($data) | |
decodeJson ($data) | |
generateSystemKeyPair () | |
sendMessage ($targetid, $msgType, array $options=array()) | |
sendRequest ($targetid, $format, $system, $action, $message=Array()) | |
createConnectionToken () | |
syncWithLiveProducts () | |
syncProductDetails (array $product_info, array $new_product_info) | |
syncDeletedProducts (array $deleted, array &$markedForDeletion, array &$markedForAddition) | |
syncConnectedProducts ($requesterSuiteid, array $connected, array &$markedForDeletion, array &$markedForAddtion) | |
getSuiteProductInfo (array $current_product) | |
getSuiteMessageResult ($response) | |
sendCURLAPIRequest ($url, $msg, $userAgent='') | |
createSuiteMessageDOMTemplate ($targetid) | |
parseSuiteXML ($xml, $fields=array()) | |
logReceivedMessage ($systemid, $msgType) | |
logSentMessage ($systemid, $msgType) | |
logErrorMessage ($errorMessage='') | |
encryptAPIData ($url, array $msg, $userAgent) | |
decryptAPIData () | |
encryptData ($suiteid, $data) | |
decryptData ($data, $password) | |
buildResponseXMLDom (&$parentNode, $content) | |
Public Member Functions inherited from Page | |
__construct ($assetid=0) | |
_getAllowedLinks () | |
printBody () | |
Public Member Functions inherited from Asset | |
Asset ($assetid=0) | |
create (Array &$link) | |
load ($assetid) | |
_loadDataPaths () | |
reload () | |
canDelete () | |
delete ($release_lock=TRUE, $check_locked=TRUE) | |
useSystemVersion () | |
loadSystemVersion () | |
saveSystemVersion () | |
clearSystemVersion () | |
revertToSystemVersion () | |
revertNoticeLinksToSystemVersion () | |
_updated ($update_parents=TRUE) | |
type () | |
getTypeAncestors ($include_asset=TRUE) | |
incrementVersion ($number='micro', $update_parents=TRUE) | |
getLanguages () | |
setLanguages (Array $languages) | |
setCharset ($charset) | |
setForceSecure ($force_secure) | |
remapAssetids (Array $map) | |
morph ($new_type_code) | |
_morphCleanup ($new_type_code) | |
onRequestKeywords (Asset $broadcaster, Array $vars=Array()) | |
canClone () | |
cloneComponents (Asset $clone, Array $components, $override=FALSE) | |
cloneComponentsAdditional (Asset $clone, Array $components) | |
cloneLinks (Asset $clone) | |
getStatus () | |
getAvailableStatii () | |
getStatusDescription () | |
processStatusChange ($new_status, $update_parents=TRUE, $run_updated=TRUE) | |
setDate ($date_type, $time=NULL, $userid=NULL) | |
lockTypes () | |
canForceablyAcquireLock ($lock_type) | |
getEditingLocks ($keywords) | |
_getAllowedLinks () | |
createLink (Asset $minor, $link_type, $value='', $sort_order=NULL, $dependant='0', $exclusive='0', $moving=FALSE, $locked=0) | |
prepareLink (Asset $asset, $side_of_link, &$link_type, &$value, &$sort_order, &$dependant, &$exclusive) | |
canCreateLink (Asset $minor, $link_type, $exclusive) | |
canMoveLink (Asset $minor, Asset $old_major, $link_type) | |
describeLink ($linkid) | |
isDeletableLink ($linkid) | |
canDeleteLink ($linkid) | |
deleteLink ($linkid, $check_locked=TRUE) | |
linksUpdated () | |
canCloneLink () | |
saveAttributes ($dont_run_updated=FALSE, $log_message=TRUE) | |
setAttrValue ($name, $value) | |
attr ($name) | |
& | attrByRef ($name) |
getAttribute ($name, $mute_errors=FALSE) | |
getAssetKeywords ($descriptions=FALSE) | |
getAvailableKeywords () | |
getKeywordReplacement ($keyword) | |
getAssetWebPathKeywordReplacement () | |
getCustomKeywordReplacements ($keywords=Array(), $invoke_backend=FALSE) | |
processCustomKeywords ($keywords=Array()) | |
getContent () | |
setContent () | |
getEffectiveLastUpdatedTime ($assetids) | |
readAccess (Array $assetids=Array()) | |
writeAccess ($lock_type='', Array $assetids=Array(), $only_workflow=TRUE) | |
adminAccess ($lock_type='', Array $assetids=Array()) | |
backendAccess () | |
liveEditAccess ($lock_type) | |
canliveEdit ($lock_type) | |
effectiveUnrestricted () | |
checkAccess ($perm, $lock_type, Array $assetids=Array(), $only_workflow=TRUE) | |
accessEffective () | |
permissionsUpdated () | |
printFrontend () | |
printFrontendAsset (Asset $asset, $design=NULL) | |
getValidProtocols () | |
printHead () | |
printBody () | |
getCurrentPaintLayoutName () | |
getCurrentDesignName () | |
printBodyWithPaintLayout ($layout_id='') | |
initLimbo () | |
printLimbo () | |
paintBackend (Backend_Outputter $o) | |
getPrefix () | |
processBackend (Backend_Outputter $o, Array &$link) | |
getEI () | |
getEditFns () | |
getBackendHref ($screen='', $backend_page=TRUE) | |
getURL ($base_url=NULL, $ignore_rollback=FALSE, $base_contextid=NULL) | |
getURLs () | |
getHref ($base_url=NULL, $ignore_rollback=FALSE) | |
getWebDataPath () | |
getWebPaths () | |
saveWebPaths ($paths, $auto_add_remaps=TRUE) | |
getLookups ($field='') | |
getDesignLookups () | |
getLookupValues ($inherited=NULL, $prefix='', $like_search=TRUE, $ignore_override=FALSE) | |
deleteLookupValue ($layout_name, $layout_value) | |
setPaintLayouts ($layouts) | |
updateLookups ($auto_add_remaps=TRUE) | |
setLookupValues (Array $values) | |
getAssetStatusDescriptionKeywordReplacement () | |
getAssetStatusColourKeywordReplacement () | |
replaceKeywordsInString ($string) | |
fastTrack ($tasks) | |
unFastTrack ($tasks) | |
shouldFastTrack ($task, $assetid=NULL) | |
getFaskTrackedTaskAssetids ($task) | |
getDependantParentsURL () | |
Public Member Functions inherited from MySource_Object | |
MySource_Object () | |
__sleep () | |
__wakeup () | |
Static Public Member Functions | |
static | getResponseFromXMLDom ($parentNode) |
Additional Inherited Members | |
Data Fields inherited from Asset | |
$id = 0 | |
$version = '' | |
$name = '' | |
$short_name = '' | |
$status | |
$languages = '' | |
$charset = '' | |
$force_secure = '0' | |
$created | |
$created_userid | |
$updated | |
$updated_userid | |
$published | |
$published_userid | |
$status_changed | |
$status_changed_userid | |
$_is_cacheable = FALSE | |
$vars = Array() | |
$_available_keywords = Array() | |
$data_path_suffix = '' | |
$data_path = '' | |
$data_path_public = '' | |
$_ser_attrs = FALSE | |
Protected Member Functions inherited from Page | |
_preCreateCheck (Array &$link) | |
_createAdditional (Array &$link) | |
_getName ($short_name=FALSE) | |
Definition at line 31 of file suite_manager.inc.
__construct | ( | $assetid = 0 | ) |
Constructor
int | $assetid | the asset id to be loaded |
Definition at line 89 of file suite_manager.inc.
_getName | ( | $short_name = FALSE | ) |
Returns name of the asset
boolean | $short_name | whether or not we are after the shortname or the full name |
Definition at line 148 of file suite_manager.inc.
buildResponseXMLDom | ( | & | $parentNode, |
$content | |||
) |
Build XML DOM structure for the reponse type.
The passed content will be converted to DOM tree structure and appended to the parent node.
object | &$parentNode | Parent DOM node to have the content tree. |
mixed | $content | Content to create. |
Definition at line 2011 of file suite_manager.inc.
canClone | ( | ) |
returns FALSE always because we don't want to be able to clone a funnelback manager
Definition at line 174 of file suite_manager.inc.
canDelete | ( | ) |
Can this asset have its last significant link removed (putting it in the trash)?
Definition at line 161 of file suite_manager.inc.
create | ( | Array & | $link | ) |
Create this asset
array | &$link | information used to create the initial link |
Definition at line 106 of file suite_manager.inc.
createConnectionToken | ( | ) |
createSuiteMessageDOMTemplate | ( | $targetid | ) |
Return the template message XML in DOM document format.
Every suite messages are based on this template. It includes systemid, system type and the URL of the system.
string | $targetid | Suite ID of the system the message is for. |
Definition at line 1462 of file suite_manager.inc.
decodeJson | ( | $data | ) |
Decode a string into JSON
string | $data | The content to encode into JSON |
Definition at line 805 of file suite_manager.inc.
decryptAPIData | ( | ) |
Decrypt the posted data with the current system's private key.
Definition at line 1763 of file suite_manager.inc.
decryptData | ( | $data, | |
$password | |||
) |
Decrypt the passed data with the given password.
It decrypts the given password with the current product's private key. Then it uses the decrypted password to decrypt the data. It returns the decrypted string or FALSE on error.
string | $data | Data to decrypt. |
string | $password | Key encrypted password. |
Definition at line 1896 of file suite_manager.inc.
encodeJson | ( | $data | ) |
Encode a string into JSON
mixed | $data | The content to encode into JSON |
Definition at line 782 of file suite_manager.inc.
encryptAPIData | ( | $url, | |
array | $msg, | ||
$userAgent | |||
) |
Encrypt the outgoing API message with the destined system's public key.
This runs as a modifier on sendCURLAPIRequest() action and checks $msg array. If _enc and _pubKeySystemid fields are included, then it encrypts the data with the destined system's public key.
string | $url | URL of the system to send the request. |
array | $msg | Array of messages to send. |
string | $userAgent | Optional User Agent string to send. |
Definition at line 1728 of file suite_manager.inc.
encryptData | ( | $suiteid, | |
$data | |||
) |
Encrypt the passed data with the public key of the given system.
It encrypts the data with the password based encryption algorithm. Then the password will be encrypted with the public key of the given system. The returned array includes both of the password and encrypted data.
string | $suiteid | Unique ID of the product. |
mixed | $data | Data to encrypt. |
Definition at line 1852 of file suite_manager.inc.
generateSystemKeyPair | ( | ) |
Generates private/public RSA keypairs for the current product.
It also creates a self signed certificate and stores it in DB. This certificate will be sent to other product as a part of sign-in process.
Definition at line 901 of file suite_manager.inc.
getAPI | ( | $system, | |
$method | |||
) |
Determine whether the current API exists or not.
string | $system | The system (read: asset) to load. |
string | $method | The method the system should be able to handle. |
Definition at line 752 of file suite_manager.inc.
getCurrentProduct | ( | ) |
Get the current product information
Definition at line 428 of file suite_manager.inc.
getLiveProducts | ( | ) |
Get the list of live suite products.
Definition at line 237 of file suite_manager.inc.
getProduct | ( | $suiteid = NULL | ) |
Get the product information for the given suiteid.
string | $suiteid | Unique ID of the product. |
Definition at line 263 of file suite_manager.inc.
getProductAttribute | ( | $suiteid, | |
$attrName | |||
) |
Returns the attribute of the product.
string | $suiteid | Suite ID of the product. |
string | $attrName | Attribute name to get. |
Definition at line 406 of file suite_manager.inc.
getProductBySystemid | ( | $systemid | ) |
Get the product information for the given systemid.
string | $systemid | System ID of the product. |
Definition at line 303 of file suite_manager.inc.
getProductBySystemidURL | ( | $systemid, | |
$url | |||
) |
Get the product information for the given systemid and API URL.
string | $systemid | System ID of the product. |
string | $url | API URL of the product. |
Definition at line 331 of file suite_manager.inc.
getProductByToken | ( | $token | ) |
Get the product information for the given token.
string | $token | Unique token assigned to the connection. |
Definition at line 361 of file suite_manager.inc.
getProducts | ( | $includeCurrent = TRUE , |
|
$includeDeleted = TRUE , |
|||
$excludeTypes = array() , |
|||
$includeStatus = array() |
|||
) |
Get the list of all suite products.
boolean | $includeCurrent | If TRUE, the result includes the current product. |
boolean | $includeDeleted | If TRUE, the result includes the products marked for deletion. |
array | $excludeTypes | If specified, the types will be excluded from the result. |
array | $includeStatus | If specified, only statuses specified will be returned. |
Definition at line 192 of file suite_manager.inc.
getProductsByType | ( | $type | ) |
Get the product list of the given type.
string | $type | Type of product to get. |
Definition at line 456 of file suite_manager.inc.
|
static |
Get the response type from the XML DOM structure.
object | $parentNode | Parent DOM node to have the content tree. |
Definition at line 2095 of file suite_manager.inc.
getSuiteMessageResult | ( | $response | ) |
Helper function to get the result from suite message response string.
string | $response | Suite message response string. |
Definition at line 1387 of file suite_manager.inc.
getSuiteProductInfo | ( | array | $current_product | ) |
Returns the sync data to send to other product.
array | $current_product | The Current Product Info Array. |
Definition at line 1345 of file suite_manager.inc.
getSystemId | ( | ) |
logErrorMessage | ( | $errorMessage = '' | ) |
Log the passed error message to file.
string | $errorMessage | Error message to log. |
Definition at line 1682 of file suite_manager.inc.
logReceivedMessage | ( | $systemid, | |
$msgType | |||
) |
Log the received message to file.
string | $systemid | Source systemid where the message is from. |
string | $msgType | Type of message received. |
Definition at line 1615 of file suite_manager.inc.
logSentMessage | ( | $systemid, | |
$msgType | |||
) |
Log the sent message to file.
string | $systemid | Destined systemid. |
string | $msgType | Type of message sent. |
Definition at line 1651 of file suite_manager.inc.
parseSuiteXML | ( | $xml, | |
$fields = array() |
|||
) |
Parse the passed XML file and return.
string | $xml | SquizSuite specific XML message string. |
array | $fields | The required fields to parse. |
Definition at line 1562 of file suite_manager.inc.
printFrontend | ( | ) |
Print the frontend to this asset.
Definition at line 586 of file suite_manager.inc.
registerProduct | ( | $systemid, | |
$type, | |||
$url, | |||
$connection | |||
) |
Register a new product.
string | $systemid | The name of the product. |
string | $type | The type of the product to invite. |
string | $url | The URL of the product to invite. |
string | $connection | The connection details of the product. |
Definition at line 524 of file suite_manager.inc.
removeProduct | ( | $suiteid, | |
$current = FALSE |
|||
) |
Remove the product from the suite.
string | $suiteid | Unique ID of the product. |
boolean | $current | If TRUE, can remove the current product. |
Definition at line 562 of file suite_manager.inc.
sendCURLAPIRequest | ( | $url, | |
$msg, | |||
$userAgent = '' |
|||
) |
Send POST API request to the destinated system.
It sends API request via POST to the destined system.
string | $url | URL of the system to send the request. |
array | $msg | Array of messages to send. |
string | $userAgent | Optional User Agent string to send. |
Definition at line 1420 of file suite_manager.inc.
sendMessage | ( | $targetid, | |
$msgType, | |||
array | $options = array() |
||
) |
Send suite specific message to other system.
string | $targetid | Suite ID of the destined system. |
string | $msgType | Type of message to send. |
array | $options | The details of the message. |
Definition at line 951 of file suite_manager.inc.
sendRequest | ( | $targetid, | |
$format, | |||
$system, | |||
$action, | |||
$message = Array() |
|||
) |
Send a request to another system.
string | $targetid | ID of the destination system. |
string | $format | The format to return the results as. |
string | $system | The system on the destination system. |
string | $action | The action on the destination system. |
array | $message | The message to send. |
Definition at line 1041 of file suite_manager.inc.
syncConnectedProducts | ( | $requesterSuiteid, | |
array | $connected, | ||
array & | $markedForDeletion, | ||
array & | $markedForAddtion | ||
) |
Sync the connection products.
string | $requesterSuiteid | The suite ID of the current system. |
array | $connected | List of connected products. |
array | &$markedForDeletion | List of deleted products. |
array | &$markedForAddition | List of added products. |
Definition at line 1290 of file suite_manager.inc.
syncDeletedProducts | ( | array | $deleted, |
array & | $markedForDeletion, | ||
array & | $markedForAddition | ||
) |
Sync the deleted products.
array | $deleted | List of deleted products. |
array | &$markedForDeletion | List of deleted products. |
array | &$markedForAddition | List of added products. |
Definition at line 1255 of file suite_manager.inc.
syncProductDetails | ( | array | $product_info, |
array | $new_product_info | ||
) |
Sync the product details like product name, URL etc.
array | $product_info | The Product Information to sync with. |
array | $new_product_info | The response from the product. |
Definition at line 1227 of file suite_manager.inc.
syncWithLiveProducts | ( | ) |
Pull other suite system's information and sync itself.
This action will be run directly by the cron job. It requests suite info to all live connected products and updates the information accordingly.
Definition at line 1142 of file suite_manager.inc.
updateProduct | ( | $suiteid, | |
$attrName, | |||
$attrValue | |||
) |
Update the product information for the given suiteid.
string | $suiteid | Unique ID of the product. |
string | $attrName | Attribute name to update. |
mixed | $attrValue | Attribute value to update. |
Definition at line 479 of file suite_manager.inc.