Constructor and Initialisation ------------------------------
336042
public function init() {

		parent::init();

		// Views
		$this->viewPath = '@cmsgears/module-cms/admin/views/category/';

		// Config
		$this->templateType = CoreGlobal::TYPE_CATEGORY;

		// Permission
		$this->crudPermission = CmsGlobal::PERM_BLOG_ADMIN;

		// Services
		$this->templateService = Yii::$app->factory->get( 'templateService' );

		// Notes: Configure sidebar and returnUrl exclusively in child classes. We can also change type and templateType in child classes.
	}
445093
public function init()
    {
        parent::init();

        $this->cache = $this->enabled ? Instance::ensure($this->cache, Cache::className()) : null;

        if ($this->cache instanceof Cache && $this->getCachedContent() === false) {
            $this->getView()->cacheStack[] = $this;
            ob_start();
            ob_implicit_flush(false);
        }
    }
675858
public function init()
    {
        parent::init();

        Html::addCssClass($this->carouselOptions, ['plugin' => 'carousel']);
        if ($this->fullWidth) {
            Html::addCssClass($this->carouselOptions, ['fullwidth' => 'carousel-slider']);
            $this->clientOptions['fullWidth'] = true;
        }

        $this->clientOptions['noWrap'] = $this->noWrap;
        $this->clientOptions['indicators'] = $this->showIndicators;
        $this->clientOptions['duration'] = $this->duration;
        $this->clientOptions['dist'] = $this->perspectiveZoom;
        $this->clientOptions['shift'] = $this->centerSpacing;
        $this->clientOptions['padding'] = $this->padding;
        $this->clientOptions['numVisible'] = $this->visibleItems;

        $this->registerPlugin('Carousel', '.carousel');
    }
885064
public function init() {

		parent::init();

		// Config
		$this->layout = CoreGlobalWeb::LAYOUT_PUBLIC;

		// Services
		$this->siteMemberService = Yii::$app->factory->get( 'siteMemberService' );
	}
1218669
public function init() {

		parent::init();

		$this->modelService		= Yii::$app->controller->modelService;
		$this->galleryService 	= Yii::$app->factory->get( 'galleryService' );
	}
94255
private function initialize(): void
    {
        if (!$this->isBootstrapLayout()) {
            return;
        }

        switch ($this->layout->cols) {
            case '2cll':
                $this->leftClass = $this->layout->bs_leftClass;
                $this->mainClass = $this->layout->bs_mainClass;
                break;

            case '2clr':
                $this->rightClass = $this->layout->bs_rightClass;
                $this->mainClass  = $this->layout->bs_mainClass;
                break;

            case '3cl':
                $this->leftClass  = $this->layout->bs_leftClass;
                $this->rightClass = $this->layout->bs_rightClass;
                $this->mainClass  = $this->layout->bs_mainClass;
                break;

            default:
                $this->useGrid = false;

                return;
        }

        $this->useGrid = true;
    }
368747
public function init() {

		parent::init();

		$cacheProperties = CacheProperties::getInstance();

		$this->cache = $cacheProperties->isCaching();

		// Init models
		$this->initModels();

		// Init Pagination
		$this->initPaging();
	}
579849
public function init() {

        parent::init();

		$this->formService = Yii::$app->factory->get( 'formService' );

		$this->templateService	= Yii::$app->factory->get( 'templateService' );
	}
527420
public function initialize()
    {
        parent::initialize();

        $this->setHtmlAttribute('data-type', 'range');
        $this->setHtmlAttribute('class', 'column-filter');

        $this->getFrom()->initialize();
        $this->getTo()->initialize();

        $this->getFrom()->removeHtmlAttribute('data-type');
        $this->getTo()->removeHtmlAttribute('data-type');
    }
310640
public function init()
    {
        $this->configurator = Instance::ensure($this->configurator, ConfiguratorInterface::class);

        if (empty($this->url)) {
            $this->url = Url::to('', true);
        }

        parent::init();
    }
934264
public function init()
    {
        parent::init();
        $this->setIsAdmin(in_array($this->name, $this->admins));
    }
207600
public function init()
    {
        parent::init();

        // Check we are logged in as a user who can access front end management
        if (!Permission::check("USERS_MANAGE_ACCOUNT")) {
            Security::permissionFailure();
        }

        // Set our member object
        $member = Member::currentUser();

        if ($member instanceof Member) {
            $this->member = $member;
        }
    }
590534
public function init()
	{
		parent::init();

		$classes = array('table');

		if (isset($this->type)) {
			if (is_string($this->type)) {
				$this->type = explode(' ', $this->type);
			}

			$validTypes = array(self::TYPE_STRIPED, self::TYPE_BORDERED, self::TYPE_CONDENSED);

			if (!empty($this->type)) {
				foreach ($this->type as $type) {
					if (in_array($type, $validTypes)) {
						$classes[] = 'table-' . $type;
					}
				}
			}
		}

		if (!empty($classes)) {
			$classes = implode(' ', $classes);
			if (isset($this->htmlOptions['class'])) {
				$this->htmlOptions['class'] .= ' ' . $classes;
			} else {
				$this->htmlOptions['class'] = $classes;
			}
		}
	}
109482
public function init()
    {
        parent::init();
        $this->clientOptions = false;
        if ($this->defaultWrapClass)
            Html::addCssClass($this->wrapOptions, $this->defaultWrapClass);
        if ($this->defaultClass)
            Html::addCssClass($this->options, $this->defaultClass);
    }
673597
public function init()
    {
        parent::init();
        if ($this->mode === self::MODE_BEGIN) {
            echo Html::beginTag('div', $this->options) . "\n";
        }
    }
111297
public function init()
    {
        $this->nextPageLabel  = Module::t('Next') . ' &raquo;';
        $this->prevPageLabel  = '&laquo; ' . Module::t('Prev.');
        $this->firstPageLabel = Module::t('First');
        $this->lastPageLabel  = Module::t('Last');

        parent::init();
    }
319499
public function init()
    {
        parent::init();
        if (!isset($this->options['id'])) {
            $this->options['id'] = $this->getId();
        }
        if (!$this->chartVariable) {
            $this->chartVariable = 'highchart_'.$this->options['id'];
        }
        $this->_renderTo = ArrayHelper::getValue($this->clientOptions, 'chart.renderTo');
    }