|
Squiz Matrix
4.12.2
|
Public Member Functions | |
| __construct ($assetid=0) | |
| _getAllowedLinks () | |
| printFrontend () | |
| setAsset ($id) | |
| getGeneralInfo (Asset $asset, $add_more_attributes=FALSE) | |
| createLink ($parent, $child, $link_type, $link_value, $sort_order, $is_dependant, $is_exclusive) | |
| removeLink ($parent, $child, $link_type=NULL, $link_value=NULL) | |
| moveLink ($old_parent_id, $asset_id_to_move, $old_link_type=SQ_LINK_TYPE_1, $old_link_value='', $new_parent_id, $new_link_type=SQ_LINK_TYPE_1, $new_link_value='', $new_position) | |
| updateLink ($parent, $child, $existing_link_type=SQ_LINK_TYPE_1, $existing_link_value= '', $link_type=SQ_LINK_TYPE_1, $link_value='', $sort_order, $locked=TRUE) | |
| getPermission ($id, $level) | |
| getGroupChildren ($key) | |
| getParents ($id, $level, $type_codes=Array(), $link_types=Array(), $link_values=Array(), $also_attributes=FALSE) | |
| getChildren ($id, $level, $type_codes=Array(), $link_types=Array(), $link_values=Array(), $also_attributes=FALSE) | |
| trashAsset ($ids) | |
| setAttributeValue ($assetid, $attr_name, $attr_val) | |
| setAssetMetadata ($assetid, $fieldid, $new_value) | |
| getLinkId ($parent, $child, $link_type=SQ_LINK_TYPE_1, $link_value=NULL, $all_info=FALSE) | |
| hasLink ($parent, $child) | |
| createAsset ($id, $type_code, $asset_name, $link_type=1, $link_value, $sort_order, $is_dependant=0, $is_exclusive=0, $extra_attributes=FALSE, $attribute_values) | |
| checkParentType ($parent) | |
| checkRoot (&$asset) | |
| getRootNodes () | |
| updateLookupsforAsset ($assetid) | |
| getKeywordsReplacements ($asset, $keywords) | |
| acquireLocks (Asset $asset, $screen, $dependants_only, $force_acquire) | |
| getLocksInfo ($assetid, $lock_types) | |
| setAssetStatus (Asset $asset, $status, $cascade, $current_status_desc, $to_be_status_desc, $workflow_stream) | |
| getMetadataSchema ($asset, $granted, $cascades) | |
| returnError ($error) | |
| returnJSON ($data, $type='') | |
| getRandomFilename ($file_name) | |
| object2Array ($obj) | |
| array_utf8_encode_recursive ($dat) | |
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 () | |
Protected Member Functions | |
| _createAdditional (Array &$link) | |
Protected Member Functions inherited from Page | |
| _preCreateCheck (Array &$link) | |
| _createAdditional (Array &$link) | |
| _getName ($short_name=FALSE) | |
Protected Member Functions inherited from Asset | |
| _preCreateCheck (Array &$link) | |
| _createAdditional (Array &$link) | |
| _abortCreate ($trigger_level_changed=FALSE, $linkid=0) | |
| _loadVars () | |
| _getName ($short_name=FALSE, $contextid=NULL) | |
| _getKeywordReplacement ($keyword) | |
| _checkPermissionAccess ($perm, $assetids=Array(), $only_workflow=TRUE) | |
| makeAndSaveInitialWebPath ($path, $parent_link=NULL) | |
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 | |
Definition at line 29 of file js_api.inc.
| __construct | ( | $assetid = 0 | ) |
Constructor
| int | $assetid | the asset id to be loaded |
Definition at line 147 of file js_api.inc.
|
protected |
Perform any additional processing required during the creation of this asset
Pages add a default web path when they are created
| array | &$link | information used to create the initial link |
Definition at line 165 of file js_api.inc.
| _getAllowedLinks | ( | ) |
Returns an array of all the permitted links type, the type asset and the cardinality
Definition at line 188 of file js_api.inc.
| acquireLocks | ( | Asset | $asset, |
| $screen, | |||
| $dependants_only, | |||
| $force_acquire | |||
| ) |
Description: trys to acquire locks on the asset if the locks are already acquired then it will update them
| object | $asset | the asset to acquire locks for |
| string | $screen | the screen for which to acquire locks for |
| boolean | $dependants_only | whether dependants only or all children, defaults to true |
| boolean | $force_acquire | whether to attempt to forceably acquire the lock or not, defaults to false |
Definition at line 3844 of file js_api.inc.
| array_utf8_encode_recursive | ( | $dat | ) |
Purpose : converts the passed multidimensional array to urf8_encoded
| array | $data | the array whos content we want to utf8 encode |
Definition at line 4148 of file js_api.inc.
| checkParentType | ( | $parent | ) |
Description: Check out see if the parent passed matches the allowed types
| object | $parent | The asset to check |
Definition at line 3678 of file js_api.inc.
| checkRoot | ( | & | $asset | ) |
Description: Check out see if the passed asset is under the root restriction
| object | &$asset | The asset to check |
Definition at line 3696 of file js_api.inc.
| createAsset | ( | $id, | |
| $type_code, | |||
| $asset_name, | |||
$link_type = 1, |
|||
| $link_value, | |||
| $sort_order, | |||
$is_dependant = 0, |
|||
$is_exclusive = 0, |
|||
$extra_attributes = FALSE, |
|||
| $attribute_values | |||
| ) |
Description: This operation will create an asset of a specific type under a specific location
| integer | $id | Parentid of the new parent |
| string | $type_code | Type code of new asset |
| string | $asset_name | Name for new asset |
| integer | $link_type | Type of link to create |
| string | $link_value | Value of the link |
| integer | $sort_order | Order in the tree |
| integer | $is_dependant | Dependant to parent |
| integer | $is_exclusive | Exclusive to parent |
| boolean | $extra_attributes | Any extra attributes to create |
| array | $attribute_values | array of name => value of the extra attributes that needs to be set |
Definition at line 3593 of file js_api.inc.
| createLink | ( | $parent, | |
| $child, | |||
| $link_type, | |||
| $link_value, | |||
| $sort_order, | |||
| $is_dependant, | |||
| $is_exclusive | |||
| ) |
Description: This will create a link between two assets
| integer | $parent | Major asset id we are linking from |
| integer | $child | Minor asset id we are linking to |
| integer | $link_type | Type of link to create |
| string | $link_value | Value of the link |
| integer | $sort_order | Order in the tree |
| integer | $is_dependant | Dependant to parent |
| integer | $is_exclusive | Exclusive to parent |
Definition at line 2807 of file js_api.inc.
| getChildren | ( | $id, | |
| $level, | |||
$type_codes = Array(), |
|||
$link_types = Array(), |
|||
$link_values = Array(), |
|||
$also_attributes = FALSE |
|||
| ) |
Description: Gets child asset ids
| integer | $id | Asset id of the parent |
| integer | $level | How deep to go |
| array | $type_codes | type_code of assets to return |
| array | $link_types | type of link we are looking to return |
| array | $link_values | link values we want on the assets returned |
| boolean | $also_attributes | if we are getting additional attributes and its values(FALSE by default) |
NOTE : link_types, type_codes and link_values works only if the level of gettign the child assets is set to 1
Definition at line 3226 of file js_api.inc.
| getGeneralInfo | ( | Asset | $asset, |
$add_more_attributes = FALSE |
|||
| ) |
Gets general information for the passed in Asset
| object | $asset | The asset we want to get information about |
| boolean | $add_more_attributes | if we are getting additional attributes and its values for the asset(FALSE by default) |
Definition at line 2677 of file js_api.inc.
| getGroupChildren | ( | $key | ) |
Description: Returns arrays of user assets from a parent user group
| integer | $key | Asset id of the user group |
Definition at line 3106 of file js_api.inc.
| getKeywordsReplacements | ( | $asset, | |
| $keywords | |||
| ) |
Description: get the asset/global/simple_edit level keyword replacement for the passed in asset
| object | $asset | The asset to fetch replacements for |
| array | $keywords | array of keywords to get replacement for |
Definition at line 3767 of file js_api.inc.
| getLinkId | ( | $parent, | |
| $child, | |||
$link_type = SQ_LINK_TYPE_1, |
|||
$link_value = NULL, |
|||
$all_info = FALSE |
|||
| ) |
Description: Returns the link id between a parent and a child
| string | $parent | Parent id |
| string | $child | Child id |
| string | $link_type | Type of link we are looking for (default to TYPE 1 links) |
| string | $link_value | Value of the link we are looking for(Default to NULL) |
| boolean | $all_info | If to return just LinkId or all the information |
Definition at line 3513 of file js_api.inc.
| getLocksInfo | ( | $assetid, | |
| $lock_types | |||
| ) |
Returns an array of information about the current lock on this asset (if any)
| string | $assetid | the assetid of the asset that we want lock info for |
| string | $lock_type | any valid lock type for the passed asset's type, plus 'all' which will return all locks that this asset has - |
Definition at line 3904 of file js_api.inc.
| getMetadataSchema | ( | $asset, | |
| $granted, | |||
| $cascades | |||
| ) |
Get the info of the Metadata Schema applied to the asset
| string | $assetid | The asset to get the info of the schemas applied to |
| boolean | $granted | type of access : TRUE = applied, FALSE = denied |
| boolean | $cascades | does this schema cascade to newly created assets? |
Definition at line 3980 of file js_api.inc.
| getParents | ( | $id, | |
| $level, | |||
$type_codes = Array(), |
|||
$link_types = Array(), |
|||
$link_values = Array(), |
|||
$also_attributes = FALSE |
|||
| ) |
Description: Gets parent asset ids
| integer | $id | Asset id of the child |
| integer | $level | How deep to go |
| array | $type_codes | type_code of assets to return |
| array | $link_types | type of link we are looking to return |
| array | $link_values | link values we want on the assets returned |
| boolean | $also_attributes | if we are getting additional attributes and its values(FALSE by default) |
NOTE : link_types and link_values works only if the level of gettign the child assets is set to 1
Definition at line 3142 of file js_api.inc.
| getPermission | ( | $id, | |
| $level | |||
| ) |
Description: This operation will return the permission set for on an asset
| integer | $id | Id of the asset to get permissions for |
| string | $level | Read, Write, Admin |
Definition at line 3043 of file js_api.inc.
| getRandomFilename | ( | $file_name | ) |
getRandomFileName get a random filename for the file being uploaded
| string | $file_name | The original name of the file |
Definition at line 4101 of file js_api.inc.
| getRootNodes | ( | ) |
| hasLink | ( | $parent, | |
| $child | |||
| ) |
Description: Check to see if there is a link id between a parent and child
| string | $parent | Parent id |
| string | $child | Child id |
Definition at line 3560 of file js_api.inc.
| moveLink | ( | $old_parent_id, | |
| $asset_id_to_move, | |||
$old_link_type = SQ_LINK_TYPE_1, |
|||
$old_link_value = '', |
|||
| $new_parent_id, | |||
$new_link_type = SQ_LINK_TYPE_1, |
|||
$new_link_value = '', |
|||
| $new_position | |||
| ) |
Description: This operation will move a link under a new parent asset
| integer | $old_parent_id | Old parent id |
| integer | $asset_id_to_move | Asset id to move |
| constant | $old_link_type | Link type between asset and existing parent |
| string | $old_link_value | Link value between asset and existing parent |
| integer | $new_parent_id | New parent id |
| integer | $old_link_type | Link type to create on moving the asset |
| integer | $old_link_value | Link value to create on moving the asset |
| integer | $new_position | Position under the new parent |
Definition at line 2931 of file js_api.inc.
| object2Array | ( | $obj | ) |
Purpose : converts our stdClass object to an array
| object | $obj | the stdClass object we need to convert |
Definition at line 4120 of file js_api.inc.
| printFrontend | ( | ) |
Print the frontend of the asset without the design
Definition at line 203 of file js_api.inc.
| removeLink | ( | $parent, | |
| $child, | |||
$link_type = NULL, |
|||
$link_value = NULL |
|||
| ) |
Description: This operation will delete a link based on the LinkID
| string | $parent | Major asset id we are linking from |
| string | $child | Minor asset id we are linking to |
| string | $link_type | Link type between parent and child asset |
| string | $link_value | Link value of link between parent and child asset |
Definition at line 2844 of file js_api.inc.
| returnError | ( | $error | ) |
Returns an error in JSON format
| string | $error | The error to send back as JSON |
public
Definition at line 4014 of file js_api.inc.
| returnJSON | ( | $data, | |
$type = '' |
|||
| ) |
Returns the JSON output
| array | $data | The array of information to return as JSON |
public
Definition at line 4037 of file js_api.inc.
| setAsset | ( | $id | ) |
Description: This will create a link between two assets
| string | $id | The asset that we are getting |
Definition at line 492 of file js_api.inc.
| setAssetMetadata | ( | $assetid, | |
| $fieldid, | |||
| $new_value | |||
| ) |
Description: This operation will set the value for a metadata field(s) of an asset
| string | $assetid | The asset to regenerate metadata for |
| array | $fieldid | Array of the metadata field ids |
| array | $new_value | Array of the new value corresponding to metadata field |
Definition at line 3427 of file js_api.inc.
| setAssetStatus | ( | Asset | $asset, |
| $status, | |||
| $cascade, | |||
| $current_status_desc, | |||
| $to_be_status_desc, | |||
| $workflow_stream | |||
| ) |
sets the asset status that is passed
| string | $assetid | the assetid of the asset that we want lock info for |
| int | $status | status we want to set to |
| boolean | $cascade | if the status change should be cascaded to non dependant children assets, default to false |
| string | $current_status_desc | description of the current status |
| string | $to_be_status_desc | description of the status to be changed to |
Definition at line 3931 of file js_api.inc.
| setAttributeValue | ( | $assetid, | |
| $attr_name, | |||
| $attr_val | |||
| ) |
Description: This operation will return set the attribute value of an asset based on assetid and attribute name
| string | $assetid | The ID of the asset in query |
| array | $attr_name | The names of the attributes |
| array | $attr_val | The new values of the attributes |
Definition at line 3376 of file js_api.inc.
| trashAsset | ( | $ids | ) |
Description: This operation will send an asset to the trash
| array | $ids | The id of the assets we want to delete |
Definition at line 3300 of file js_api.inc.
| updateLink | ( | $parent, | |
| $child, | |||
$existing_link_type = SQ_LINK_TYPE_1, |
|||
$existing_link_value = '', |
|||
$link_type = SQ_LINK_TYPE_1, |
|||
$link_value = '', |
|||
| $sort_order, | |||
$locked = TRUE |
|||
| ) |
Description: This operation will update an existing link
| integer | $parent | Major asset id we are linking from |
| integer | $child | Minor asset id we are linking to |
| integer | $link_type | Type of link to set |
| string | $link_value | Value of the link |
| integer | $sort_order | Sort order in the asset tree |
| integer | $locked | the asset's link lock status |
Definition at line 2984 of file js_api.inc.
| updateLookupsforAsset | ( | $assetid | ) |
updates the lookup of the assetid passed and all its childrens, (runs freestyle HIPO)
Definition at line 3747 of file js_api.inc.