| 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_Response class• IntroductionCMS response. • Class synopsis
AMI_Response
{
/* Constants */
// Default status message code
// 'Error' status message code
// 'Warning' status message code
/* Methods */
// Add status message.
public
addStatusMessage ( string $key, [ $aParams = array() ], [ string $type = self::STATUS_MESSAGE ], [ string $modId = '' ] ) returns AMI_Response;
// Enables bench info in response.
// Returns JSON response.
// Returns true if response is already started.
// Loads status message loacales.
// Delete all status messages.
// Sends response and exits.
// Sets page reload flag.
// Delay execution.
// Starts reponse.
// Writes data to the response.
}
• Class DetailsAttention! Do not use response functionality in plugin CMS context code! Plugin CMS context is always buffered and system is expecting plugin response in $resultHtml variable. Example:
Tags:
• Class Constants
• Class Methods// Add status message.
public
addStatusMessage ( string $key, [ $aParams = array() ], [ string $type = self::STATUS_MESSAGE ], [ string $modId = '' ] ) returns AMI_Response;
Example:
Tags:
// Enables bench info in response.
// Returns JSON response.
// Returns true if response is already started.
Tags:
// Loads status message loacales.
Example:
Tags:
// Delete all status messages.
Tags:
// Sends response and exits.
Tags:
// Sets page reload flag.
Tags:
// Delay execution.
Metod is used for delay taking into benches.
// Starts reponse.
// Writes data to the response.
|