[init description]
@return bool the result of the parent init call
509116
public function init() {		
		\frenzelgmbh\cmcategories\categoriesAsset::register(\Yii::$app->view);
		return parent::init();
	}
1072174
protected function init() {
		// Normalize directory separator for windows
		if (DIRECTORY_SEPARATOR !== '/') {
			foreach(array('path', 'tmbPath', 'quarantine') as $key) {
				if ($this->options[$key]) {
					$this->options[$key] = str_replace('/', DIRECTORY_SEPARATOR, $this->options[$key]);
				}
			}
		}
		return true;
	}
321062
public function init() {

		parent::init();

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

		// Config
		$this->title		= 'Group';
		$this->type			= CmnGlobal::TYPE_GROUP;
		$this->templateType	= CmnGlobal::TYPE_GROUP;
		$this->apixBase		= 'community/group/category';
		$this->parentPath	= '/community/group/category';

		// Sidebar
		$this->sidebar = [ 'parent' => 'sidebar-community', 'child' => 'group-category' ];

		// Return Url
		$this->returnUrl = Url::previous( 'group-categories' );
		$this->returnUrl = isset( $this->returnUrl ) ? $this->returnUrl : Url::toRoute( [ '/community/group/category/all' ], true );

		// Breadcrumbs
		$this->breadcrumbs	= [
			'base' => [
				[ 'label' => 'Home', 'url' => Url::toRoute( '/dashboard' ) ]
			],
			'all' => [ [ 'label' => 'Group Categories' ] ],
			'create' => [ [ 'label' => 'Group Categories', 'url' => $this->returnUrl ], [ 'label' => 'Add' ] ],
			'update' => [ [ 'label' => 'Group Categories', 'url' => $this->returnUrl ], [ 'label' => 'Update' ] ],
			'delete' => [ [ 'label' => 'Group Categories', 'url' => $this->returnUrl ], [ 'label' => 'Delete' ] ],
			'gallery' => [ [ 'label' => 'Group Categories', 'url' => $this->returnUrl ], [ 'label' => 'Gallery' ] ],
			'data' => [ [ 'label' => 'Group Categories', 'url' => $this->returnUrl ], [ 'label' => 'Data' ] ],
			'config' => [ [ 'label' => 'Group Categories', 'url' => $this->returnUrl ], [ 'label' => 'Config' ] ],
			'settings' => [ [ 'label' => 'Group Categories', 'url' => $this->returnUrl ], [ 'label' => 'Settings' ] ]
		];
	}
1296028
public static function init(){
		if(self::$initialized){
			return true;
			}
		$surl=$_SERVER["REQUEST_URI"];
		if(empty($surl)){
			return false;
			}
		$squery=parse_url($surl,PHP_URL_QUERY);
			if(empty($squery)){
			return false;
			}
		//Parsing string "a=1&b=3&c=abc" into array
		$query=array();
		parse_str($squery,$query);
		self::$variables=$query;
		self::$initialized=true;
		return true;
		}
808785
public function init() {

        parent::init();

		// Permission
		$this->crudPermission = FormsGlobal::PERM_FORM_ADMIN;

		// Config
		$this->type		= CoreGlobal::TYPE_FORM;
		$this->apixBase	= 'core/template';

		// Sidebar
		$this->sidebar = [ 'parent' => 'sidebar-form', 'child' => 'template' ];

		// Return Url
		$this->returnUrl = Url::previous( 'templates' );
		$this->returnUrl = isset( $this->returnUrl ) ? $this->returnUrl : Url::toRoute( [ '/forms/form/templates/all' ], true );

		// Breadcrumbs
		$this->breadcrumbs = [
			'base' => [
				[ 'label' => 'Home', 'url' => Url::toRoute( '/dashboard' ) ]
			],
			'all' => [ [ 'label' => 'Form Templates' ] ],
			'create' => [ [ 'label' => 'Form Templates', 'url' => $this->returnUrl ], [ 'label' => 'Add' ] ],
			'update' => [ [ 'label' => 'Form Templates', 'url' => $this->returnUrl ], [ 'label' => 'Update' ] ],
			'delete' => [ [ 'label' => 'Form Templates', 'url' => $this->returnUrl ], [ 'label' => 'Delete' ] ]
		];
	}
721704
public function init() {

        parent::init();

		// Config
		$this->type		= CmnGlobal::TYPE_COMMUNITY;
		$this->system	= false;

		// Sidebar
		$this->sidebar = [ 'parent' => 'sidebar-community', 'child' => 'permission' ];

		// Return Url
		$this->returnUrl = Url::previous( 'community-permissions' );
		$this->returnUrl = isset( $this->returnUrl ) ? $this->returnUrl : Url::toRoute( [ '/community/permission/all' ], true );

		// Breadcrumbs
		$this->breadcrumbs = [
			'base' => [
				[ 'label' => 'Home', 'url' => Url::toRoute( '/dashboard' ) ]
			],
			'all' => [ [ 'label' => 'Community Permissions' ] ],
			'create' => [ [ 'label' => 'Community Permissions', 'url' => $this->returnUrl ], [ 'label' => 'Add' ] ],
			'update' => [ [ 'label' => 'Community Permissions', 'url' => $this->returnUrl ], [ 'label' => 'Update' ] ],
			'delete' => [ [ 'label' => 'Community Permissions', 'url' => $this->returnUrl ], [ 'label' => 'Delete' ] ]
		];
	}
1251895
public function init() {

        parent::init();

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

		// Config
		$this->parentType	= CmsGlobal::TYPE_POST;
		$this->commentType	= ModelComment::TYPE_COMMENT;
		$this->apixBase		= 'cms/page/comment';
		$this->parentUrl	= '/cms/post/update?id=';
		$this->urlKey		= 'post-comments';

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

		// Sidebar
		$this->sidebar = [ 'parent' => 'sidebar-cms', 'child' => 'post-comments' ];

		// Return Url
		$this->returnUrl = Url::previous( $this->urlKey );
		$this->returnUrl = isset( $this->returnUrl ) ? $this->returnUrl : Url::toRoute( [ '/cms/post/comment/all' ], true );

		// All Url
		$allUrl = Url::previous( 'posts' );
		$allUrl = isset( $allUrl ) ? $allUrl : Url::toRoute( [ '/cms/post/all' ], true );

		// Breadcrumbs
		$this->breadcrumbs	= [
			'base' => [
				[ 'label' => 'Home', 'url' => Url::toRoute( '/dashboard' ) ],
				[ 'label' => 'Posts', 'url' =>  $allUrl ]
			],
			'all' => [ [ 'label' => 'Post Comments' ] ],
			'create' => [ [ 'label' => 'Post Comments', 'url' => $this->returnUrl ], [ 'label' => 'Add' ] ],
			'update' => [ [ 'label' => 'Post Comments', 'url' => $this->returnUrl ], [ 'label' => 'Update' ] ],
			'delete' => [ [ 'label' => 'Post Comments', 'url' => $this->returnUrl ], [ 'label' => 'Delete' ] ]
		];
	}
849453
protected function _init()
    {
        if (!parent::_init()) {
            return false;
        }

        if (!Plugin::exists($this->_plugin['name'])) {
            $this->err(__d('installer', 'The plugin "{0}" is not installed, you cannot update a plugin that is not installed in your system.', $this->_plugin['name']));

            return false;
        } else {
            $plugin = plugin($this->_plugin['name']);
            if (!$this->canBeDeleted($plugin->path)) {
                $this->err(__d('installer', 'Unable to update, please check write permissions for "{0}".', $plugin->path));

                return false;
            }
        }

        return true;
    }
69130
protected function init(): bool
    {
        if (!isset($_SESSION[$this->name])) {
            $_SESSION[$this->name] = [];
        }
        return true;
    }
290608
function init() {
        $this->does_generate = ACTION_NONE;
        $this->title     = strtolower(get_class($this));
        $this->str       = array();
        $this->output    = NULL;
        $this->errormsg  = NULL;
        $this->subaction = NULL;
        $this->sesskey_protected = true;
    }
445198
public static function _init() 
	{	
		if ( \ClanCats::in_development() ) 
		{ 
			// add a hook to the main resposne
			\CCEvent::mind( 'response.output', function( $output ) {
				
				if ( strpos( $output, '</body>' ) === false ) 
				{
					return $output;
				}
				
				$table = \UI\Table::create( array(
					 'style'		=> array(
					 	'width'	=> '100%',
					 ),
					 'cellpadding' 	=> '5',
					 'class'			=> 'table debug-table debug-table-db',
				));
				
				$table->header( array( '#', 'query' ) );
				
				foreach( static::log() as $key => $item )
				{
					$table->row( array( 
						$key+1,
						$item
					));
				}
			
				return str_replace( '</body>', $table."\n</body>", $output );
			});
		}
	}
56676
protected function Init()
    {
        $sql = Access::SqlBuilder();
        $tbl = Site::Schema()->Table();
        $order = $sql->OrderList($sql->OrderAsc($tbl->Field('Name')));
        $sites = Site::Schema()->Fetch(false, null, $order);
        $this->sites = array();
        foreach ($sites as $site)
        {
            if (self::Guard()->Allow(BackendAction::Read(), $site))
            {
                $this->sites[] = $site;
            }
        }
        return parent::Init();
    }
1126542
protected function Init()
    {
        $select = ContentSelect::Schema()->ByContent($this->Content());
        $disableValidation = $select->GetDisableFrontendValidation();
        $this->label = $select->GetLabel();
        $this->name = $select->GetName();
        $this->required = $disableValidation ? false : $select->GetRequired();
        $this->value = $this->Value($this->name, $select->GetValue());
        $this->id = $this->CssID() ? $this->CssID(): $this->name;
        $list = new SelectListProvider($select);
        $this->options = $list->ToArray();
        $this->RealizeField($this->name);
        return parent::Init();
    }
1134103
protected function Init()
    {
        $this->repeater = ContentRepeater::Schema()->ByContent($this->content);
        $this->current = $this->tree->FirstChildOf($this->item);
        $this->isEmpty = !$this->current;
        return parent::Init();
    }
773322
public function init()
    {
        parent::init();
        $that = $this;

        if ($this->owner instanceof Controller_Validator) {
            $this->owner->addHook('extraRules', array($this, 'extraRules'));

            return;  // no source, simply extend rules.
        }

        if ((
            $this->owner instanceof \Model ||
            $this->owner instanceof \Form

        ) && !$this->owner->hasMethod('is')) {
            $this->source = $this->owner; // must support set/get interface
            $this->owner->validator = $this;

            $this->source->addMethod('is', function ($m) use ($that) {
                $args = func_get_args();
                array_shift($args);

                call_user_func_array(array($that, 'is'), $args);
                $that->on('beforeSave', null, true);

                return $m;
            });
        }
    }
911533
public function init(): bool
    {
        if (App::$server === null) {
            return false;
        }
        $serverSetting = App::$server->getServerSetting();
        $cronable = (int)$serverSetting['cronable'];
        if ($cronable !== 1) {
            return false;
        }
        $this->initTasks();
        $this->initLoad();
        return true;
    }
1338761
public function init()
    {
        ob_start();
        ob_implicit_flush(false);

        //checks for the element id
        if (!isset($this->options['id'])) {
            $this->options['id'] = $this->getId();
        }
        
        parent::init();
    }