Squiz Matrix
4.12.2
|
Public Member Functions | |
Asset_Management (&$pm) | |
getAssetType () | |
update () | |
_updateFiles () | |
_install () | |
_upgrade ($current_version) | |
_getAllVars () | |
_getFileList () | |
getEventList () | |
_addAttribute ($name) | |
_deleteAttribute ($name) | |
_updateAttribute ($name, $current_version) | |
_updateOwnedAttribute ($name, $curr_attr) | |
_updateCustomAttribute ($attributeid, $name, $field, $old_type_code, $new_type_code, $new_value) | |
_validateAttributeDefault (&$default, $attr_type, $parameters) | |
getAssetInfo ($file) | |
_installDALQueries () | |
Public Member Functions inherited from MySource_Object | |
MySource_Object () | |
__sleep () | |
__wakeup () | |
Data Fields | |
$_pm | |
$_am | |
$_db | |
$vars = Array() | |
$components = Array() | |
Data Fields inherited from MySource_Object | |
$_tmp | |
Definition at line 32 of file asset_management.inc.
_addAttribute | ( | $name | ) |
Adds an attribute to this asset's collection
string | $name | the name of the attribute to add |
Definition at line 446 of file asset_management.inc.
_deleteAttribute | ( | $name | ) |
Removes an attribute from the set of attributes owned by this asset
This asset type must be the attribute's owning type. If we have the attribute via inheritance or whatever, deletion is not allowed.
string | $name | the attribute to delete |
Definition at line 692 of file asset_management.inc.
_getAllVars | ( | ) |
Returns all the variable names that are available for this asset type
Definition at line 385 of file asset_management.inc.
_getFileList | ( | ) |
Returns all files this asset wants installed/updated into the data directory
Definition at line 418 of file asset_management.inc.
_install | ( | ) |
_installDALQueries | ( | ) |
Generates the baked Database Abstraction Layer (DAL) queries for the asset
Definition at line 1159 of file asset_management.inc.
_updateAttribute | ( | $name, | |
$current_version | |||
) |
Updates an attribute in this asset's set
string | $name | the name of the attribute to update |
string | $current_version | the version of the asset that is currenly installed |
Definition at line 745 of file asset_management.inc.
_updateCustomAttribute | ( | $attributeid, | |
$name, | |||
$field, | |||
$old_type_code, | |||
$new_type_code, | |||
$new_value | |||
) |
Updates an attribute that this asset doesn't own but has set the default value on
string | $name | the name of the attribute to update |
string | $curr_attr | the info for the attribute as it stands at the moment |
string | $field | the part of the attribute we are updating (ie default | param) |
Definition at line 1036 of file asset_management.inc.
_updateFiles | ( | ) |
Copy files used by the asset to the data directory
Definition at line 202 of file asset_management.inc.
_updateOwnedAttribute | ( | $name, | |
$curr_attr | |||
) |
Updates an attribute that this asset owns (ie the first time it is defined is by this asset)
string | $name | the name of the attribute to update |
string | $curr_attr | the info for the attribute as it stands at the moment |
Definition at line 937 of file asset_management.inc.
_upgrade | ( | $current_version | ) |
Upgrade
string | $current_version | the version of the asset that is currenly installed |
Definition at line 300 of file asset_management.inc.
_validateAttributeDefault | ( | & | $default, |
$attr_type, | |||
$parameters | |||
) |
Checks an attributes default value to make sure that it is valid Accepts the $default by reference so that it can be changed if need be
mixed | $default | the proposed default value |
string | $attr_type | the type of asset represented by the id |
array | $parameters | the params for this attribute |
Definition at line 1094 of file asset_management.inc.
Asset_Management | ( | & | $pm | ) |
Constructor
Definition at line 88 of file asset_management.inc.
getAssetInfo | ( | $file | ) |
Returns the information from the passed asset.xml This function can be called without creating an instance of the class ie $info = Asset_Management::getAssetInfo($file);
string | $file | the asset.xml file path |
Definition at line 1118 of file asset_management.inc.
getAssetType | ( | ) |
Returns the asset type that this management class is working for
Note that as of PHP 5.x, return values from get_class() are in mixed case. This makes sure asset types are returned lower case, as in other parts of Matrix.
Definition at line 113 of file asset_management.inc.
getEventList | ( | ) |
returns a list of events that this asset is listening for
public
Definition at line 431 of file asset_management.inc.
update | ( | ) |
This gets run to intall/upgrade the asset that this management class represents
Definition at line 127 of file asset_management.inc.