(non-PHPdoc)
@see \MwbExporter\Formatter::init()
775110
protected function init()
    {
        parent::init();
        $this->addConfigurations(array(
            static::CFG_FILENAME                      => 'Entity/%entity%.%extension%',
            static::CFG_GENERATE_ENTITY_POPULATE      => true,
            static::CFG_GENERATE_ENTITY_GETARRAYCOPY  => true,
        ));
    }
492309
public function init()
    {

        // initialize the prepared statements
        $this->categoryIntsStmt =
            $this->getConnection()->prepare($this->loadStatement(SqlStatementKeys::CATEGORY_INTS));
        $this->categoryIntsByPkAndStoreIdStmt =
            $this->getConnection()->prepare($this->loadStatement(SqlStatementKeys::CATEGORY_INTS_BY_PK_AND_STORE_ID));
    }
1214995
private function _initialize()
    {
        $params = $this->getParameters();
        if ($params !== null) {
            for ($i = 0, $_i = count($params); $i < $_i; $i++) {
                if ($params[$i]->getType() === null) {
                    if ($params[$i]->getName() === "style") {
                        $this->setStyle($params[$i]->getValue());
                    }
                } elseif ($params[$i]->getType() == "param") {
                    $xp = new XsltParam();
                    $xp->setName($params[$i]->getName());
                    $xp->setExpression($params[$i]->getValue());
                    $this->xsltParams[] = $xp;
                }
            }
        }
    }
980946
public function init()
    {
        if (true === $this->initialized) {
            return;
        }

        $this->registerPhpcrCommands();
        $this->registerPhpcrStandaloneCommands();
        $this->registerShellCommands();

        $event = new ApplicationInitEvent($this);
        $this->dispatcher->dispatch(PhpcrShellEvents::APPLICATION_INIT, $event);
        $this->initialized = true;
    }
193047
private function _init()
    {
        // TODO: check if self::$instance is required here or if we can only set
        // decorated object

        // initialize and store the instance of template engine for further access
        self::$instance = Doozr_Loader_Serviceloader::load($this->library, $this->resource);

        // set this instance as decorated object of our generic Facade and
        // so we can access all the base methods of any lib easily!
        $this->setDecoratedObject(self::$instance);
    }
945945
public static function init() {
		if ( php_sapi_name() == 'cli' ) {
			self::$BasePath = str_replace( '/', DIRECTORY_SEPARATOR, dirname( __FILE__ ) . '/' );
		} else {
			self::$BasePath = str_replace( '/', DIRECTORY_SEPARATOR, realpath( dirname( __FILE__ ) ) . "/" );
		}

		if ( isset( $_SERVER['HTTPS'] ) ||
		     ( isset( $_SERVER['SERVER_PORT'] ) && $_SERVER['SERVER_PORT'] == 443 ) ||
		     ( isset( $_SERVER['HTTP_X_FORWARDED_PORT'] ) && $_SERVER['HTTP_X_FORWARDED_PORT'] == 443 )
		) {
			self::$protocol = "https://";
		} else {
			self::$protocol = "http://";
		}

		$PathInfo = pathinfo( $_SERVER['PHP_SELF'] );

		$index = basename( $_SERVER["SCRIPT_FILENAME"], '.php' ) . '.php';
		Config::set( 'index', $index );

		if ( strpos( $PathInfo['dirname'], '/' . $index ) > 0 ) {
			$StrLimit = strpos( $PathInfo['dirname'], '/' . $index );
		} elseif ( $PathInfo['dirname'] == '/' . $index ) {
			$StrLimit = 0;
		} else {
			$StrLimit = strlen( $PathInfo['dirname'] );
		}

		if ( php_sapi_name() == 'cli-server' ) {
			self::$BaseUrl = self::$protocol . $_SERVER['HTTP_HOST'] . '/';
		} else if ( php_sapi_name() == 'cli' ) {
			self::$params = $_SERVER['argv'];
			chdir( self::$BasePath );
			self::$BaseUrl = self::$BasePath;
		} else {

			/**
			 * ID: Terkadang terdapat masalah bagian base url, kamu dapat mengedit bagian ini. Biasanya masalah pada
			 *     $PathInfo['dirname']
			 * EN: Sometimes have a problem in base url section, you can editi this section. normally at
			 *     $PathInfo['dirname']
			 */
			self::$BaseUrl = self::$protocol . $_SERVER['HTTP_HOST'] . substr( $PathInfo['dirname'], 0, $StrLimit );

			if ( substr( self::$BaseUrl, - 1, 1 ) != '/' ) {
				self::$BaseUrl .= '/';
			}

		}

		if ( php_sapi_name() == 'cli' ) {
			$ResultSegment = $_SERVER['argv'];
			array_shift( $ResultSegment );

			self::$params     = $ResultSegment;
			self::$RealParams = self::$params;
			self::$ParamsStr  = implode( '/', $ResultSegment );
		} else {
            $path = str_replace($_SERVER['SCRIPT_NAME'], '', $_SERVER['PHP_SELF']);

            if (substr($path, 0, 1) == '/' && strlen($path) > 1) {
                $path = substr($path, 1);
            }

			$segments = explode( '/', $path );

			if ( $segments[ count( $segments ) - 1 ] == '' && count( $segments ) > 1 ) {
				unset( $segments[ count( $segments ) - 1 ] );
			}

			$ResultSegment = array();

			while ( list( $key, $seg ) = each( $segments ) ) {

				if ( $segments[ $key ] != $index && $seg != '' ) {
					array_push( $ResultSegment, urldecode( $seg ) );
				}
			}

			self::$ParamsStr  = implode( '/', $ResultSegment );
			self::$params     = $ResultSegment;
			self::$RealParams = self::$params;
		}

		unset( $StrLimit );
		unset( $PathInfo );

	}
1022930
public function init()
    {
        $event = new ContextPaneEvent($this);

        $this->dispatcher->dispatch(ContextPaneEvent::EVENT_INIT, $event);
    }
721276
private function init()
    {
        foreach ($this->get(Registry::class)->get('services', []) as $name => $definition) {
            $this->set($name, $definition);
        }
    }
564340
private function init() {
		$this->headers['Date'] = date('r');
		$allowReply = true;
		if( defined('REPLYEMAIL') ) {
			$sendEmail = REPLYEMAIL;
			$allowReply = false;
		} else if( defined('ADMINEMAIL') ) {
			$sendEmail = ADMINEMAIL;
		} else {
			return;
		}
		if( defined('SITENAME') ) {
			$this->setSender($sendEmail, SITENAME, $allowReply);
		} else {
			$this->setSender($sendEmail, null, $allowReply);
		}
	}
355036
public function init()
    {
        if ($this->isEnabled()) {
            $this->client = \PHPDaemon\Clients\IRC\Pool::getInstance();
        }
    }
1186540
protected function init()
    {
        $this->data = new Collection();

        if ($this->defaultFile) {
            $file = $this->buildLangFilePath($this->defaultFile . '.' . $this->format);

            if (is_file($file)) {
                $this->data->load($file, $this->format);
            }
        }
    }
355883
static function Init()
	{
		require_once 'verysimple/Phreeze/Controller.php';
		require_once 'verysimple/HTTP/RequestUtil.php';

		if (!self::$IS_INITIALIZED)
		{
			RequestUtil::NormalizeUrlRewrite();

			Controller::$SmartyViewPrefix = '';
			Controller::$DefaultRedirectMode = 'header';

			self::$IS_INITIALIZED = true;
		}

	}
1026627
public function init()
    {

        // invoke the parent instance
        parent::init();

        // initialize the prepared statements
        $this->urlRewritesBySkuStmt = $this->getConnection()->prepare($this->loadStatement(SqlStatementKeys::URL_REWRITES_BY_SKU));
    }
988081
public function init()
    {
        $oInput         = Factory::service('Input');
        $iTestingAsUser = $oInput->header(Testing::TEST_HEADER_USER_NAME);

        if (Environment::not(Environment::ENV_PROD) && $iTestingAsUser) {

            $oUser = $this->getById($iTestingAsUser);
            if (empty($oUser)) {
                set_status_header(500);
                ErrorHandler::halt('Not a valid user ID');
            }
            $this->setLoginData($oUser->id);

        } else {

            //  Refresh user's session
            $this->refreshSession();

            //  If no user is logged in, see if there's a remembered user to be logged in
            if (!$this->isLoggedIn()) {
                $this->loginRememberedUser();
            }
        }
    }
541264
public function initialize()
    {
        if (empty($this->columnFilters)) {
            return;
        }

        $this->validNumberOfFilters();

        foreach ($this->all() as $filter) {
            if ($filter instanceof Initializable) {
                $filter->initialize();
            }
        }

        $this->validNumberOfFilters();

        $filters = collect($this->columnFilters);

        if ($filters->last() === null) {
            $filters->pop();
            $filters->push(new Control());
        }

        $this->columnFilters = $filters;

        $this->prepareView();
    }
41438
public function init()
    {
        $this->header('Content-Type: text/plain');

        $this->proc = new \PHPDaemon\Core\ShellCommand();
        $this->proc->onReadData(function ($stream, $data) {
            echo $data;
        });
        $this->proc->onEOF(function ($stream) {
            $this->wakeup();
        });
        $this->proc->nice(256);
        $this->proc->execute('/bin/ls -l /tmp');
    }
494116
private function initialize()
    {

        if (is_file($file = getcwd().'/vendor/autoload.php')) {
            include_once $file;
        }
        $functions = spl_autoload_functions();
        foreach ($functions as $loader) {
            if (is_array($loader)) {
                $ob = $loader[0];
                if (is_object($ob)) {
                    $this->addAutoloader($ob);
                }
            }
        }
    }