18 require_once SQ_INCLUDE_PATH.
'/asset_management.inc';
40 Asset_Management::__construct($pm);
43 'conditional_keywords' => Array(
45 'type' =>
'serialise',
48 'associated_asset_type' => Array(
53 'lineage_separator' => Array (
57 'description' =>
'Seperator to use when painting the lineage of an asset.',
74 parent::_upgrade($current_version);
76 if (version_compare($current_version,
'0.6',
'<')) {
77 echo(
'UPGRADING PAINT LAYOUT BODYCOPY FROM '.$current_version.
" TO VERSION 0.6\n");
79 pre_echo(
'Updating Paint Layout Bodycopy...');
81 $paint_layout_bodycopy = $GLOBALS[
'SQ_SYSTEM']->am->getTypeAssetids(
'paint_layout_bodycopy', FALSE, TRUE);
82 foreach ($paint_layout_bodycopy as $id => $type) {
83 $asset = $GLOBALS[
'SQ_SYSTEM']->am->getAsset($id,
'', TRUE);
85 if (!is_null($asset)) {
92 pre_echo(
'PAINT LAYOUT BODYCOPY SUCCESSFULLY UPGRADED TO VERSION 0.6');