Amiro.CMS API Reference
Amiro.Ru / Manual
Loading search...

The AMI_ModDetailsView class

AMI_View
   |
   --AMI_ModDetailsView

• Introduction

Module front details body type view.

• Class synopsis

AMI_ModDetailsView extends AMI_View {
/* Properties */
// Array of simple set fields
protected array $aSimpleSetFields = array('header', 'announce', 'body', 'fdate', 'ftime');
// Supported "response_type" GET parameters
protected array $aSupportedResponseTypes = array('json', 'item_details');
// Body type view
protected string $bodyType = 'details';
// Module common front view
// Template engine object
protected AMI_Template $oTpl;
/* Inherited Properties */
// Locale
protected AMI_View::$aLocale = array();
// Scope
protected AMI_View::$aScope = array();
// Locale file name
protected AMI_View::$localeFileName = '';
// Model
protected AMI_View::$oModel = null;
// Template block name
protected AMI_View::$tplBlockName = '';
// Template file name
protected AMI_View::$tplFileName = '';
/* Methods */
// Constructor.
public __construct ( ) returns AMI_ModDetailsView;
// Returns view data.
public get ( ) returns string;
// Disable page indexing.
public handleSEOProcess ( string $name, $aEvent, string $handlerModId, string $srcModId ) returns array;
// Fill the field callbacks.
protected prepareFieldCallbacks ( ) returns void;
/* Inherited Methods */
// Constructor.
public AMI_View::__construct ( ) returns AMI_View;
// Adds locale.
public AMI_View::addLocale ( $aLocale, [ bool $doOverwrite = true ] ) returns AMI_View;
// Adds script code.
public AMI_View::addScriptCode ( string $code ) returns AMI_View;
// Adds script file.
public AMI_View::addScriptFile ( string $file ) returns AMI_View;
// Returns view data.
public AMI_View::get ( ) returns mixed;
// Initialize, processing after setting model.
public AMI_View::init ( ) returns AMI_View;
// Adds locale from resource.
public AMI_View::setModel ( mixed $oModel, [ $aLocale = array() ], string $path ) returns AMI_View;
// Set module id.
public AMI_View::setModId ( string $modId ) returns void;
// Sets view scope.
public AMI_View::setScope ( $aScope ) returns AMI_View;
protected AMI_View::addOpenGraphTags ( $header, $description, [ $image = '' ] ) returns void;
// Returns module id.
protected AMI_View::getModId ( ) returns string;
// Returns module specific locale path.
protected AMI_View::getModLocalePath ( ) returns string;
// Returns prepared view scope.
protected AMI_View::getScope ( string $type, [ $aScope = array() ] ) returns array;
// Returns template object.
protected AMI_View::getTemplate ( ) returns AMI_iTemplate;
// Parses block template and returns the result as a string.
protected AMI_View::parse ( string $setName, [ $aScope = array() ] ) returns string;
// Sets up model object.
protected AMI_View::_setModel ( mixed $oModel ) returns AMI_View;
}
Tags:
abstract
since 5.14.8

• Class Properies

protected array $aSimpleSetFields

Array of simple set fields

protected array $aSupportedResponseTypes

Supported "response_type" GET parameters

protected string $bodyType

Body type view

protected AMI_ModCommonViewFrn $oCommonView

Module common front view

protected AMI_Template $oTpl

Template engine object

• Class Methods

// Disable page indexing.
public handleSEOProcess ( string $name, $aEvent, string $handlerModId, string $srcModId ) returns array;
  • string $name
    Event name
  • array $aEvent
    Event data
  • string $handlerModId
    Handler module id
  • string $srcModId
    Source module id
Tags:
see AMI_ModTableItem::setData()
// Fill the field callbacks.
protected prepareFieldCallbacks ( ) returns void;