constructor -----------
19525
function PersistentStorage(namespace, override) {
  this.prefix = ['__', namespace, '__'].join('');
  this.ttlKey = '__ttl__';
  this.keyMatcher = new RegExp('^' + _.escapeRegExChars(this.prefix));

  // for testing purpose
  this.ls = override || LOCAL_STORAGE;

  // if local storage isn't available, everything becomes a noop
  !this.ls && this._noop();
}
34269
public function _construct()
    {
        $this->_init(
            \Dotdigitalgroup\Email\Model\Review::class,
            \Dotdigitalgroup\Email\Model\ResourceModel\Review::class
        );
    }
310640
public function init()
    {
        $this->configurator = Instance::ensure($this->configurator, ConfiguratorInterface::class);

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

        parent::init();
    }
867528
public function _construct()
    {
        $this->_init(
            \Dotdigitalgroup\Email\Model\Rules::class,
            \Dotdigitalgroup\Email\Model\ResourceModel\Rules::class
        );
    }
379332
public function _construct()
    {
        $this->_init(\Magento\Cron\Model\Schedule::class, \Magento\Cron\Model\ResourceModel\Schedule::class);
    }
46178
public function init()
    {
        parent::init();

        // Register our fields
        Event::on(
            Fields::className(),
            Fields::EVENT_REGISTER_FIELD_TYPES,
            function (RegisterComponentTypesEvent $event) {
            	$event->types[] = MatchInputField::class;
            }
        );
    }
1172886
public function init() {

        parent::init();

        $this->blockService         = Yii::$app->factory->get( 'blockService' );
        $this->modelBlockService    = Yii::$app->factory->get( 'modelBlockService' );
        $this->galleryService       = Yii::$app->factory->get( 'galleryService' );
        $this->modelGalleryService  = Yii::$app->factory->get( 'modelGalleryService' );
    }
1049499
public function _construct()
    {
        $this->_init(
            \Dotdigitalgroup\Email\Model\Order::class,
            \Dotdigitalgroup\Email\Model\ResourceModel\Order::class
        );
    }
228964
public function initialize()
    {
        $this->data = new stdClass();
        $this->data->type = null;
        $this->data->createdAt = null;
        $this->data->descriotion = null;
    }
396670
public function init() {

		parent::init();

		// Views
		$this->setViewPath( '@cmsgears/module-community/admin/views/group/post' );

		// Permission
		$this->crudPermission = CmnGlobal::PERM_GROUP_ADMIN;

		// Config
		$this->type	= CoreGlobal::TYPE_DEFAULT;

		$this->templateType = CmnGlobal::TYPE_GROUP_POST;

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

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

		$this->templateService = Yii::$app->factory->get( 'templateService' );
	}
299862
public function _construct()
    {
        $this->_controller = 'adminhtml_dashboard';
        $this->_headerText = __('Dashboard');
        parent::_construct();

        /**
         * Contact sync.
         */
        $this->buttonList->add(
            'contact_sync',
            [
                'label' => __('Run Contact Sync'),
                'class' => 'primary'
            ]
        );

        /**
         * Importer sync.
         */
        $this->buttonList->add(
            'importer_sync',
            [
                'label' => __('Run Importer Sync'),
                'class' => 'primary'
            ]
        );
    }
214460
public function init()
    {
        parent::init();
        $this->clientOptions = false;
        Html::addCssClass($this->options, ['widget' => 'btn']);

        switch ($this->type) {
            case self::TYPE_FLOATING:
            case self::TYPE_FLAT:
                Html::addCssClass($this->options, ['btn_type' => "btn-$this->type"]);
                break;
        }

        switch ($this->size) {
            case self::SIZE_SMALL:
            case self::SIZE_LARGE:
                Html::addCssClass($this->options, ['btn_size' => "btn-$this->size"]);
                break;
        }

//        if ($this->large) {
//            Html::addCssClass($this->options, ['btn_size' => 'btn-large']);
//        }

        if ($this->disabled) {
            Html::addCssClass($this->options, ['btn_disabled' => 'disabled']);
        }
    }
843430
protected function _init() {
        /* ############## APP ############## */

        /* ## LANG ## */
        if ($handle = opendir(APP_RESOURCE_LANG_PATH)) {
            while (false !== ($entry = readdir($handle))) {
                if (preg_match('#(' . preg_quote('.xml') . ')$#isU', $entry)) {
                    $this->_parseLang(null, str_replace('.xml', '', $entry));
                }
            }

            closedir($handle);
        }

        /* ## TEMPLATE ## */
        $this->config['template']['app'] = APP_RESOURCE_TEMPLATE_PATH;
        /* ## CSS ## */
        $this->config['css']['app'] = WEB_PATH . 'app/' . WEB_CSS_PATH;
        /* ## IMAGE ## */
        $this->config['img']['app'] = WEB_PATH . 'app/' . WEB_IMAGE_PATH;
        /* ## FILE ## */
        $this->config['file']['app'] = WEB_PATH . 'app/' . WEB_FILE_PATH;
        /* ## JS ## */
        $this->config['js']['app'] = WEB_PATH . 'app/' . WEB_JS_PATH;

        /* ############## SRC ############## */

        if ($handleSrc = opendir(SRC_PATH)) {
            while (false !== ($entrySrc = readdir($handleSrc))) {
                if (is_dir(SRC_PATH . $entrySrc) && $entrySrc != '.' && $entrySrc != '..') {
                    /* ## ROUTE ## */
                    $this->_parseRoute($entrySrc);

                    /* ## LANG ## */
                    if ($handle = opendir(SRC_PATH . $entrySrc . '/' . SRC_RESOURCE_LANG_PATH)) {
                        while (false !== ($entry = readdir($handle))) {
                            if (preg_match('#(' . preg_quote('.xml') . ')$#isU', $entry)) {
                                $lang = str_replace('.xml', '', $entry);
                                $this->_parseLang($entrySrc, $lang);
                            }
                        }

                        closedir($handle);
                    }

                    /* ## TEMPLATE ## */
                    $this->config['template']['' . $entrySrc . ''] = SRC_PATH . $entrySrc . '/' . SRC_RESOURCE_TEMPLATE_PATH;
                    /* ## CSS ## */
                    $this->config['css']['' . $entrySrc . ''] = WEB_PATH . $entrySrc . '/' . WEB_CSS_PATH;
                    /* ## IMAGE ## */
                    $this->config['img']['' . $entrySrc . ''] = WEB_PATH . $entrySrc . '/' . WEB_IMAGE_PATH;
                    /* ## FILE ## */
                    $this->config['file']['' . $entrySrc . ''] = WEB_PATH . $entrySrc . '/' . WEB_FILE_PATH;
                    /* ## JS ## */
                    $this->config['js']['' . $entrySrc . ''] = WEB_PATH . $entrySrc . '/' . WEB_JS_PATH;
                    /* ## FIREWALL ## */
                    $this->_parseFirewall($entrySrc);

                    //copy app lang in each other module lang
                    foreach ($this->config['lang'] as $key => $value) {
                        if ($key != 'app') {
                            foreach ($value as $key2 => $value2) {
                                $this->config['lang']['' . $key . '']['' . $key2 . ''] = array_merge($this->config['lang']['app']['' . $key2 . ''], $value2);
                            }
                        }
                    }

                    /* ## ANNOTATIONS ## */
                    $controllers = scandir(SRC_PATH . $entrySrc . '/' . SRC_CONTROLLER_PATH);

                    foreach ($controllers as $controller) {
                        if (strlen($controller) > 2) {
                            $annotation = Annotation::getClass('Src\\' . $entrySrc . '\\Controller\\' . basename($controller, '.php'));
                            $this->_parseAnnotationRoute($entrySrc, $controller, $annotation);
                            $this->_parseAnnotationCron($entrySrc, $controller, $annotation);
                        }
                    }

                    /* ## ENTITIES ## */
                    $entities = scandir(APP_RESOURCE_ENTITY_PATH);

                    foreach ($entities as $entity) {
                        if (strlen($entity) > 2 && strstr($entity, '.')) {
                            Annotation::getClass('\\Gcs\\App\Resource\\Entity\\' . basename($entity, '.php'));
                        }
                    }
                }
            }

            closedir($handleSrc);
        }
        else {
            throw new Exception('The directory ' . SRC_PATH . 'doesn\'t exist');
        }

        if ($this->config['user']['output']['cache']['config']) {
            $this->_cache->setContent($this->config);
            $this->_cache->setCache();
        }
    }
148274
public function load() {
		if ( true === $this->is_admin_loaded ) {
			return;
		}

		$this->loader->load();
		$this->is_admin_loaded = true;
	}
592935
public function init()
    {
        parent::init();
        $this->clientOptions = false;
        Html::addCssClass($this->wrapOptions, 'progress');
        if ($this->determinate)
            Html::addCssClass($this->options, 'determinate');
        else
            Html::addCssClass($this->options, 'indeterminate');

        if ($this->percent) {
            if (!isset($this->options['style'])) {
                $this->options['style'] = 'width: ' . $this->percent . '%';
            } else {
                $this->options['style'] = explode(';', trim($this->options['style'], ';'));
                $this->options['style'][] = 'width: ' . $this->percent . '%;';
                $this->options['style'] = implode(';', $this->options['style']);
            }
        }
    }
52211
public function init() {

        parent::init();

        $this->autoload	= ( !empty( $this->autoloadUrl ) && CoreProperties::getInstance()->isAutoLoad() ) ? true : false;

		$this->cache = $this->cache ? $this->cache : CacheProperties::getInstance()->isCaching();
    }
1013522
public function init() {

		parent::init();

		$this->modelService = isset( $this->modelService ) ? $this->modelService : $this->controller->modelService;
	}