当前位置: 首页>>代码示例>>PHP>>正文


PHP Text::read方法代码示例

本文整理汇总了PHP中Text::read方法的典型用法代码示例。如果您正苦于以下问题:PHP Text::read方法的具体用法?PHP Text::read怎么用?PHP Text::read使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Text的用法示例。


在下文中一共展示了Text::read方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: getContent

 protected function getContent()
 {
     // Prepara formulário de pesquisa
     $dataArr['ajax'] = ["type" => Config::read('form.hidden'), "data" => (object) ["value" => true]];
     $dataArr['page'] = ["type" => Config::read('form.hidden'), "data" => (object) ["value" => 1]];
     $dataArr['name'] = ["type" => Config::read('form.input'), "data" => (object) ["text" => Text::read('form.product')]];
     $dataArr['btnSearch'] = ["type" => Config::read('form.submit'), "data" => (object) ["text" => Text::read('form.search'), "class" => "primary", "icon" => "glyphicon-search"]];
     $form = new Form("mySearch");
     $form->setHorizontal();
     $searchForm = $form->createForm($dataArr);
     ob_start();
     ?>
         <div class="container">
           <div class="row">
             <a id="toogleFilter" class="pull-right" data-toggle="collapse" data-target="#collapseFilter" href="#">
                 <span class="text">Exibir Filtros </span><span class="glyphicon glyphicon-menu-down"></span>
             </a>
             <div id="collapseFilter" class="panel-body panel-collapse collapse">
                 <?php 
     echo $searchForm;
     ?>
             </div>
           </div>
         </div>
     
         <div id="resultPanel" class="panel-body table-responsive">
             <?php 
     echo $this->result;
     ?>
         </div>
     <?php 
     return ob_get_clean();
 }
开发者ID:sohflp,项目名称:Hooked,代码行数:33,代码来源:class.OrderMyPurchasesView.php

示例2: getContent

    protected function getContent()
    {
        ob_start();
        ?>
			<div class="jumbotron text-center">
			  <h1>
				<span class="glyphicon glyphicon-time"></span>
				<?php 
        echo Text::read('message.login.session.inactive');
        ?>
			  </h1>
			  <h2>
				<a class="btn btn-lg btn-info" href="<?php 
        echo Config::read('page.url.login');
        ?>
">
				  <span class="glyphicon glyphicon-home"></span>&nbsp;
				  <?php 
        echo Text::read('message.login.session.return');
        ?>
				</a>
			  </h2>
			</div>
		<?php 
        return ob_get_clean();
    }
开发者ID:sohflp,项目名称:Hooked,代码行数:26,代码来源:class.LoginTimeOutView.php

示例3: getContent

 protected function getContent()
 {
     // Inicializa assistente de formul‡rio
     $form = new Form("myDetail");
     $dataArr['ajax'] = ["type" => Config::read('form.hidden'), "data" => (object) ["value" => true]];
     $dataArr['name'] = ["type" => Config::read('form.input'), "data" => (object) ["text" => Text::read('form.name'), "length" => 100]];
     $dataArr['email'] = ["type" => Config::read('form.input'), "data" => (object) ["text" => Text::read('form.email'), "length" => 50]];
     $dataArr['message'] = ["type" => Config::read('form.textarea'), "data" => (object) ["text" => Text::read('form.message')]];
     $dataArr['btnSend'] = ["type" => Config::read('form.submit'), "data" => (object) ["text" => Text::read('form.send'), "class" => "success btn-lg"]];
     $messageForm = $form->createForm($dataArr);
     unset($dataArr);
     ob_start();
     ?>
         <div class="container">
             <div class="row cadastro">
                 <div class="col-md-4 col-md-offset-4">
                     <?php 
     echo $messageForm;
     ?>
                 </div>
             </div>
         </div>
     <?php 
     return ob_get_clean();
 }
开发者ID:sohflp,项目名称:Hooked,代码行数:25,代码来源:class.ContactView.php

示例4: getTitle

 protected function getTitle()
 {
     if (Text::read('title.' . $this->pageId)) {
         return Text::read('title.' . $this->pageId) . " | " . Text::read('title');
     }
     return Text::read('title');
 }
开发者ID:sohflp,项目名称:Hooked,代码行数:7,代码来源:class.BaseView.php

示例5: getContent

    protected function getContent()
    {
        // Inicializa assistente de formulário
        $form = new Form("myDetail");
        $dataArr['ajax'] = ["type" => Config::read('form.hidden'), "data" => (object) ["value" => true]];
        $dataArr['name'] = ["type" => Config::read('form.input'), "data" => (object) ["text" => Text::read('form.name'), "length" => 50]];
        $dataArr['surname'] = ["type" => Config::read('form.input'), "data" => (object) ["text" => Text::read('form.surname'), "length" => 50]];
        $dataArr['sex'] = ["type" => Config::read('form.radio'), "data" => (object) ["text" => Text::read('form.sex'), "value" => [(object) ["id" => 1, "text" => Text::read('form.man')], (object) ["id" => 2, "text" => Text::read('form.woman')]], "checked" => 1]];
        $dataArr['email'] = ["type" => Config::read('form.input'), "data" => (object) ["text" => Text::read('form.email'), "length" => 50]];
        $dataArr['password'] = ["type" => Config::read('form.password'), "data" => (object) ["text" => Text::read('form.password'), "length" => 20]];
        $dataArr['news'] = ["type" => Config::read('form.checkbox'), "data" => (object) ["text" => Text::read('form.newsletter'), "checked" => true]];
        $dataArr['btnSave'] = ["type" => Config::read('form.submit'), "data" => (object) ["text" => Text::read('form.save'), "class" => "success btn-lg"]];
        $accountForm = $form->createForm($dataArr);
        unset($dataArr);
        ob_start();
        ?>
          <div class="container">
            <div class="row cadastro">
              <div class="col-md-4 col-md-offset-4">
                <?php 
        echo $accountForm;
        ?>
              </div>
            </div>
          </div>
		<?php 
        return ob_get_clean();
    }
开发者ID:sohflp,项目名称:Hooked,代码行数:28,代码来源:class.LoginNewAccountView.php

示例6: ajaxCallbackForDetail

 protected function ajaxCallbackForDetail()
 {
     // Executa validações dos campos no Formulário
     $validation = $this->executeFormValidation();
     if ($validation['error']) {
         // Mensagem de erro devido a validação de campos
         $json['message']['type'] = "error";
         $json['message']['text'] = Text::read('message.error');
     } else {
         // Atualiza / Insere na base de dados
         if ($this->myView->data->id) {
             $this->myModel->update($this->myView->data);
         } else {
             // Retorna novo ID para o formulário web
             $json['newID'] = $this->myModel->insert($this->myView->data);
         }
         // Recupera mensagens de erro
         if ($this->myModel->getMessage()) {
             $json['message'] = $this->myModel->getMessage();
             if ($this->myModel->getTechnicalMessage()) {
                 $json['message']['text'] = "<a id='ajaxErrorDetail' href='#'>" . $json['message']['text'] . "</a>";
                 $json['message']['technical'] = $this->myModel->getTechnicalMessage();
             }
         }
     }
     // Recupera mensagens de erro individuais e envia para JSON
     $json['validation'] = $validation['messages'];
     // Transfere dados criação/atualização do registro
     $this->myView->info = $this->myModel->selectForInfo($this->myView->data->id);
     $json['info'] = $this->myView->returnInfoList();
     return $json;
 }
开发者ID:sohflp,项目名称:Hooked,代码行数:32,代码来源:trait.DetailController.php

示例7: remove

 protected function remove()
 {
     if (!$this->id) {
         $error = new Error(__METHOD__, Text::read('message.ID.error'));
         die($error->getView());
     }
     // Ajax Callback
     $this->ajaxCallback();
 }
开发者ID:sohflp,项目名称:Hooked,代码行数:9,代码来源:trait.RemoveController.php

示例8: ajaxCallbackForRemove

 protected function ajaxCallbackForRemove()
 {
     if ($this->id == 1) {
         $json['message'] = Text::alertMessage("danger", Text::read('message.user.admin.error'));
     } else {
         $json = $this->__ajaxCallbackForRemove();
     }
     return $json;
 }
开发者ID:sohflp,项目名称:Hooked,代码行数:9,代码来源:class.User.php

示例9: detail

 protected function detail()
 {
     if (!$this->id) {
         $error = new Error(__METHOD__, Text::read('message.ID.error'));
         die($error->getView());
     }
     $this->myView = new AccountDetailView();
     $this->myModel = new AccountModel();
     $this->__detail();
 }
开发者ID:sohflp,项目名称:Hooked,代码行数:10,代码来源:class.Account.php

示例10: getContent

 protected function getContent()
 {
     // Prepara o formulário de login
     $dataArr['ajax'] = ["type" => Config::read('form.hidden'), "data" => (object) ["value" => true]];
     $dataArr['type'] = ["type" => Config::read('form.hidden'), "data" => (object) ["value" => 1]];
     $dataArr['user'] = ["type" => Config::read('form.input'), "data" => (object) ["value" => $_POST['user'], "text" => Text::read('form.user')]];
     $dataArr['password'] = ["type" => Config::read('form.password'), "data" => (object) ["value" => $_POST['password'], "text" => Text::read('form.password')]];
     $dataArr['btnLogin'] = ["type" => Config::read('form.submit'), "data" => (object) ["text" => Text::read('form.login'), "class" => "default"]];
     $form = new Form("myLogin");
     $form->setHorizontal();
     $loginForm = $form->createForm($dataArr);
     return '<div class="jumbotron">' . $loginForm . '</div>';
 }
开发者ID:sohflp,项目名称:Hooked,代码行数:13,代码来源:class.LoginView.php

示例11: createTable

    public function createTable($pageId, $data)
    {
        if ($this->total > 0) {
            $controller = "product";
            ob_start();
            ?>
              <div class="container">
                <div class="row query">
                  <div class="col-md-8">
                    <p><?php 
            echo Text::read('table.total') . ": " . $this->total;
            ?>
</p>
                  </div>
                </div>
              </div>

              <div class="container products">
                <?php 
            echo $this->createTableBody($controller, $data);
            ?>
              </div>
				
              <div class="container">
                <div class="row">
                  <div class="text-center">
                    <nav>
                      <ul class="pagination pagination-sm">
                        <?php 
            echo $this->createPagination();
            ?>
                      </ul>
                    </nav>
                  </div>
                </div>
              </div>
			<?php 
            return ob_get_clean();
        }
        ob_start();
        ?>
            <div class="container products text-center">
              <h4><?php 
        echo Text::read('table.empty');
        ?>
</h4>
              <br />
            </div>
        <?php 
        return ob_get_clean();
    }
开发者ID:sohflp,项目名称:Hooked,代码行数:51,代码来源:class.ProductTable.php

示例12: getContent

 public function getContent()
 {
     // Inicializa assistente de formulário
     $form = new Form("myAddress");
     // Prepara formulário de upload
     $dataArr['street'] = ["type" => Config::read('form.input'), "data" => (object) ["value" => $this->data->street, "text" => Text::read('form.street'), "length" => 100]];
     $dataArr['number'] = ["type" => Config::read('form.input'), "data" => (object) ["value" => $this->data->number, "text" => Text::read('form.number'), "length" => 5]];
     $dataArr['complement'] = ["type" => Config::read('form.input'), "data" => (object) ["value" => $this->data->complement, "text" => Text::read('form.complement'), "length" => 50]];
     $dataArr['local'] = ["type" => Config::read('form.input'), "data" => (object) ["value" => $this->data->local, "text" => Text::read('form.local'), "length" => 100]];
     $dataArr['city'] = ["type" => Config::read('form.input'), "data" => (object) ["value" => $this->data->city, "text" => Text::read('form.city'), "length" => 100]];
     $dataArr['state'] = ["type" => Config::read('form.dropdown'), "data" => (object) ["value" => Config::read('combo.states'), "text" => Text::read('form.state'), "selected" => $this->data->state]];
     $dataArr['zipcode'] = ["type" => Config::read('form.input'), "data" => (object) ["value" => $this->data->zipcode, "text" => Text::read('form.zipcode'), "length" => 9]];
     return $form->createFormFields($dataArr);
 }
开发者ID:sohflp,项目名称:Hooked,代码行数:14,代码来源:trait.AddressView.php

示例13: detail

 protected function detail()
 {
     if (!$this->id) {
         $error = new Error(__METHOD__, Text::read('message.ID.error'));
         die($error->getView());
     }
     $this->myView = new OrderDetailView();
     $this->myModel = new OrderModel();
     // Cria ligação com modelo de fotos
     $this->myModel->bindPhotoModel();
     $this->__detail();
     // Cria ligação com a visão de fotos
     $this->myView->bindPhotoReadOnlyView();
 }
开发者ID:sohflp,项目名称:Hooked,代码行数:14,代码来源:class.Order.php

示例14: delete

 public function delete($id)
 {
     $this->mapping->criterias['id'] = new stdclass();
     $this->mapping->criterias['id']->field = 'featureID';
     $this->mapping->criterias['id']->operator = '=';
     $this->mapping->criterias['id']->value = $id;
     try {
         $this->dbh->beginTransaction();
         parent::delete($id);
         $this->dbh->commit();
     } catch (PDOException $exception) {
         $this->dbh->rollback();
         $this->modelException(Text::read('message.model.error.delete'), $exception);
     }
 }
开发者ID:sohflp,项目名称:Hooked,代码行数:15,代码来源:class.FeatureModel.php

示例15: getContent

    protected function getContent()
    {
        // Inicializa assistente de formulário
        $form = new Form("myDetail");
        // Prepara formulário de inserção/atualização de dados
        $dataArr['ajax'] = ["type" => Config::read('form.hidden'), "data" => (object) ["value" => true]];
        $dataArr['id'] = ["type" => Config::read('form.hidden'), "data" => (object) ["value" => $this->data->id]];
        $dataArr['title'] = ["type" => Config::read('form.input'), "data" => (object) ["value" => $this->data->title, "text" => Text::read('form.title'), "length" => 100]];
        $detailForm = $form->createFormFields($dataArr);
        unset($dataArr);
        ob_start();
        ?>
			<fieldset>
			  <legend><span class="glyphicon glyphicon-th-list"></span> <?php 
        echo Text::read('form.detail');
        ?>
</legend>
			  <?php 
        echo $detailForm;
        ?>
			</fieldset>
			<fieldset>
			  <legend><span class="glyphicon glyphicon-camera"></span> <?php 
        echo Text::read('form.photo');
        ?>
</legend>
			  <?php 
        echo $this->photoView->getContent();
        ?>
			</fieldset>
			<br />
		<?php 
        $globalForm = ob_get_clean();
        $dataArr['btnSave'] = ["type" => Config::read('form.submit'), "data" => (object) ["text" => Text::read('form.save'), "class" => "success", "icon" => "glyphicon-floppy-disk"]];
        $detailForm = $form->createForm($dataArr, $globalForm);
        unset($dataArr);
        ob_start();
        ?>
			<div class="panel panel-primary">
			  <div class="panel-body">
				<?php 
        echo $detailForm;
        ?>
			  </div>
			</div>
		<?php 
        return ob_get_clean();
    }
开发者ID:sohflp,项目名称:Hooked,代码行数:48,代码来源:class.BrandDetailView.php


注:本文中的Text::read方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。