@param PresentationModel $presentationModel
@param string            $label

@return void
344827
private function presentationModel(PresentationModel $presentationModel, string $label = ''): void
    {
        if ($label === '') {
            $label = $presentationModel->getName();
        }

        $this->group($label, false);
        $this->value($presentationModel->getName(), 'name');

        if ($presentationModel instanceof HasPresenterInterface) {
            $this->value($presentationModel->getPresenterName(), 'presenter');
        }

        $this->iterable($presentationModel->getVariables(), 'variables');
        $this->groupEnd();
    }
1086546
public static function addMessage($message, $label = 'info', $isString = true): void
    {
        if (self::$debugbar instanceof StandardDebugBar) {
            $collector = self::$debugbar->getCollector('messages');

            if ($collector instanceof MessagesCollector) {
                $collector->addMessage($message, $label, $isString);
            }
        }
    }
360004
protected function prepareRenderLabel($label, $spot)
    {
        if (!is_object($label)) {
            $label = $this->add(new Label(), $spot)
                ->set($label);
        } else {
            $this->add($label, $spot);
        }

        if ($label->ui != 'label') {
            $label->addClass('label');
        }

        return $label;
    }
985934
protected function renderLabelParts ($label = null, $options = [])
		{
			parent::renderLabelParts($label, $options);
			if (!empty($this->parts[ '{labelTitle}' ]))
				$this->parts[ '{labelTitle}' ] = Yii::tr($this->parts[ '{labelTitle}' ]);
		}
841686
public static function unload(ViewModel $viewmodel) {

		if(true === isset(static :: $views[$viewmodel -> getIdentifier()])) {
			unset(static :: $views[$viewmodel -> getIdentifier()]);
		}
	}
626681
protected function applicationForm(Fieldset $fieldset, Fluent $model): void
    {
        $fieldset->control('text', 'site_name')
            ->label(\trans('orchestra/foundation::label.name'))
            ->value(\data_get($model, 'site.name'))
            ->attributes(['autocomplete' => 'off']);
    }
383631
public function email(string $name, string $label) : ContentGroupDefiner
    {
        $contentGroup = new ContentGroupDefinition($name, $label);

        $this->contentGroups[$name] = $contentGroup;

        return new ContentGroupDefiner($contentGroup);
    }
901848
protected function handleGetMutatorColumn($method, $label)
    {
        if ($this->model()->eloquent()->hasGetMutator($method)) {
            return $this->addColumn($method, $label);
        }

        return false;
    }
1372095
public function addPlanPage($label)
    {
        $infoPage = $this->addContainer($label);

        $page = $infoPage->addPage($this->_('Track Summary'), 'pr.plan.summary', 'summary', 'index');
        $page->addAutofilterAction();
        $page->addExportAction();

        $page = $infoPage->addPage($this->_('Track Compliance'), 'pr.plan.compliance', 'compliance', 'index');
        $page->addAutofilterAction();
        $page->addExportAction();

        $page = $infoPage->addPage($this->_('Track Field Utilization'), 'pr.plan.fields', 'field-report', 'index');
        $page->addAutofilterAction();
        $page->addExportAction();

        $page = $infoPage->addPage($this->_('Track Field Content'), 'pr.plan.fields', 'field-overview', 'index');
        $page->addAutofilterAction();
        $page->addExportAction();

        $plans[] = $infoPage->addPage($this->_('By period'), 'pr.plan.overview', 'overview-plan', 'index');
        $plans[] = $infoPage->addPage($this->_('By token'), 'pr.plan.token', 'token-plan', 'index');
        $plans[] = $infoPage->addPage($this->_('By respondent'), 'pr.plan.respondent', 'respondent-plan', 'index');

        foreach ($plans as $plan) {
            $plan->addAutofilterAction();
            $plan->addAction($this->_('Bulk mail'), 'pr.token.bulkmail', 'email', array('routeReset' => false));
            $plan->addExportAction();
        }

        $page = $infoPage->addPage($this->_('Respondent status'), 'pr.plan.consent', 'consent-plan', 'index');
        $page->addShowAction();
        $page->addExportAction();

        return $infoPage;
    }
676302
public function view(string $name, string $label) : TableViewAndReorderDefiner
    {
        $dataSource  = $this->finalizeTableStructure();
        $viewDefiner = new TableViewAndReorderDefiner(
                $dataSource,
                $name,
                $label,
                function (callable $reorderCallback, array $permissions = [], $actionName = null) use ($name) {
                    $this->definerReorderAction($name, $reorderCallback, $permissions, $actionName);
                }
        );

        $viewDefiner->load(IReadModule::SUMMARY_TABLE_ID_COLUMN);

        $this->viewDefiners[] = $viewDefiner;

        return $viewDefiner;
    }
861278
protected function handleTableColumn($method, $label)
    {
        if (empty($this->dbColumns)) {
            $this->setDbColumns();
        }

        if ($this->dbColumns->has($method)) {
            return $this->addColumn($method, $label);
        }

        return false;
    }
1058650
public function addFields($fields=NULL, $label=NULL) {
		if (isset($fields)) {
			if (!$fields instanceof HtmlFormFields) {
				if (!\is_array($fields)) {
					$fields=\func_get_args();
					$end=\end($fields);
					if (\is_string($end)) {
						$label=$end;
						\array_pop($fields);
					} else
						$label=NULL;
				}
				$this->_fields=\array_merge($this->_fields, $fields);
				$fields=new HtmlFormFields("fields-" . $this->identifier . "-" . $this->count(), $fields);
			}
			if (isset($label)){
				$fields->wrap("<div class='field'><label>{$label}</label>","</div>");
			}
		} else {
			$fields=new HtmlFormFields("fields-" . $this->identifier . "-" . $this->count());
		}
		$this->addItem($fields);
		return $fields;
	}
871713
public function configureShowFields(ShowMapper $showMapper)
    {
        $array = $showMapper->getAdmin()->getFormFieldDescriptions();

        foreach ($array as $item) {
            if (!$showMapper->has($item->getName())) {
                $showMapper->add($item->getName());
            }
        }
    }
323259
public function afterInitialize(Event $event, ModelsManager $manager, $model)
    {
        //Reflector
        /** @var \Phalcon\Annotations\Reflection $reflector */
        $reflector = $this->annotations->get($model);
        /**
         * Read the annotations in the class' docblock
         */
        $annotations = $reflector->getClassAnnotations();
        if ($annotations) {
            /**
             * Traverse the annotations
             */
            foreach ($annotations as $annotation) {
                switch ($annotation->getName()) {
                    /**
                     * Initializes the model's source
                     */
                    case 'Source':
                        $arguments = $annotation->getArguments();
                        $model->setConnectionService($arguments[0]);
                        $manager->setModelSource($model, $arguments[1]);
                        break;
                    /**
                     * Initializes Has-Many relations
                     */
                    case 'HasMany':
                        $arguments = $annotation->getArguments();
                        if (!isset($arguments[3])) {
                            $arguments[3] = null;
                        }
                        $manager->addHasMany($model, $arguments[0], $arguments[1], $arguments[2], $arguments[3]);
                        break;
                    /**
                     * Initializes Has-Many-To-Many relations
                     */
                    case 'HasManyToMany':
                        $arguments = $annotation->getArguments();
                        if (!isset($arguments[6])) {
                            $arguments[6] = null;
                        }
                        $manager->addHasManyToMany($model, $arguments[0], $arguments[1], $arguments[2], $arguments[3], $arguments[4], $arguments[5], $arguments[6]);
                        break;
                    /**
                     * Initializes Has-One relations
                     */
                    case 'HasOne':
                        $arguments = $annotation->getArguments();
                        if (!isset($arguments[3])) {
                            $arguments[3] = null;
                        }
                        $manager->addHasOne($model, $arguments[0], $arguments[1], $arguments[2], $arguments[3]);
                        break;
                    /**
                     * Initializes Has-Many relations
                     */
                    case 'BelongsTo':
                        $arguments = $annotation->getArguments();
                        if (!isset($arguments[3])) {
                            $arguments[3] = null;
                        }
                        $manager->addBelongsTo($model, $arguments[0], $arguments[1], $arguments[2], $arguments[3]);
                        break;
                }
            }
        }
    }
379266
private function value($value, string $label = ''): void
    {
        if (is_scalar($value)) {
            $this->scalar($value, $label);
        } elseif (is_array($value)) {
            $this->iterable($value, $label);
        } elseif (is_object($value)) {
            $this->object($value, $label);
        }
    }
959847
protected function handleGetMutatorField($method, $label)
    {
        if (is_null($this->model)) {
            return false;
        }

        if ($this->model->hasGetMutator($method)) {
            return $this->addField($method, $label);
        }

        return false;
    }
179756
public function render(Model $model, $source)
    {
        $value = $this->resolveModelSource($model, $source);

        if (null === $value) {
            return null;
        }

        if ($value) {
            return cms_trans('common.boolean.true');
        }

        return cms_trans('common.boolean.false');
    }