Set the initial state.

@return void
194594
public function setInitialState()
    {
        $this->setAttribute($this->getStateColumn(), $this->getInitialState());
        $this->token = hash_hmac('sha256', str_random(40), env('APP_KEY'));
    }
366581
public function initialize()
    {
        $this->setSource($this->tableName);
        $this->belongsTo('route_id', __NAMESPACE__ . '\Route', 'id', array('alias' => 'Route'));
        $this->belongsTo('navigation_id', __NAMESPACE__ . '\Navigation', 'id', array('alias' => 'Navigation'));
    }
930487
protected function _init() {
		$mobileOverwrite = $this->Controller->getRequest()->getQuery('mobile');

		if ($mobileOverwrite !== null) {
			if ($mobileOverwrite === '-1') {
				$this->Controller->getRequest()->getSession()->delete('User.mobile');
			} else {
				$wantsMobile = (bool)$mobileOverwrite;
				$this->Controller->getRequest()->getSession()->write('User.mobile', (int)$wantsMobile);
			}
		}
		$this->isMobile();

		if (!$this->_config['auto']) {
			return;
		}
		$this->setMobile();
	}
132156
public function initialize()
    {
        if ($this->initialized === false) {
            $this->data = $this->cursor->toArray();
        }
        $this->initialized = true;
    }
194945
def set_initial_state(self, initial_state, initial_frames):
    """"""
    self.env.set_initial_state(initial_state, initial_frames)
    self._initial_frames = initial_frames
450116
protected function init()
    {
        // Set name
        if ($this->getOption('name')) {
            $this->bridge->setName(md5($this->getOption('name')));
        }

        // Set id
        if ($this->getOption('id')) {
            $this->bridge->setId($this->getOption('id'));
        }

        // Sync the session maxlifetime
        if (!headers_sent()) {
            ini_set('session.gc_maxlifetime', (string) ($this->getOption('expire_time') * 60));
        }

        $this->setCookieParams();
    }
794581
public function actionInit() : void
    {
        $this->initSURole();
        $config = $this->loadConfig();
        $this->applyConfig($config);
        $this->applyAssignConfig($config);
        $this->addAssignmentsToSu();
        $this->log(true);
    }
1262955
public function setup(){
		if(($this->hasOption('autoinit') && $this->options()->autoinit) && ($this->hasOption('class') || $this->hasOption('default'))){
			$strClass = $this->hasOption('class') ? $this->options()->class : $this->options()->default;
			$this->setValue(new $strClass);
		}
	}
1006267
private function set_instance() {
        $this->_page=(int) (!isset($_GET[$this->_instance]) ? 1 : $_GET[$this->_instance]);
        $this->_page=($this->_page == 0 ? 1 : $this->_page);
    }
625322
protected function initialize()
    {
        if ($this->initialized === true) {
            return;
        }
        $this->initialized = true;
        $this->buildFullConfiguration();
        $this->applyPostprocessing();
    }
119712
public static function reset() {
		if (empty(self::$_initialState)) {
			self::$_initialState = get_class_vars('Inflector');
			return;
		}
		foreach (self::$_initialState as $key => $val) {
			if ($key != '_initialState') {
				self::${$key} = $val;
			}
		}
	}
578666
public function onInit()
    {
        $this->nameSort = Utility::get($this->params, '{name}', null);
        $this->labelSort = Utility::get($this->params, '{label}', null);
        $this->fixedColumns = Utility::get($this->params, 'fixedColumns', null);
    }
368829
public function initSession()
    {
        $identity = $this->getIdentity();

        $identitySession = $identity->getSession();
        if ($identitySession) {
            $curentSessionId = $this->getSessionId();
            $identitySessionId = $identitySession->getId();
            if (empty($curentSessionId) || $curentSessionId !== $identitySessionId) {
                setcookie($this->cookieName, $identitySessionId, time() + (60 * 60 * 24 * 365 * 2), $this->cookiePath);
            }
        }
    }
680127
public function initialize()
    {
        if (is_null($value = $this->getValue())) {
            $value = request()->input($this->getAlias());
        }

        $this->setValue($value);
    }
713263
public function init()
    {
        $this->setName('users');
        $this->setLabel('Users');
        $this->setAttribute('id', 'users');
        
        
        $this->setTargetElement(
            array(
            'type' => 'hidden',
            'name' => 'user',
            )
        );
        
        $this->setCount(0)
             ->setAllowRemove(true)
             ->setAllowAdd(true)
             ->setShouldCreateTemplate(true);
    }
1161831
public static function init()
	{
		self::$authFile = self::getAuthFilePath();
		if ( self::isAuthSet() ) {
			self::reload();
		}

		return true;
	}
872839
protected function onInit()
    {
        foreach ($this->params as $key => $value) {
            $columnList = explode(",", $value);
            foreach ($columnList as $k => $v) {
                $columnList[$k] = trim($v);
            }
            $this->params[$key] = $columnList;
        }
    }