Handle pane for dashboard page.

@return void
172344
public function compose()
    {
        $pane = $this->widget->make('pane.orchestra');

        $posts = Content::post()->publish()->latest(10)->get();

        if ($posts->isEmpty()) {
            return;
        }

        $pane->add('story-latest-posts')
            ->attributes(['class' => 'six columns widget'])
            ->title('Latest Post')
            ->content(view('orchestra/story::widgets.latest-posts')->with('posts', $posts));
    }
402411
public function handle()
    {
        if (!$this->passesAuthorization()) {
            return;
        }
        $uri        = uri();
        $handler    = $this->createMenu();
        $handler->uri($uri);
        $components = app('ui-components')->findAllByResource($uri);



        foreach ($components as $component) {
            if (array_get($component, 'data.dispatchable') === false) {
                continue;
            }
            if (!$component['name']) {
                continue;
            }
            $this->createItem($component);
        }
    }
1332551
public function actionManage($page=null) 
	{
		$pageTitle = Yii::t('phrase', 'Page Views');
		if($page != null) {
			$data = OmmuPages::model()->findByPk($page);
			$pageTitle = Yii::t('phrase', 'Page Views: $page_title', array ('$page_title'=>$data->title->message));
		}
		
		$model=new OmmuPageViews('search');
		$model->unsetAttributes();	// clear any default values
		if(isset($_GET['OmmuPageViews'])) {
			$model->attributes=$_GET['OmmuPageViews'];
		}

		$columns = $model->getGridColumn($this->gridColumnTemp());

		$this->pageTitle = $pageTitle;
		$this->pageDescription = '';
		$this->pageMeta = '';
		$this->render('admin_manage', array(
			'model'=>$model,
			'columns' => $columns,
		));
	}
871431
public function dashboardAction()
    {
        $translator = $this->container->get('translator');

        /** @var \Wanjee\Shuwee\AdminBundle\Manager\AdminManager $adminManager */
        $adminManager = $this->get('shuwee_admin.admin_manager');

        $sections = [];
        /** @var \Wanjee\Shuwee\AdminBundle\Admin\AdminInterface $admin */
        foreach ($adminManager->getAdmins() as $alias => $admin) {
            $section = $admin->getOption('menu_section');
            if (!is_string($section)) {
                throw new \Exception(
                    sprintf('"menu_section" option must return a string, %s returned.', gettype($section))
                );
            }

            // Create parent menu item if it does not exist yet
            if (!isset($sections[$section])) {
                $sections[$section]['label'] = ucfirst(
                    $translator->trans($section, [], 'ShuweeAdminBundle')
                );
                $sections[$section]['admins'] = [];
            }

            $sections[$section]['admins'][] = $admin;
        }

        return $this->render(
            'ShuweeAdminBundle:Admin:dashboard.html.twig',
            [
                'sections' => $sections,
            ]
        );
    }
1012382
public function showAddIncident()
    {
        return View::make('dashboard.incidents.add')
            ->withPageTitle(trans('dashboard.incidents.add.title').' - '.trans('dashboard.dashboard'))
            ->withComponentsInGroups(ComponentGroup::with('components')->get())
            ->withComponentsOutGroups(Component::where('group_id', '=', 0)->get())
            ->withNotificationsEnabled($this->system->canNotifySubscribers())
            ->withIncidentTemplates(IncidentTemplate::all());
    }
1253926
public function handleRequest()
    {
        try {
            $this->response = parent::handleRequest();
        } catch (HttpException $ex) {
            $this->config->set('page_title', 'Error');

            $view = new View('exception');
            $view->exception = $ex;

            $this->response->setResponseCode($ex->getErrorCode());
            $this->response->setContent($view->render());
        } catch (\Exception $ex) {
            $this->config->set('page_title', 'Error');

            $view = new View('exception');
            $view->exception = $ex;

            $this->response->setResponseCode(500);
            $this->response->setContent($view->render());
        }

        if ($this->response->hasLayout() && $this->controller->layout) {
            $this->setLayoutVariables($this->controller->layout);

            $this->controller->layout->content  = $this->response->getContent();
            $this->response->setContent($this->controller->layout->render());
        }

        return $this->response;
    }
153847
public function admin_handler() {

		$component = str_replace( 'pods-component-', '', pods_v_sanitized( 'page' ) );

		if ( isset( $this->components[ $component ] ) && isset( $this->components[ $component ]['object'] ) && is_object( $this->components[ $component ]['object'] ) ) {
			// Component init
			if ( method_exists( $this->components[ $component ]['object'], 'init' ) ) {
				$this->components[ $component ]['object']->init( $this->settings['components'][ $component ], $component );
			}

			if ( method_exists( $this->components[ $component ]['object'], 'admin' ) ) {
				// Component Admin handler
				$this->components[ $component ]['object']->admin( $this->settings['components'][ $component ], $component );
			} elseif ( method_exists( $this->components[ $component ]['object'], 'options' ) ) {
				// Built-in Admin Handler
				$this->admin( $this->components[ $component ]['object']->options( $this->settings['components'][ $component ] ), $this->settings['components'][ $component ], $component );
			}
		}
	}
1217522
public function handle()
    {
        $cachedViews = storage_path('framework/views/');
        $files = glob($cachedViews.'*');
        foreach($files as $file) {
            if(is_file($file)) {
                @unlink($file);
                $this->info("File $file deleted!");
            }
        }
    }
419367
public function handleLogoutTryRole(): void
	{
		if (!empty($this->id)) {
			unset($this->session[$this->id]);
			$this->id = null;
		}
		$this->presenter->redirect('this');
	}
244506
public function handle_submit() {

		if ( isset( $this->child['config'] ) && $this->child['config']->is_submitted() ) {
			$data = $this->child['config']->get_value();
			if ( isset( $data['config_foot'] ) ) {
				unset( $data['config_foot'] ); // default footer has no values. override to include values in it.
			}
			do_action( 'uix_control_item_submit_' . $this->slug, $data, $this );
		}
	}
481041
public function process()
	{
		try
		{
			$view = $this->getView();

			if( ( $id = $view->param( 'sub_id' ) ) != null && $view->param( 'sub_action' ) === 'cancel' ) {
				\Aimeos\Controller\Frontend::create( $this->getContext(), 'subscription' )->cancel( $id );
			}

			parent::process();
		}
		catch( \Exception $e )
		{
			$this->logException( $e );
		}
	}
818655
public function doBefore() {
        if(count($this->_controller->getViews()) == 0) {
            $l = FLayout::create('main_layout.php', $this->_app);
            $this->_controller->setLayout($l);
        }
    }
49063
protected function handleCreateView()
    {
        $input = $this->getCommandInput();
        $resources = Resource::fromFile($input->resourceFile, $input->languageFileName);
        $destenationFile = $this->getDestinationViewFullname($input->viewsDirectory, $input->prefix);

        if ($this->canCreateView($destenationFile, $input->force, $resources)) {
            $stub = $this->getStub();

            $this->createLanguageFile($input->languageFileName, $input->resourceFile, $input->modelName)
                ->createMissingViews($input)
                ->replaceCommonTemplates($stub, $input, $resources->fields)
                ->replaceFileUpload($stub, $resources->fields)
                ->replacePrimaryKey($stub, $this->getPrimaryKeyName($resources->fields))
                ->replaceModelHeader($stub, $this->getHeaderFieldAccessor($resources->fields, $input->modelName))
                ->replaceFormId($stub, $this->getFormId($input->modelName))
                ->replaceFormName($stub, $this->getFormName($input->modelName))
                ->createFile($destenationFile, $stub)
                ->info('Edit view was crafted successfully.');
        }
    }
96188
def _auto_adjust_panel_spans(dashboard):
    '''
    '''
    for row in dashboard.get('rows', []):
        levels = []
        current_level = []
        levels.append(current_level)
        for panel in row.get('panels', []):
            current_level_span = sum(panel.get('span', _DEFAULT_PANEL_SPAN)
                                     for panel in current_level)
            span = panel.get('span', _DEFAULT_PANEL_SPAN)
            if current_level_span + span > _FULL_LEVEL_SPAN:
                current_level = [panel]
                levels.append(current_level)
            else:
                current_level.append(panel)

        for level in levels:
            specified_panels = [panel for panel in level if 'span' in panel]
            unspecified_panels = [panel for panel in level
                                  if 'span' not in panel]
            if not unspecified_panels:
                continue

            specified_span = sum(panel['span'] for panel in specified_panels)
            available_span = _FULL_LEVEL_SPAN - specified_span
            auto_span = float(available_span) / len(unspecified_panels)
            for panel in unspecified_panels:
                panel['span'] = auto_span
1319994
public function process()
	{
		$view = $this->getView();
		$context = $this->getContext();
		$ids = (array) $view->param( 'wat_id', [] );

		try
		{
			if( $context->getUserId() != null && !empty( $ids ) )
			{
				switch( $view->param( 'wat_action' ) )
				{
					case 'add':
						$this->addItems( $view, $ids ); break;
					case 'edit':
						$this->editItems( $view, $ids ); break;
					case 'delete':
						$this->deleteItems( $view, $ids ); break;
				}
			}

			parent::process();
		}
		catch( \Aimeos\MShop\Exception $e )
		{
			$error = array( $context->getI18n()->dt( 'mshop', $e->getMessage() ) );
			$view->watchErrorList = $view->get( 'watchErrorList', [] ) + $error;
		}
		catch( \Aimeos\Controller\Frontend\Exception $e )
		{
			$error = array( $context->getI18n()->dt( 'controller/frontend', $e->getMessage() ) );
			$view->watchErrorList = $view->get( 'watchErrorList', [] ) + $error;
		}
		catch( \Aimeos\Client\Html\Exception $e )
		{
			$error = array( $context->getI18n()->dt( 'client', $e->getMessage() ) );
			$view->watchErrorList = $view->get( 'watchErrorList', [] ) + $error;
		}
		catch( \Exception $e )
		{
			$error = array( $context->getI18n()->dt( 'client', 'A non-recoverable error occured' ) );
			$view->watchErrorList = $view->get( 'watchErrorList', [] ) + $error;
			$this->logException( $e );
		}
	}
643877
public function dashboardAction(): Response
    {
        $editForm = $this->formFactory->contentEdit(
            new ContentEditData()
        );

        return $this->render('@ezdesign/dashboard/dashboard.html.twig', [
            'form_edit' => $editForm->createView(),
            'can_create_content' => $this->permissionResolver->hasAccess('content', 'create'),
        ]);
    }
988339
public function dashboardAction()
    {
        /* @var Request $request */
        $request = $this->getRequest();
        $params = $request->getQuery();
        $isRecruiter = $this->Acl()->isRole('recruiter');
        if ($isRecruiter) {
            $params->set('by', 'me');
        }

        //default sorting
        if (!isset($params['sort'])) {
            $params['sort']="-date";
        }
        $params->count = 5;
        $params->pageRange=5;

        $this->paginationParams()->setParams('Applications\Index', $params);

        $paginator = $this->paginator('Applications', $params->toArray());
     
        return array(
            'script' => 'applications/index/dashboard',
            'applications' => $paginator
        );
    }