Skip to content
PHP Ecosystem
Explore

TimePickerAsset

API reference › TimePicker › TimePickerAsset

classyii2\extensions\timepicker\TimePickerAsset
Extendsyii\web\AssetBundle » yii\base\BaseObject
Implementsyii\base\Configurable
Sourcesrc/TimePickerAsset.php

Publishes the bundled Timepicker and optionally registers installed Yii Bootstrap assets.

PropertyTypeDescriptionDefined by
$basePathstring|nullThe Web-accessible directory that contains the asset files in this bundle. Default: null.yii\web\AssetBundle
$baseUrlstring|nullThe base URL for the relative asset files listed in $js and $css. Default: null.yii\web\AssetBundle
$bsDependencyEnabledbool|nullWhether to register an installed Yii Bootstrap adapter. Default: null.TimePickerAsset
$bsPluginEnabledboolWhether to register its JavaScript bundle as well as CSS. Default: false.TimePickerAsset
$cssCSS files for the asset bundle. Default: self::CSS.TimePickerAsset
$cssOptionsyii\web\RegisterCssFileOptionsThe options that will be passed to View::registerCssFile() when registering the CSS files in this bundle. Default: [].yii\web\AssetBundle
$debugbool|nullOverrides Yii debug mode when choosing the bundled asset files. Default: null.TimePickerAsset
$dependsAsset bundles that this bundle depends on. Default: [\yii\web\YiiAsset::class].TimePickerAsset
$jsJavaScript files for the asset bundle. Default: self::JS.TimePickerAsset
$jsOptionsyii\web\RegisterJsFileOptionsThe options that will be passed to View::registerJsFile() when registering the JS files in this bundle. Default: [].yii\web\AssetBundle
$publishOptionsyii\web\PublishOptionsThe options to be passed to AssetManager::publish() when the asset bundle is being published. Default: [].yii\web\AssetBundle
$sourcePathSource path for the asset bundle. Default: __DIR__ . '/assets'.TimePickerAsset
MethodDescriptionDefined by
__construct()Normalizes the legacy empty asset sentinels before Yii configures its file lists.TimePickerAsset
__call()Calls the named method which is not a class method.yii\base\BaseObject
__get()Returns the value of an object property.yii\base\BaseObject
__isset()Checks if a property is set, i.e. defined and not null.yii\base\BaseObject
__set()Sets value of an object property.yii\base\BaseObject
__unset()Sets an object property to null.yii\base\BaseObject
canGetProperty()Returns a value indicating whether a property can be read.yii\base\BaseObject
canSetProperty()Returns a value indicating whether a property can be set.yii\base\BaseObject
className() staticReturns the fully qualified name of this class.yii\base\BaseObject
hasMethod()Returns a value indicating whether a method is defined.yii\base\BaseObject
hasProperty()Returns a value indicating whether a property is defined.yii\base\BaseObject
init()Selects minified assets outside debug mode and normalizes the legacy empty path.TimePickerAsset
publish()Publishes the asset bundle if its source code is not under Web-accessible directory.yii\web\AssetBundle
register() staticRegisters this asset bundle with a view.yii\web\AssetBundle
registerAssetFiles()Registers the CSS and JS files with the given view.yii\web\AssetBundle
registerBootstrap()Registers the optional installed Bootstrap adapter for the widget’s effective version.TimePickerAsset
ConstantValueDescriptionDefined by
EMPTY_ASSET'N0/@$$3T$'Retained for existing asset manager overrides that disable a file list.TimePickerAsset
EMPTY_PATH'N0/P@T#'Retained for existing asset manager overrides that disable publication.TimePickerAsset
public function __construct(array<string, mixed> $config = [])

Normalizes the legacy empty asset sentinels before Yii configures its file lists.

Parameters

ParameterTypeDescription
$configarray<string, mixed>
public function init(): void

Selects minified assets outside debug mode and normalizes the legacy empty path.

public function registerBootstrap(yii\web\View $view, 3|4|5 $version): void

Registers the optional installed Bootstrap adapter for the widget’s effective version.

Parameters

ParameterTypeDescription
$viewyii\web\View
$version3|4|5