當前位置: 首頁>>代碼示例>>PHP>>正文


PHP mdump函數代碼示例

本文整理匯總了PHP中mdump函數的典型用法代碼示例。如果您正苦於以下問題:PHP mdump函數的具體用法?PHP mdump怎麽用?PHP mdump使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了mdump函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: formPreferences

 public function formPreferences()
 {
     $user = new User($this->data->id);
     $this->data->title = $user->getLogin() . ' :: Preferences';
     $this->data->save = "@fnbr20/auth/user/savePreferences|formPreferences";
     $userLevel = $user->getUserLevel();
     if ($userLevel == 'BEGINNER') {
         $this->data->isBeginner = true;
         $this->data->idJunior = $user->getConfigData('fnbr20JuniorUser');
         $this->data->junior = $user->getUsersOfLevel('JUNIOR');
         mdump($this->data);
     }
     if ($userLevel == 'JUNIOR') {
         $this->data->isJunior = true;
         $this->data->idSenior = $user->getConfigData('fnbr20SeniorUser');
         $this->data->senior = $user->getUsersOfLevel('SENIOR');
         mdump($this->data);
     }
     if ($userLevel == 'SENIOR') {
         $this->data->isSenior = true;
         $this->data->idMaster = $user->getConfigData('fnbr20MasterUser');
         $this->data->master = $user->getUsersOfLevel('MASTER');
         mdump($this->data);
     }
     $this->data->userLevel = $userLevel;
     $this->render();
 }
開發者ID:elymatos,項目名稱:expressive_fnbr,代碼行數:27,代碼來源:UserController.php

示例2: currency

 public function currency()
 {
     $value = 123456.78;
     $this->data->value = 'Valor = ' . $value;
     $currency = Manager::currency($value);
     $this->data->currency = 'Currency = ' . $currency;
     $formated = $currency->format();
     $this->data->formated = 'Formatado = ' . $formated;
     $currency = Manager::currency($formated);
     $value = $currency->getValue();
     $this->data->getValue = 'Get Value = ' . $value;
     $currency->setValue(87654321.09);
     $this->data->setValue = 'Após setValue = ' . $currency;
     $currency->setValue(-654.3200000000001);
     $this->data->setValueNeg = 'Após setValue negativo = ' . $currency;
     $currency = Manager::currency('-R$ 123.345,67');
     $value = $currency->getValue();
     $this->data->valueNeg = 'Valor negativo = ' . $value;
     $valor1 = Manager::currency(10.9008900015);
     $valor2 = Manager::currency(10.9008900017);
     mdump($valor1->getValue() == $valor2->getValue() ? 'Valores iguais' : 'Valores diferentes');
     $valor1 = Manager::currency(10.9018900015);
     $valor2 = Manager::currency(10.9068900017);
     mdump($valor1->getValue() == $valor2->getValue() ? 'Valores iguais' : 'Valores diferentes');
     $this->render();
 }
開發者ID:joshuacoddingyou,項目名稱:php,代碼行數:26,代碼來源:typesController.php

示例3: generateFields

 public function generateFields()
 {
     $fields = '';
     $control = $this->fields;
     if ($control->hasItems()) {
         foreach ($control->controls as $field) {
             mdump($field);
             if ($field->tag == 'mhiddenfield') {
                 $fields .= $field->generate();
             } else {
                 $mfieldlabel = new mfieldlabel(['id' => $field->property->id, 'text' => $field->property->label]);
                 if ($this->property->layout == 'horizontal') {
                     //$mfieldlabel->setClass($this->labelClass);
                 }
                 $label = $mfieldlabel->generate();
                 if ($label) {
                     $formGroup = "<div class=\"mFormColumn\">{$label}</div>" . "<div class=\"mFormColumn\">{$field->generate()}</div>";
                 } else {
                     //$formGroup = "<div class=\"mFormColumn\">{$field->generate()}</div>";
                     $formGroup = "<div class=\"mFormColumn\"></div>" . "<div class=\"mFormColumn\">{$field->generate()}</div>";
                 }
                 if ($field->tag == 'mvcontainer' || $field->tag == 'mhcontainer') {
                     $fields .= "</div>";
                     $fields .= $field->generate();
                     $fields .= "<div class='mFormContainer'>";
                 } else {
                     // usa a classe form-group do bootstrap
                     $fields .= "<div class=\"mFormRow\">{$formGroup}</div>";
                 }
             }
         }
     }
     return $fields;
 }
開發者ID:elymatos,項目名稱:expressive,代碼行數:34,代碼來源:MForm.php

示例4: generateForm

 public function generateForm()
 {
     $this->property->action = $this->property->action ?: Manager::getCurrentURL();
     \Maestro\Utils\MUtil::setIfNull($this->property->method, 'POST');
     \Maestro\Utils\MUtil::setIfNull($this->style->width, "100%");
     $this->property->role = "form";
     $fields = $buttons = $help = $tools = "";
     $fields = $this->generateFields();
     $buttons = $this->generateButtons();
     $help = $this->generateHelp();
     if ($this->tools != NULL) {
         mdump('has tools');
         $tools = $this->generateTools();
     }
     // menubar
     if ($this->property->menubar) {
         $menubar = PainterControl::generate($this->property->menubar);
     }
     // por default, o método de submissão é POST
     \Maestro\Utils\MUtil::setIfNull($this->property->method, "POST");
     if ($this->property->onsubmit) {
         PainterControl::getPage()->onSubmit($this->property->onsubmit, $this->property->id);
     }
     // se o form tem fields com validators, define onSubmit
     $validators = '';
     if (count($this->property->toValidate)) {
         PainterControl::getPage()->onSubmit("\$('#{$this->property->id}').form('validate')", $this->property->id);
         $validators = implode(',', $this->property->bsValidator);
     }
     //mdump($fields);
     // obtem o codigo html via template
     $inner = PainterControl::fetch('painter/formdialog', $this, ['fields' => $fields, 'buttons' => $buttons, 'help' => $help, 'tools' => $tools, 'validators' => $validators, 'menubar' => $menubar]);
     return $inner;
 }
開發者ID:elymatos,項目名稱:expressive_fnbr,代碼行數:34,代碼來源:FormDialog.php

示例5: formNewWindowPost

 public function formNewWindowPost()
 {
     $pessoa = new models\Pessoa($this->data->idPessoa);
     $pessoa->setData($this->data);
     $pessoa->save();
     $this->data->object = $pessoa->getData();
     mdump($this->data->object);
     $this->render();
 }
開發者ID:joshuacoddingyou,項目名稱:php,代碼行數:9,代碼來源:eventdrivenController.php

示例6: main

 public function main()
 {
     $this->data->isMaster = Manager::checkAccess('MASTER', A_EXECUTE) ? 'true' : 'false';
     $editor = MApp::getService('fnbr20', '', 'visualeditor');
     $this->data->relationData = $editor->getAllCxnRelationData();
     mdump($this->data->relationData);
     $this->data->relationEntry = json_encode($this->data->relationData);
     $this->render();
 }
開發者ID:elymatos,項目名稱:expressive_fnbr,代碼行數:9,代碼來源:_CxnController.php

示例7: listForLookup

 public function listForLookup()
 {
     //$colorRepository = new InMemoryColorRepository();
     //$service = new QueryService($colorRepository);
     $queryService = Manager::getContainer()->get('ColorQueryService');
     $filter = (object) ['idColor' => 2];
     $list = $queryService->listForLookup();
     mdump($list);
     $this->render('formLogin');
 }
開發者ID:elymatos,項目名稱:expressive,代碼行數:10,代碼來源:ColorController.php

示例8: formFind

 public function formFind()
 {
     $model = new Pessoa($this->data->id);
     $this->data->object = $model->getData();
     $filter->nome = $this->data->nome . '%';
     $this->data->query = $model->listByFilter($filter)->asQuery();
     mdump($this->data->query->getResult());
     mdump($this->data->query->getColumnNames());
     $this->render();
 }
開發者ID:joshuacoddingyou,項目名稱:php,代碼行數:10,代碼來源:pessoaController.php

示例9: authenticate

 public function authenticate()
 {
     $auth = Manager::getAuth();
     $this->data->result = $auth->authenticate($this->data->user, $this->data->challenge, $this->data->response);
     if ($this->data->result) {
         mdump("++++++++++++");
         $this->redirect(Manager::getURL('dlivro/main'));
     } else {
         $this->renderPrompt('error', 'Login ou senha inválidos. Tente novamente.');
     }
 }
開發者ID:joshuacoddingyou,項目名稱:php,代碼行數:11,代碼來源:mainController.php

示例10: __construct

 function __construct()
 {
     $data = Manager::getData();
     $array = json_decode($data->gridInputExemplo3_data);
     mdump($array);
     parent::__construct('gridInputExemploGrid3', $array, null, '', 0, 1);
     $this->addActionSelect('marca3');
     $this->addColumn(new MObjectGridColumn('id', '', 'left', true, '0%', false));
     $this->addColumn(new MObjectGridColumn('codigoExemplo3', 'Código', 'left', true, '20%', true));
     $this->addColumn(new MObjectGridColumn('descricaoExemplo3', 'Descrição', 'left', true, '80%', true));
     $this->setHasForm('true');
 }
開發者ID:joshuacoddingyou,項目名稱:php,代碼行數:12,代碼來源:gridInputExemplo3.php

示例11: __construct

 public function __construct($id, $basePath)
 {
     $this->id = $id;
     $this->basePath = $basePath;
     mdump('basepath = ' . $basePath);
     mtracestack();
     //$this->loadModules();
     $this->loadControllers();
     $this->loadServices();
     $this->loadComponents();
     $this->loadFilters();
     $this->loadModels();
     //$this->loadMaps();
 }
開發者ID:elymatos,項目名稱:expressive,代碼行數:14,代碼來源:MAppStructure.php

示例12: __invoke

 public function __invoke(ContainerInterface $container, RequestedEntry $entry)
 {
     $repository = $container->get('repository');
     $model = str_replace('Repository', '', $entry->getName());
     if ($repository == 'Doctrine') {
         $em = $container->get('EntityManager');
         //return new \FNBr\Infrastructure\Persistence\Doctrine\Color\DoctrineColorRepository($em);
         mdump("\\FNBr\\Domain\\Model\\{$model}\\{$model}");
         return $em->getRepository("\\FNBr\\Domain\\Model\\{$model}\\{$model}");
     } else {
         //InMemory
         return new \FNBr\Infrastructure\Persistence\InMemory\Color\InMemoryColorRepository();
     }
 }
開發者ID:elymatos,項目名稱:expressive,代碼行數:14,代碼來源:RepositoryFactory.php

示例13: listByFilter

 public function listByFilter($filter)
 {
     mdump($filter);
     $criteria = $this::getCriteria()->select('idPessoa, nome, cpf, dataNascimento, email');
     if ($filter->nome) {
         $criteria->where("nome LIKE '%{$filter->nome}%'");
     }
     if ($filter->cpf) {
         $criteria->where("cpf = '{$filter->cpf}'");
     }
     if ($filter->email) {
         $criteria->where("email LIKE '{$filter->email}%'");
     }
     return $criteria;
 }
開發者ID:joshuacoddingyou,項目名稱:php,代碼行數:15,代碼來源:pessoa.php

示例14: setContent

 public function setContent()
 {
     mdump('Executing MRuntimeError');
     try {
         $errorHtml = $this->fetch("runtime");
         if (Manager::isAjaxCall()) {
             $this->ajax->setType('page');
             $this->ajax->setData($errorHtml);
             $this->ajax->setResponseType('JSON');
             $this->content = $this->ajax->returnData();
         } else {
             $this->content = $errorHtml;
         }
     } catch (\Maestro\Services\Exception\EMException $e) {
     }
 }
開發者ID:elymatos,項目名稱:expressive,代碼行數:16,代碼來源:MRuntimeError.php

示例15: getMetaData

 public function getMetaData($stmt)
 {
     $s = $stmt->getWrappedStatement();
     mdump('xxx');
     mdump($s->getColumnMeta(0));
     $metadata['columnCount'] = $count = $s->columnCount();
     mdump($count);
     for ($i = 0; $i < $count; $i++) {
         $meta = $s->getColumnMeta($i);
         $name = strtoupper($meta['name']);
         $metadata['fieldname'][$i] = $name;
         $metadata['fieldtype'][$name] = $this->_getMetaType($meta['pdo_type']);
         $metadata['fieldlength'][$name] = $meta['len'];
         $metadata['fieldpos'][$name] = $i;
     }
     return $metadata;
 }
開發者ID:elymatos,項目名稱:expressive,代碼行數:17,代碼來源:Platform.php


注:本文中的mdump函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。