Class lispa\amos\core\forms\editors\m2mWidget\M2MWidget

Inheritancelispa\amos\core\forms\editors\m2mWidget\M2MWidget » yii\base\Widget » yii\base\Component » yii\base\Object
Implementsyii\base\Configurable, yii\base\ViewContextInterface

Class M2MWidget

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$actionColumnsButtons array lispa\amos\core\forms\editors\m2mWidget\M2MWidget
$actionColumnsTemplate string This is the template used for rendere action buttons. lispa\amos\core\forms\editors\m2mWidget\M2MWidget
$additionalTargetUrl string The url of additional association page lispa\amos\core\forms\editors\m2mWidget\M2MWidget
$autoIdPrefix string The prefix to the automatically generated widget IDs. yii\base\Widget
$behaviors yii\base\Behavior[] List of behaviors attached to this component yii\base\Component
$btnAdditionalAssociateClass lispa\amos\core\forms\editors\m2mWidget\M2MWidget
$btnAdditionalAssociateLabel lispa\amos\core\forms\editors\m2mWidget\M2MWidget
$btnAssociaClass lispa\amos\core\forms\editors\m2mWidget\M2MWidget
$btnAssociaLabel lispa\amos\core\forms\editors\m2mWidget\M2MWidget
$confirm array|null lispa\amos\core\forms\editors\m2mWidget\M2MWidget
$counter integer A counter used to generate $id for widgets. yii\base\Widget
$createAdditionalAssociateButtonsEnabled lispa\amos\core\forms\editors\m2mWidget\M2MWidget
$createAssociaButtonsEnabled lispa\amos\core\forms\editors\m2mWidget\M2MWidget
$createNewBtnLabel lispa\amos\core\forms\editors\m2mWidget\M2MWidget
$createNewTargetUrl lispa\amos\core\forms\editors\m2mWidget\M2MWidget
$deleteActionName lispa\amos\core\forms\editors\m2mWidget\M2MWidget
$deleteRelationTargetIdField string lispa\amos\core\forms\editors\m2mWidget\M2MWidget
$disableAssociaButton lispa\amos\core\forms\editors\m2mWidget\M2MWidget
$disableCreateButton lispa\amos\core\forms\editors\m2mWidget\M2MWidget
$firstGridSearch lispa\amos\core\forms\editors\m2mWidget\M2MWidget
$forceListRender lispa\amos\core\forms\editors\m2mWidget\M2MWidget
$gridId lispa\amos\core\forms\editors\m2mWidget\M2MWidget
$id string ID of the widget. yii\base\Widget
$isModal boolean lispa\amos\core\forms\editors\m2mWidget\M2MWidget
$itemMittenteDefaultOrder array lispa\amos\core\forms\editors\m2mWidget\M2MWidget
$itemsMittente lispa\amos\core\forms\editors\m2mWidget\M2MWidget
$itemsMittenteActionColumns lispa\amos\core\forms\editors\m2mWidget\M2MWidget
$itemsSenderPageSize lispa\amos\core\forms\editors\m2mWidget\M2MWidget
$itemsTargetView string lispa\amos\core\forms\editors\m2mWidget\M2MWidget
$layout lispa\amos\core\forms\editors\m2mWidget\M2MWidget
$layoutMittente lispa\amos\core\forms\editors\m2mWidget\M2MWidget
$layoutTarget lispa\amos\core\forms\editors\m2mWidget\M2MWidget
$listView array|null - option for data provider list view lispa\amos\core\forms\editors\m2mWidget\M2MWidget
$mittenteFooter lispa\amos\core\forms\editors\m2mWidget\M2MWidget
$model lispa\amos\core\forms\editors\m2mWidget\M2MWidget
$modelData lispa\amos\core\forms\editors\m2mWidget\M2MWidget
$modelDataArr lispa\amos\core\forms\editors\m2mWidget\M2MWidget
$modelDataArrFromTo lispa\amos\core\forms\editors\m2mWidget\M2MWidget
$modelId lispa\amos\core\forms\editors\m2mWidget\M2MWidget
$modelTarget lispa\amos\core\forms\editors\m2mWidget\M2MWidget
$modelTargetData lispa\amos\core\forms\editors\m2mWidget\M2MWidget
$modelTargetSearch lispa\amos\core\forms\editors\m2mWidget\M2MWidget
$moduleClassName lispa\amos\core\module\Module lispa\amos\core\forms\editors\m2mWidget\M2MWidget
$multipleSelection boolean lispa\amos\core\forms\editors\m2mWidget\M2MWidget
$overrideModelDataArr lispa\amos\core\forms\editors\m2mWidget\M2MWidget
$pageParam lispa\amos\core\forms\editors\m2mWidget\M2MWidget
$permissions lispa\amos\core\forms\editors\m2mWidget\M2MWidget
$postKey lispa\amos\core\forms\editors\m2mWidget\M2MWidget
$postName lispa\amos\core\forms\editors\m2mWidget\M2MWidget
$relationAttributesArray array lispa\amos\core\forms\editors\m2mWidget\M2MWidget
$renderTargetCheckbox lispa\amos\core\forms\editors\m2mWidget\M2MWidget
$showHeader boolean lispa\amos\core\forms\editors\m2mWidget\M2MWidget
$showPageSummary boolean lispa\amos\core\forms\editors\m2mWidget\M2MWidget
$showPager boolean lispa\amos\core\forms\editors\m2mWidget\M2MWidget
$stack yii\base\Widget[] The widgets that are currently being rendered (not ended). yii\base\Widget
$targetActionColumnsButtons lispa\amos\core\forms\editors\m2mWidget\M2MWidget
$targetActionColumnsTemplate lispa\amos\core\forms\editors\m2mWidget\M2MWidget
$targetColumnsToView lispa\amos\core\forms\editors\m2mWidget\M2MWidget
$targetFooterButtons lispa\amos\core\forms\editors\m2mWidget\M2MWidget
$targetUrl string The url of association page lispa\amos\core\forms\editors\m2mWidget\M2MWidget
$targetUrlController lispa\amos\core\forms\editors\m2mWidget\M2MWidget
$targetUrlParams array lispa\amos\core\forms\editors\m2mWidget\M2MWidget
$titleWidget string lispa\amos\core\forms\editors\m2mWidget\M2MWidget
$view yii\web\View The view object that can be used to render views or view files. yii\base\Widget
$viewPath string The directory containing the view files for this widget. yii\base\Widget
$viewSearch boolean lispa\amos\core\forms\editors\m2mWidget\M2MWidget
$withOutModelData boolean lispa\amos\core\forms\editors\m2mWidget\M2MWidget

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__call() Calls the named method which is not a class method. yii\base\Component
__clone() This method is called after the object is created by cloning an existing one. yii\base\Component
__construct() Constructor. yii\base\Object
__get() Returns the value of a component property. yii\base\Component
__isset() Checks if a property is set, i.e. defined and not null. yii\base\Component
__set() Sets the value of a component property. yii\base\Component
__unset() Sets a component property to be null. yii\base\Component
additionalAssociateButtonId() lispa\amos\core\forms\editors\m2mWidget\M2MWidget
afterRun() This method is invoked right after a widget is executed. yii\base\Widget
associaButtonId() lispa\amos\core\forms\editors\m2mWidget\M2MWidget
attachBehavior() Attaches a behavior to this component. yii\base\Component
attachBehaviors() Attaches a list of behaviors to the component. yii\base\Component
beforeRun() This method is invoked right before the widget is executed. yii\base\Widget
begin() Begins a widget. yii\base\Widget
behaviors() Returns a list of behaviors that this component should behave as. yii\base\Component
canGetProperty() Returns a value indicating whether a property can be read. yii\base\Component
canSetProperty() Returns a value indicating whether a property can be set. yii\base\Component
className() Returns the fully qualified name of this class. yii\base\Object
creaButtonId() lispa\amos\core\forms\editors\m2mWidget\M2MWidget
detachBehavior() Detaches a behavior from the component. yii\base\Component
detachBehaviors() Detaches all behaviors from the component. yii\base\Component
end() Ends a widget. yii\base\Widget
ensureBehaviors() Makes sure that the behaviors declared in behaviors() are attached to this component. yii\base\Component
gestisciAttributiButtonId() lispa\amos\core\forms\editors\m2mWidget\M2MWidget
getBehavior() Returns the named behavior object. yii\base\Component
getBehaviors() Returns all behaviors attached to this component. yii\base\Component
getConfirm() lispa\amos\core\forms\editors\m2mWidget\M2MWidget
getId() Returns the ID of the widget. yii\base\Widget
getView() Returns the view object that can be used to render views or view files. yii\base\Widget
getViewPath() Returns the directory containing the view files for this widget. yii\base\Widget
hasEventHandlers() Returns a value indicating whether there is any handler attached to the named event. yii\base\Component
hasMethod() Returns a value indicating whether a method is defined. yii\base\Component
hasProperty() Returns a value indicating whether a property is defined for this component. yii\base\Component
init() lispa\amos\core\forms\editors\m2mWidget\M2MWidget
makeCancelButton() This method return the default cancel button lispa\amos\core\forms\editors\m2mWidget\M2MWidget
makeSaveButton() This method return the default save button lispa\amos\core\forms\editors\m2mWidget\M2MWidget
off() Detaches an existing event handler from this component. yii\base\Component
on() Attaches an event handler to an event. yii\base\Component
render() Renders a view. yii\base\Widget
renderFile() Renders a view file. yii\base\Widget
renderFooterMittente() Renders the toolbar lispa\amos\core\forms\editors\m2mWidget\M2MWidget
renderFooterTarget() Renders the toolbar lispa\amos\core\forms\editors\m2mWidget\M2MWidget
renderHiddenInputTarget() Renders the input hidden section lispa\amos\core\forms\editors\m2mWidget\M2MWidget
renderItemsMittente() Renders the data models for the grid view. lispa\amos\core\forms\editors\m2mWidget\M2MWidget
renderItemsTarget() Renders the data models for the grid view. lispa\amos\core\forms\editors\m2mWidget\M2MWidget
renderSection() Renders a section of the specified name. lispa\amos\core\forms\editors\m2mWidget\M2MWidget
renderToolbarMittente() Renders the toolbar lispa\amos\core\forms\editors\m2mWidget\M2MWidget
renderToolbarMittenteMini() Renders the toolbar lispa\amos\core\forms\editors\m2mWidget\M2MWidget
renderToolbarTarget() Renders the toolbar lispa\amos\core\forms\editors\m2mWidget\M2MWidget
run() lispa\amos\core\forms\editors\m2mWidget\M2MWidget
setId() Sets the ID of the widget. yii\base\Widget
setView() Sets the view object to be used by this widget. yii\base\Widget
trigger() Triggers an event. yii\base\Component
widget() Creates a widget instance and runs it. yii\base\Widget

Events

Hide inherited events

EventTypeDescriptionDefined By
EVENT_AFTER_RUN yii\base\WidgetEvent An event raised right after executing a widget. (available since version 2.0.11) yii\base\Widget
EVENT_BEFORE_RUN yii\base\WidgetEvent An event raised right before executing a widget. (available since version 2.0.11) yii\base\Widget
EVENT_INIT yii\base\Event An event that is triggered when the widget is initialized via init(). (available since version 2.0.11) yii\base\Widget

Property Details

$actionColumnsButtons public property
$actionColumnsTemplate public property

This is the template used for rendere action buttons. Here is an example: '{relationAttributeManage} {deleteRelation}'. The default is '{deleteRelation}' to view only delete button.

public string $actionColumnsTemplate '{deleteRelation}'
$additionalTargetUrl public property

The url of additional association page

$btnAdditionalAssociateClass public property
public $btnAdditionalAssociateClass 'btn btn-primary'
$btnAdditionalAssociateLabel public property
$btnAssociaClass public property
public $btnAssociaClass 'btn btn-primary'
$btnAssociaLabel public property
public $btnAssociaLabel ''
$confirm public read-only property
public array|null getConfirm ( )
$createAdditionalAssociateButtonsEnabled public property
$createAssociaButtonsEnabled public property
$createNewBtnLabel public property
public $createNewBtnLabel null
$createNewTargetUrl public property
public $createNewTargetUrl ''
$deleteActionName public property
public $deleteActionName 'elimina-m2m'
$deleteRelationTargetIdField public property
$disableAssociaButton public property
public $disableAssociaButton false
$disableCreateButton public property
public $disableCreateButton false
$firstGridSearch public property
public $firstGridSearch false
$forceListRender public property
public $forceListRender false
$gridId public property
public $gridId 'm2m-grid'
$isModal public property
public boolean $isModal false
$itemMittenteDefaultOrder public property
$itemsMittente public property
public $itemsMittente = []
$itemsMittenteActionColumns public property
$itemsSenderPageSize public property
$itemsTargetView public property
public string $itemsTargetView 'm2mwidget_grid'
$layout public property
public $layout null
$layoutMittente public property
public $layoutMittente "{toolbarMittente}\n{itemsMittente}\n{footerMittente}"
$layoutTarget public property
public $layoutTarget "{toolbarTarget}\n{hiddenInputTarget}\n{itemsTarget}\n{footerTarget}"
$listView public property
  • option for data provider list view
public array|null $listView null
$mittenteFooter public property
public $mittenteFooter ''
$model public property
public $model null
$modelData public property
public $modelData null
$modelDataArr public property
public $modelDataArr null
$modelDataArrFromTo public property
public $modelDataArrFromTo = []
$modelId public property
public $modelId null
$modelTarget public property
public $modelTarget null
$modelTargetData public property
public $modelTargetData null
$modelTargetSearch public property
public $modelTargetSearch = []
$moduleClassName public property
$multipleSelection public property
$overrideModelDataArr public property
public $overrideModelDataArr false
$pageParam public property
public $pageParam 'page'
$permissions public property
public $permissions = ['add' => null]
$postKey public property
public $postKey ''
$postName public property
public $postName ''
$relationAttributesArray public property
$renderTargetCheckbox public property
public $renderTargetCheckbox true
$showHeader public property
public boolean $showHeader true
$showPageSummary public property
public boolean $showPageSummary true
$showPager public property
public boolean $showPager true
$targetActionColumnsButtons public property
$targetActionColumnsTemplate public property
$targetColumnsToView public property
$targetFooterButtons public property
public $targetFooterButtons null
$targetUrl public property

The url of association page

public string $targetUrl null
$targetUrlController public property
$targetUrlParams public property
public array $targetUrlParams null
$titleWidget public property
public string $titleWidget ''
$viewSearch public property
public boolean $viewSearch false
$withOutModelData public property
public boolean $withOutModelData false

Method Details

additionalAssociateButtonId() public static method

public static void additionalAssociateButtonId ( )
associaButtonId() public static method

public static void associaButtonId ( )
creaButtonId() public static method

public static void creaButtonId ( )
gestisciAttributiButtonId() public static method

public static void gestisciAttributiButtonId ( )
getConfirm() public method

public array|null getConfirm ( )
init() public method

public void init ( )
throws yii\base\Exception
makeCancelButton() public static method

This method return the default cancel button

public static string makeCancelButton ( $moduleClassName, $targetUrlController, $model, $isModal false )
$moduleClassName string
$targetUrlController string
$model lispa\amos\core\record\Record
$isModal boolean|false
makeSaveButton() public static method

This method return the default save button

public static string makeSaveButton ( $isModal false, $url null )
$isModal boolean|false
$url
renderFooterMittente() public method

Renders the toolbar

public void renderFooterMittente ( )
renderFooterTarget() public method

Renders the toolbar

public void renderFooterTarget ( )
renderHiddenInputTarget() public method

Renders the input hidden section

public void renderHiddenInputTarget ( )
renderItemsMittente() public method

Renders the data models for the grid view.

public void renderItemsMittente ( )
renderItemsTarget() public method

Renders the data models for the grid view.

public void renderItemsTarget ( )
renderSection() public method

Renders a section of the specified name.

If the named section is not supported, false will be returned.

public string|boolean renderSection ( $name )
$name string

The section name, e.g., {summary}, {items}.

return string|boolean

The rendering result of the section, or false if the named section is not supported.

renderToolbarMittente() public method

Renders the toolbar

public void renderToolbarMittente ( )
renderToolbarMittenteMini() public method

Renders the toolbar

public void renderToolbarMittenteMini ( )
renderToolbarTarget() public method

Renders the toolbar

public void renderToolbarTarget ( )
run() public method

public void run ( )
throwErrorMessage() protected method

protected void throwErrorMessage ( $field )
$field