Class lispa\amos\notificationmanager\widgets\NotifyFrequencyWidget
Inheritance | lispa\amos\notificationmanager\widgets\NotifyFrequencyWidget » yii\base\Widget » yii\base\Component » yii\base\Object |
---|---|
Implements | yii\base\Configurable, yii\base\ViewContextInterface |
Class NotifyFrequencyWidget
Public Properties
Public Methods
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
public null getDefaultValueEmail ( )
public void setDefaultValueEmail ( lispa\amos\notificationmanager\models\NotificationsConfOpt $defaultValueEmail )
public void setDefaultValueEmail ( lispa\amos\notificationmanager\models\NotificationsConfOpt $defaultValueEmail )
public array getEmailContainerOptions ( )
public void setEmailContainerOptions ( $emailContainerOptions )
public void setEmailContainerOptions ( $emailContainerOptions )
It's permitted to set {emailNotifyFrequency} and {smsNotifyFrequency}. Default to {emailNotifyFrequency}.
Method Details
public static string emailFrequencySelectorId ( ) |
public static string emailFrequencySelectorName ( ) |
public array getContainerOptions ( ) |
public null getDefaultValueEmail ( ) |
public array getEmailContainerOptions ( ) |
public string getLayout ( ) |
public lispa\amos\admin\models\UserProfile getModel ( ) |
public array getSmsContainerOptions ( ) |
Initializes the object.
This method is called at the end of the constructor. The default implementation will trigger an EVENT_INIT event.
public void init ( ) |
Render the email notify frequency selector.
public string renderEmailNotifyFrequencySelector ( ) |
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. |
---|
Render the sms notify frequency selector.
public string renderSmsNotifyFrequencySelector ( ) |
Executes the widget.
public string run ( ) | ||
return | string | The result of widget execution to be outputted. |
---|
public void setContainerOptions ( $containerOptions ) | ||
$containerOptions | array |
public void setDefaultValueEmail ( lispa\amos\notificationmanager\models\NotificationsConfOpt $defaultValueEmail ) | ||
$defaultValueEmail | null |
public void setEmailContainerOptions ( $emailContainerOptions ) | ||
$emailContainerOptions | array |
public void setModel ( $model ) | ||
$model | lispa\amos\admin\models\UserProfile |
public void setSmsContainerOptions ( $smsContainerOptions ) | ||
$smsContainerOptions | array |
public static string smsFrequencySelectorId ( ) |
public static string smsFrequencySelectorName ( ) |