Squiz Matrix
4.12.2
|
Public Member Functions | |
Package_Manager () | |
getPackageName () | |
checkPackageDetails ($update_assets=Array(), $deferred_assets=Array()) | |
updatePackageDetails ($update_assets=Array()) | |
_loadPackageAssets () | |
_recurseLoadPackageAssets (Array &$assets, $full_path, $base_path) | |
_getInstallOrder ($update_assets=Array(), $deferred=Array()) | |
_createAssetMapScreensXML ($deferred=Array()) | |
checkRequirementsFromFile ($file, $deferred_assets=Array(), $need_feedback=false) | |
getTypeAncestors ($type_code) | |
getTypeInfo ($type_code, $field='') | |
installUserPreferences (&$preferences) | |
installSystemAssets () | |
_postInstall () | |
_installDALQueries () | |
Public Member Functions inherited from MySource_Object | |
MySource_Object () | |
__sleep () | |
__wakeup () | |
Static Public Member Functions | |
getSystemAssetTypes () | |
Data Fields | |
$name = '' | |
$version = '' | |
$description = '' | |
$assets = Array() | |
$_base_path = '' | |
$_full_path = '' | |
Data Fields inherited from MySource_Object | |
$_tmp | |
Definition at line 32 of file package_manager.inc.
_createAssetMapScreensXML | ( | $deferred = Array() | ) |
Generates a segment of an XML document for the Asset_Map.inc to use to send to the flash
Array | $deferred | An array of asset types to defer this install private |
Definition at line 541 of file package_manager.inc.
_getInstallOrder | ( | $update_assets = Array() , |
|
$deferred = Array() |
|||
) |
Generates an array holding the type_codes for the order in which the assets should be installed in order to respect the heirarchy defined in the asset.xml files
Array | $update_assets | Assets that are going to be updated. |
Array | $deferred | Any asset types that are going to be deferred this installation pass private |
Definition at line 463 of file package_manager.inc.
_installDALQueries | ( | ) |
Generates the baked Database Abstraction Layer (DAL) queries for the package
Definition at line 897 of file package_manager.inc.
_loadPackageAssets | ( | ) |
Recursivly searches through the passed package's directory for asset.xml files and enter's them into the $this->assets array with the details
private
Definition at line 361 of file package_manager.inc.
_postInstall | ( | ) |
Post install script for package; runs at end of update packages
protected
Definition at line 885 of file package_manager.inc.
_recurseLoadPackageAssets | ( | Array & | $assets, |
$full_path, | |||
$base_path | |||
) |
Recusively load information for the assets in this package
Array | &$assets | the assets to load the information for |
string | $full_path | the absolute path to the directory where the assets exist |
string | $base_path | the base path where the assets exists eg. for cms base_path=package/cms |
Definition at line 383 of file package_manager.inc.
checkPackageDetails | ( | $update_assets = Array() , |
|
$deferred_assets = Array() |
|||
) |
Checks to see if the installation/upgrade of this package is able to go ahead
Will return 'true' if all assets are okay, otherwise will return an array of assetids that failed requirements.
array | $update_assets | an array of asset types to check details for if empty, will check all assets |
array | $deferred_assets | an array of previously deferred assets |
Definition at line 147 of file package_manager.inc.
checkRequirementsFromFile | ( | $file, | |
$deferred_assets = Array() , |
|||
$need_feedback = false |
|||
) |
checks the requirements of the passed asset.xml file see checkRequirements() for more info
We need to pass the list of deferred assets to this function, because while it can handle direct requirements it can't normally handle assets that have to be deferred because their parents have had to be deferred (eg. if type B has to be deferred because type A needs to be installed, then it couldn't pick up that type C (which depends on B) needs to be deferred too
string | $file | the code name for the asset that you want to check |
array | $deferred_assets | a list of previously deferred assets |
boolean | $need_feedback | |
array | $ignore_assets | if the requirement is an asset, but is in this list, the requirement is considered to have passed |
Definition at line 624 of file package_manager.inc.
getPackageName | ( | ) |
Returns the name of the package that this management class is working for
public
Definition at line 128 of file package_manager.inc.
|
static |
Returns an array of all the asset types in the package that are to be treated as system assets NOTE: Assets will be installed in the order they appear in this list
Definition at line 834 of file package_manager.inc.
getTypeAncestors | ( | $type_code | ) |
Returns an array of all assets types that are parents for the passed asset that is in the this package, in the order Array ('parent', 'grand-parent', 'great-grand-parent', ..., 'asset')
string | $type_code | the code name for the asset that you want to check |
Definition at line 731 of file package_manager.inc.
getTypeInfo | ( | $type_code, | |
$field = '' |
|||
) |
Returns an array of asset information or a specific piece of information
string | $type_code | the code name for the asset that you want to check |
string | $field | if exists returns this information from the array for this specific field |
Definition at line 772 of file package_manager.inc.
installSystemAssets | ( | ) |
Installs System Assets for this package
Definition at line 847 of file package_manager.inc.
installUserPreferences | ( | & | $preferences | ) |
Iterate through the asset preference classes to add preference vars to an array
Definition at line 791 of file package_manager.inc.
Package_Manager | ( | ) |
Constructor
Definition at line 82 of file package_manager.inc.
updatePackageDetails | ( | $update_assets = Array() | ) |
Installs/Updates the passed package in the system
array | $update_assets | an array of asset types to update details for if empty, will do all assets |
Definition at line 203 of file package_manager.inc.