18 require_once SQ_INCLUDE_PATH.
'/asset_management.inc';
40 Asset_Management::__construct($pm);
42 $this->vars[
'id_name'] = Array(
47 $this->vars[
'cache_css'] = Array(
51 'parameters' => Array(
'allow_empty' => FALSE),
53 $this->vars[
'strip_whitespace'] = Array(
57 'parameters' => Array(
'allow_empty' => FALSE),
59 $this->vars[
'static_url_versioning'] = Array(
63 'parameters' => Array(
'allow_empty' => FALSE),
80 $res = parent::_upgrade($current_version);
82 if (version_compare($current_version,
'0.4',
'<')) {
83 pre_echo(
'UPGRADING DESIGN CSS FROM v < 0.4');
86 $design_ids = $GLOBALS[
'SQ_SYSTEM']->am->getTypeAssetids(
'design_css', TRUE, TRUE);
87 foreach ($design_ids as $design_id => $type) {
88 $design = $GLOBALS[
'SQ_SYSTEM']->am->getAsset($design_id, $type[
'type_code']);
89 $design->setAttrValue(
'static_url_versioning', FALSE);
90 $design->saveAttributes();
91 $GLOBALS[
'SQ_SYSTEM']->am->forgetAsset($design);
97 if (version_compare($current_version,
'0.5',
'<')) {
98 pre_echo(
'UPGRADING DESIGN CSS FROM v < 0.5');
101 $design_ids = $GLOBALS[
'SQ_SYSTEM']->am->getTypeAssetids(
'design_css', TRUE, TRUE);
102 foreach ($design_ids as $design_id => $type) {
103 $vars = Array(
'assetid' => $design_id);
104 $hh = $GLOBALS[
'SQ_SYSTEM']->getHipoHerder();
105 $hh->freestyleHipo(
'hipo_job_regenerate_design', $vars);