17 require_once SQ_INCLUDE_PATH.
'/asset.inc';
55 parent::__construct();
57 if (!$assetid)
return;
58 list($this->_bridgeid, $this->_shadowid) = explode(
':', $assetid);
60 $bridge = $GLOBALS[
'SQ_SYSTEM']->am->getAsset($this->_bridgeid);
61 if (is_null($bridge))
return;
64 $this->data_path = $bridge->data_path.
'/physical_folder';
65 $this->data_path_suffix = $bridge->data_path_suffix.
'/physical_folder';
66 $this->data_path_public = $bridge->data_path_public.
'/physical_folder';
69 if (!$this->_shadowid)
return;
73 foreach ($data as $attr_name => $attr_value) {
74 if (!isset($this->vars[$attr_name]))
continue;
75 $this->vars[$attr_name][
'value'] = ($this->vars[$attr_name][
'type'] ==
'serialise') ? unserialize($attr_value) : $attr_value;
78 require_once (SQ_DATA_PATH.
'/private/conf/file_bridge.inc');
79 $location = FILE_BRIDGE_PATH;
80 $location = rtrim(
'/', $location);
81 $full_path = $location.
'/'.$this->_shadowid;
82 $name = basename($full_path);
86 $this->short_name = $name;
87 $this->status = $bridge->status;
88 $this->version =
'0.1';