| Amiro.Ru / Manual | |||||||||||||||||||||||||||||||||||||||||||||||||||
|
Packages:
DB Debug Driver_PaymentSystem Environment Library Module ModuleComponent Package Plugin Plugin_AJAXResponder Plugin_Sample Service Template TxCommand TxService Hyper_AmiCatalog Hyper_AmiClean Hyper_AmiEshopShipping Hyper_AmiExt Hyper_AmiFiles Hyper_AmiMultifeeds Hyper_AmiSearch Hyper_AmiUsers Config_AmiCatalog_Items Config_AmiClean_AmiNewsList Config_AmiClean_AmiSample Config_AmiClean_EshopOrder Config_AmiClean_Webservice Config_AmiEshopShipping_Fields Config_AmiEshopShipping_Methods Config_AmiEshopShipping_Types Config_AmiFake_AmiroPayDrvExample Config_AmiFiles_Files Config_AmiMultifeeds_Articles Config_AmiMultifeeds_Blog Config_AmiMultifeeds_FAQ Config_AmiMultifeeds_News Config_AmiMultifeeds_PhotoGallery Config_AmiMultifeeds_Stickers Config_AmiUsers_Users Module_Catalog Module_Pages Module_Sample Module_SearchHistory
Interfaces:
Classes:
AMI
AMI_BackgroundProcess AMI_Cache AMI_Captcha AMI_CaptchaImage AMI_Event AMI_Exception AMI_ExternalAuthDriver AMI_HTMLResponse AMI_HTTPRequest AMI_HTTPResponse AMI_Mail AMI_MailQueue AMI_PageManager AMI_Response AMI_Service AMI_UserSourceApp AMI_UserSourceAppDriver Amiro_UserSourceAppDriver Facebook_UserSourceAppDriver Loginza_UserSourceAppDriver Twitter_UserSourceAppDriver VBulletin_ExternalAuthDriver VKontakte_UserSourceAppDriver |
Loading search... The AMI class• IntroductionAMI hub class. • Class synopsis
AMI
{
/* Methods */
// Adds module resource mapping.
public
static
addModResources ( string $modId, string $type, [ $aParts = null ], [ bool $doCombine = true ] ) returns void;
// Adds/changes mapping for resource.
// Adds resource mapping.
// Callback filterring extesion views from extensions array.
// Cleans up module extensions.
// Returns CMS edition.
// Returns module id by its class name.
// Returns path to module distributive by its id.
public
static
getModulePath ( string $moduleId, [ bool $exitOnError = true ], [ string $localPath = 'modules/code' ] ) returns string|null;
// Returns module option value.
// Returns path to installed plugin directory (i. e. '_local/plugins/sample/').
// Returns path to plugin distributive by its id.
// Returns module property value.
// Returns resource object by resource id.
public
static
getResource ( string $resId, [ $aArgs = array() ], [ bool $isLazy = false ] ) returns object;
// Returns resource model by resource id.
public
static
getResourceModel ( string $resId, [ $aArgs = array() ], [ bool $bAsInstance = true ] ) returns object;
// Returns resource singleton by resource id.
// Checks whether module is a category module.
// Returns true if module option is set and is true.
// Returns true if module propert is set and is true.
// Returns true if module option is set.
// Returns true if module propery is set.
// Returns true if resource singleton is initialized.
// Restores global scope modified in the environment setting up entry point. See AMI::saveGlobalScope() for usage example.
// Saves global scope, can be restored via AMI::restoreGlobalScope().
// Sets fast environment module options.
// Returns date format by locale id.
// Returns plugin option by its id.
// Returns CMS versions.
// Initialize module extensions.
public
initModExtensions ( string $modId, [ string $optSrcId = '' ], [ AMI_Mod $oModController = NULL ] ) returns void;
// Sets new options values, returns array of replaced options with original values.
// Saves module options.
// Sets module option value.
}
• Class Methods// Adds module resource mapping.
public
static
addModResources ( string $modId, string $type, [ $aParts = null ], [ bool $doCombine = true ] ) returns void;
Example:
Tags:
// Adds/changes mapping for resource.
// Adds resource mapping.
All CMS entities should be described as resources. See ami_server.php for usage example.
// Callback filterring extesion views from extensions array.
// Cleans up module extensions.
// Returns CMS edition.
Full environment required.
Tags:
// Returns module id by its class name.
// Returns path to module distributive by its id.
public
static
getModulePath ( string $moduleId, [ bool $exitOnError = true ], [ string $localPath = 'modules/code' ] ) returns string|null;
Tags:
// Returns module option value.
// Returns path to installed plugin directory (i. e. '_local/plugins/sample/').
Tags:
// Returns path to plugin distributive by its id.
Tags:
// Returns module property value.
Could be called in full environment context only.
Tags:
// Returns resource object by resource id.
public
static
getResource ( string $resId, [ $aArgs = array() ], [ bool $isLazy = false ] ) returns object;
// Returns resource model by resource id.
public
static
getResourceModel ( string $resId, [ $aArgs = array() ], [ bool $bAsInstance = true ] ) returns object;
Appends '/model' tail to passed resource id. Can return resource model as instance or singleton.
// Returns resource singleton by resource id.
// Checks whether module is a category module.
// Returns true if module option is set and is true.
// Returns true if module propert is set and is true.
Tags:
// Returns true if module option is set.
// Returns true if module propery is set.
Tags:
// Returns true if resource singleton is initialized.
Tags:
// Restores global scope modified in the environment setting up entry point. See AMI::saveGlobalScope() for usage example.
Tags:
// Saves global scope, can be restored via AMI::restoreGlobalScope().
Example:
Tags:
// Sets fast environment module options.
Tags:
// Returns date format by locale id.
The method returns php or database date/time format according to given locale.
Tags:
// Returns plugin option by its id.
Example:
Tags:
// Returns CMS versions.
AMI::getVersion($product) returns all versions for a specific product
AMI::getVersion() returns all versions in an array // Initialize module extensions.
public
initModExtensions ( string $modId, [ string $optSrcId = '' ], [ AMI_Mod $oModController = NULL ] ) returns void;
// Sets new options values, returns array of replaced options with original values.
Tags:
// Saves module options.
Tags:
// Sets module option value.
Tags:
|