Class lispa\amos\core\forms\PublishedByWidget
Inheritance | lispa\amos\core\forms\PublishedByWidget » yii\base\Widget » yii\base\Component » yii\base\Object |
---|---|
Implements | yii\base\Configurable, yii\base\ViewContextInterface |
Class PublishedByWidget
shows the entities name publishing the content and the selected publication rule
The layout determines how different sections of the list view should be organized. The following tokens will be replaced with the corresponding section contents:
{publisher}
: publisher user. See renderPublisher().{publisherAdv}
: publisher user info with validator info. See renderPublisherAdv().{publishingRules}
: publisher user info with validator info. See \lispa\amos\core\forms\renderPublisherRules().{target}
: the target. See renderTarget().{targetAdv}
: the target. See renderTargetAdv().{category}
: the category of current model. See renderCategory().{status}
: the status of current model. See renderStatus().{pubblicationdates}
: the publication date begin and end of current model. See renderPubblicationDates().{pubblishedfrom}
: the publication date begin of current model. See renderPublishedFrom().{pubblishedat}
: the publication date end of current model. See renderPublishedAt().
Public Properties
Public Methods
Protected Methods
Method | Description | Defined By |
---|---|---|
findNode() | lispa\amos\core\forms\PublishedByWidget |
Events
Event | Type | Description | Defined 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
If true convert the widget into an info tooltip
The current model processed
Context
The HTML attributes for the container tag of the list view. The "tag" element specifies the tag name of the container element and defaults to "div".
See also yii\helpers\Html::renderTagAttributes() for details on how attributes are being rendered.
Method Details
protected mixed findNode ( $Target ) | ||
$Target | array | |
throws | yii\base\InvalidConfigException |
---|
public string getNodesAsString ( $nodes ) | ||
$nodes | ||
throws | yii\base\InvalidConfigException |
---|
Initializes the widget.
public void init ( ) |
public string renderCategory ( ) | ||
return | string | The rendering result |
---|
public string renderCategorySection ( ) | ||
return | string | The rendering result |
---|
This method render the created at date.
public string renderCreatedAt ( ) |
This method render the publication dates
public string renderPubblicationDates ( ) |
This method render the publication dates
public string renderPubblicationDatesSection ( ) |
This method render the published at date.
public string renderPublishedAt ( ) |
This method render the published at date.
public string renderPublishedAtSection ( ) |
This method render the published from date.
public string renderPublishedFrom ( ) |
This method render the published from date.
public string renderPublishedFromSection ( ) |
public string renderPublisher ( $onlyContent = false ) | ||
$onlyContent | boolean |
public string renderPublisherAdv ( ) | ||
return | string | The rendering result |
---|---|---|
throws | yii\base\InvalidConfigException |
public string renderPublisherSection ( $onlyContent = false ) | ||
$onlyContent | boolean |
public string renderPublishingRules ( ) | ||
return | string | The rendering result |
---|
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., |
return | string|boolean | The rendering result of the section, or false if the named section is not supported. |
---|---|---|
throws | yii\base\InvalidConfigException |
public string renderStatus ( ) | ||
return | string | The rendering result |
---|
public string renderStatusSection ( ) | ||
return | string | The rendering result |
---|
public string renderTarget ( ) | ||
return | string | The rendering result |
---|---|---|
throws | yii\base\InvalidConfigException |
public string renderTargetAdv ( ) | ||
return | string | The rendering result |
---|---|---|
throws | yii\base\InvalidConfigException |
public string renderTargetAdvSection ( ) | ||
return | string | The rendering result |
---|---|---|
throws | yii\base\InvalidConfigException |
Runs the widget.
public void run ( ) |