Class lispa\amos\dashboard\utility\DashboardUtility
Inheritance | lispa\amos\dashboard\utility\DashboardUtility » yii\base\Object |
---|---|
Implements | yii\base\Configurable |
Class DashboardUtility
Public Methods
Method | Description | Defined By |
---|---|---|
__call() | Calls the named method which is not a class method. | yii\base\Object |
__construct() | Constructor. | yii\base\Object |
__get() | Returns the value of an object property. | yii\base\Object |
__isset() | Checks if a property is set, i.e. defined and not null. | yii\base\Object |
__set() | Sets value of an object property. | yii\base\Object |
__unset() | Sets an object property to null. | yii\base\Object |
canGetProperty() | Returns a value indicating whether a property can be read. | yii\base\Object |
canSetProperty() | Returns a value indicating whether a property can be set. | yii\base\Object |
className() | Returns the fully qualified name of this class. | yii\base\Object |
hasMethod() | Returns a value indicating whether a method is defined. | yii\base\Object |
hasProperty() | Returns a value indicating whether a property is defined. | yii\base\Object |
init() | Initializes the object. | yii\base\Object |
resetAllDashboards() | This method reset all dashboards by user ID. You can specify a module and it will be used to reset only the dashboard of that module. | lispa\amos\dashboard\utility\DashboardUtility |
resetDashboardsByModule() | This method reset all dashboards by module. You can specify a user ID and it will be used to reset only the dashboard of that user. | lispa\amos\dashboard\utility\DashboardUtility |
resetDashboardsByUser() | This method reset all dashboards by user ID. You can specify a module and it will be used to reset only the dashboard of that module. | lispa\amos\dashboard\utility\DashboardUtility |
Method Details
This method reset all dashboards by user ID. You can specify a module and it will be used to reset only the dashboard of that module.
public static boolean resetAllDashboards ( $excludedUserIds = [], $excludedModules = [] ) | ||
$excludedUserIds | integer[] | |
$excludedModules | string[] |
This method reset all dashboards by module. You can specify a user ID and it will be used to reset only the dashboard of that user.
public static boolean resetDashboardsByModule ( $module, $userId = 0 ) | ||
$module | string | |
$userId | integer |
This method reset all dashboards by user ID. You can specify a module and it will be used to reset only the dashboard of that module.
public static boolean resetDashboardsByUser ( $userId, $module = '' ) | ||
$userId | integer | |
$module | string |