Squiz Matrix
4.12.2
|
Data Fields | |
$_current_state = '' | |
$_errors = Array() | |
$_replacements = Array() | |
$_default_state = 'create' | |
Additional Inherited Members | |
Protected Member Functions inherited from Page | |
_preCreateCheck (Array &$link) | |
_createAdditional (Array &$link) | |
_getName ($short_name=FALSE) | |
Definition at line 38 of file page_asset_builder.inc.
__construct | ( | $assetid = 0 | ) |
Constructor
int | $assetid | the asset id to be loaded |
Definition at line 73 of file page_asset_builder.inc.
_createAdditional | ( | & | $link | ) |
Perform any additional processing required during the creation of this asset
Asset builders create bodycopy assets when they are created
array | &$link | information used to create the initial link |
Definition at line 91 of file page_asset_builder.inc.
_errorHandler | ( | $err_no, | |
$err_msg, | |||
$err_file, | |||
$err_line | |||
) |
This function captures all errors and warnings that occur to hide them from the user
int | $err_no | The type of error (E_*) |
string | $err_msg | The error message |
string | $err_file | The file the error occured in |
string | $err_line | The line the error occured on |
Definition at line 1646 of file page_asset_builder.inc.
_getAllowedLinks | ( | ) |
Returns an array of all the permitted link types, the asset type and the cardinality
Definition at line 229 of file page_asset_builder.inc.
_getBodycopies | ( | ) |
Return an array of bodycopies that need to be created
Definition at line 1692 of file page_asset_builder.inc.
_getCreatedKeywords | ( | ) |
Get the keyword used in created bodycopy
Definition at line 1837 of file page_asset_builder.inc.
& _getCreateFormLayout | ( | $type_code | ) |
Get the create form layout, if available, for a certain create type
string | $type_code | The type code to get the layout for |
Definition at line 2267 of file page_asset_builder.inc.
_getDynamicLocationKeywords | ( | ) |
Get the keyword used to select dynamic create locations
Definition at line 1877 of file page_asset_builder.inc.
_getLoggedInKeywords | ( | ) |
Get the keyword used in logged_in bodycopy
Definition at line 1804 of file page_asset_builder.inc.
_getMetadataSchemasToApply | ( | ) |
Get the IDs of the metadata schemas that should be applied to newly-created assets
Definition at line 1112 of file page_asset_builder.inc.
_getNotLoggedInKeywords | ( | ) |
Get the keyword used in not_logged_in bodycopy
Definition at line 1767 of file page_asset_builder.inc.
_getSelectableLocationKeywords | ( | ) |
Get the keyword used to select selectable create locations
Definition at line 1859 of file page_asset_builder.inc.
_loadAssetReplacements | ( | ) |
Loads keyword replacements for the newly created asset, into the Asset Builder
Definition at line 1413 of file page_asset_builder.inc.
_loadCreateReplacements | ( | ) |
Loads keyword replacements for the create asset interface, into the Asset Builder
Definition at line 1431 of file page_asset_builder.inc.
_modifyCreateLink | ( | & | $link | ) |
Takes the default link that was created and allows for adjustments if necessary
array | &$link | the current link array |
Definition at line 1363 of file page_asset_builder.inc.
_printBody | ( | ) |
Prints the Asset Builder form and contents
Definition at line 312 of file page_asset_builder.inc.
_printContents | ( | ) |
Print the contents of the Asset Builder page with replaced keywords
Definition at line 1579 of file page_asset_builder.inc.
_processGlobalActions | ( | ) |
Process any global Asset Builder actions
These actions include logging into the system and creating an asset
Definition at line 466 of file page_asset_builder.inc.
_sanitiseLocationSetName | ( | $set_name | ) |
Sanitises the passed create location set name
string | $set_name | the name to sanitise |
Definition at line 1348 of file page_asset_builder.inc.
_setCreateStatus | ( | & | $new_asset | ) |
Set the status of the newly created asset
object | &$new_asset | the newly created asset |
Definition at line 1378 of file page_asset_builder.inc.
getAdditionalCreateLocations | ( | ) |
Get a list of additional create locations from the REQUEST var
Also ensures the passed additional locations are valid by checking the allowed additional create locations that have been set in the asset
Definition at line 1255 of file page_asset_builder.inc.
getAllSelectableCreateLocations | ( | ) |
Get all the create locations that could ever be selected by the user, with their max link type
Definition at line 1086 of file page_asset_builder.inc.
getCreatedAssetBackendKeywordReplacement | ( | ) |
Get created_asset_backend keyword replacement
Definition at line 2054 of file page_asset_builder.inc.
getCreatedAssetEditKeywordReplacement | ( | ) |
Get created_asset_edit keyword replacement
Definition at line 2036 of file page_asset_builder.inc.
getCreatedAssetidKeywordReplacement | ( | ) |
Get created_assetid keyword replacement
Definition at line 1963 of file page_asset_builder.inc.
getCreatedAssetNameKeywordReplacement | ( | ) |
Get created_asset_name keyword replacement
Definition at line 1981 of file page_asset_builder.inc.
getCreatedAssetShortNameKeywordReplacement | ( | ) |
Get created_asset_short_name keyword replacement
Definition at line 2000 of file page_asset_builder.inc.
getCreatedAssetUrlKeywordReplacement | ( | ) |
Get created_asset_url keyword replacement
Definition at line 2018 of file page_asset_builder.inc.
getCreateErrorKeywordReplacement | ( | ) |
Get create_error keyword replacement
Definition at line 2072 of file page_asset_builder.inc.
getCreateFormKeywordReplacement | ( | ) |
Get create_form keyword replacement
Definition at line 2098 of file page_asset_builder.inc.
getCreateInviteKeywordReplacement | ( | ) |
Get create_invite keyword replacement
Definition at line 2085 of file page_asset_builder.inc.
getCreateLocations | ( | $create_type | ) |
Get the relevant create locations for a new asset
string | $create_type | the type of asset we are getting create locations for |
Definition at line 1220 of file page_asset_builder.inc.
getDynamicCreateLocations | ( | ) |
Get a list of dynamic create locations from the REQUEST var
Definition at line 1314 of file page_asset_builder.inc.
getFixedCreateLocations | ( | ) |
Get the fixed create locations
Just included for completeness & consistency
Definition at line 1133 of file page_asset_builder.inc.
getFormCaptchaFieldKeywordReplacement | ( | ) |
Form Captcha Field keyword replacement
Definition at line 434 of file page_asset_builder.inc.
getFormCaptchaImageKeywordReplacement | ( | ) |
Form Captcha Image keyword replacement
Definition at line 390 of file page_asset_builder.inc.
getFormCaptchaKeywordReplacement | ( | ) |
Form Captcha keyword replacement
Definition at line 344 of file page_asset_builder.inc.
getFormCaptchaLinkKeywordReplacement | ( | ) |
Form Captcha Link keyword replacement
Definition at line 449 of file page_asset_builder.inc.
getLoginErrorKeywordReplacement | ( | ) |
Get login_invite keyword replacement
Definition at line 1911 of file page_asset_builder.inc.
getLoginFormKeywordReplacement | ( | ) |
Get login_form keyword replacement
Definition at line 1924 of file page_asset_builder.inc.
getLoginInviteKeywordReplacement | ( | ) |
Get login_invite keyword replacement
Definition at line 1898 of file page_asset_builder.inc.
getRuleMatchCreateLocations | ( | $create_type, | |
$attributes = Array() |
|||
) |
Get the create locations determined by rule matches
string | $create_type | The type of the asset being created |
array | $attributes | The attributes of the new asset. (If blank, attributes read from POST) |
Definition at line 1149 of file page_asset_builder.inc.
getSelectedCreateLocations | ( | ) |
Get the selectable create locations that the user has actually selected for the new asset
Definition at line 1046 of file page_asset_builder.inc.
isDeletableLink | ( | $linkid | ) |
Returns TRUE if we can delete the passed link, or a string with the error msg
int | $linkid | the link id of the link to remove |
Definition at line 208 of file page_asset_builder.inc.
onRequestKeywords | ( | & | $broadcaster, |
$vars = Array() |
|||
) |
Add valid keywords for this asset to an array of keywords when asked
object | &$broadcaster | the asset that triggered the event |
array | $vars | the vars that get submitted by the broadcaster we add keywords to the $vars['keywords'] array |
Definition at line 1729 of file page_asset_builder.inc.
prepareLink | ( | & | $asset, |
$side_of_link, | |||
& | $link_type, | ||
& | $value, | ||
& | $sort_order, | ||
& | $dependant, | ||
& | $exclusive | ||
) |
Prepares for linking by checking that the link values are valid for this link
This function will be called if this asset is the major or minor party in the link, so the side_of_link flag should be checked to work out what side of the link this asset is on. The return value should indicate if any of the link fields were changed.
object | &$asset | the major or minor asset that we are linking to |
string | $side_of_link | the side of the link we are on (major or minor) |
string | &$link_type | the type of link we are creating |
string | &$value | the value that is to be associated with the link |
string | &$sort_order | the position in the links list that this link should take, |
string | &$dependant | '0' / '1' on whether the this asset is dependant on the asset that will be linked by the new link |
string | &$exclusive | '0' / '1' on whether the this asset is linked exclusivly to the asset that will be linked by the new link |
Definition at line 187 of file page_asset_builder.inc.
printBody | ( | ) |
Called by the design to print the body of this asset
Definition at line 245 of file page_asset_builder.inc.
saveAttributes | ( | $dont_run_updated = FALSE | ) |
Save attributes set with setAttrValue to the database
boolean | $dont_run_updated | if TRUE this->_updated() won't be run (THIS IS ONLY EVER CALLED FROM Asset::create()) |
Definition at line 123 of file page_asset_builder.inc.