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


PHP text::setLabel方法代码示例

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


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

示例1: initialize

 /**
  * Initialize the products form
  */
 public function initialize($entity = null, $options = array())
 {
     $f = new text("url_base");
     $f->setLabel('URL BASE');
     $f->setAttribute('class', 'form-control');
     $this->add($f);
     $f = new select("ativo", array('1' => 'Sim', '0' => 'Não'));
     $f->setAttribute('class', 'form-control');
     $this->add($f);
     $f = new select("manutencao", array('1' => 'Sim', '0' => 'Não'));
     $f->setAttribute('class', 'form-control');
     $this->add($f);
     $f = new select("orcamento", array('1' => 'Sim', '0' => 'Não'));
     $f->setAttribute('class', 'form-control');
     $this->add($f);
     $f = new select("adicionar_carrinho", array('1' => 'Sim', '0' => 'Não'));
     $f->setLabel('Adicionar Carrinho');
     $f->setAttribute('class', 'form-control');
     $this->add($f);
     $f = new text("plano");
     $f->setAttribute('class', 'form-control');
     $this->add($f);
     $f = new numeric("limite_produtos");
     $f->setLabel('Limite de Produtos');
     $f->setAttribute('class', 'form-control');
     $this->add($f);
     $f = new select("certificado", array('certising' => 'Certising', 'comodo' => 'Comodo', 'norton' => 'Norton', 'rapidssl' => 'Rapid SSL', 'site_blindado' => 'Site Blindado'));
     $f->setAttribute('class', 'form-control');
     $this->add($f);
 }
开发者ID:denners777,项目名称:phalcon_ecommerce,代码行数:33,代码来源:LojaGeralConfigForm.php

示例2: initialize

 /**
  * Initialize the products form
  */
 public function initialize($entity = null, $options = array())
 {
     $f = new text("aws_bucket");
     $f->setLabel('AWS Bucket');
     $f->setAttribute('class', 'form-control');
     $this->add($f);
     $f = new text("aws_id");
     $f->setLabel('AWS ID');
     $f->setAttribute('class', 'form-control');
     $this->add($f);
     $f = new text("aws_location");
     $f->setLabel('AWS LOCATION');
     $f->setAttribute('class', 'form-control');
     $this->add($f);
     $f = new text("aws_secret_key");
     $f->setLabel('AWS SECRET KEY');
     $f->setAttribute('class', 'form-control');
     $this->add($f);
     $f = new text("facebook_appId");
     $f->setLabel('Facebook app id');
     $f->setAttribute('class', 'form-control');
     $this->add($f);
     $f = new text("facebook_appSecret");
     $f->setLabel('Facebooke app secret');
     $f->setAttribute('class', 'form-control');
     $this->add($f);
     $f = new text("sendgrid_username");
     $f->setLabel('Sendgrid username');
     $f->setAttribute('class', 'form-control');
     $this->add($f);
     $f = new text("sendgrid_password");
     $f->setLabel('sendgrid password');
     $f->setAttribute('class', 'form-control');
     $this->add($f);
     $f = new text("sendgrid_templateId");
     $f->setLabel('sendgrid template ID');
     $f->setAttribute('class', 'form-control');
     $this->add($f);
     $f = new TextArea("mapa");
     $f->setLabel('Google Maps');
     $f->setAttribute('class', 'form-control');
     $f->setAttribute('rows', '10');
     $this->add($f);
     $f = new TextArea("chat");
     $f->setLabel('Chat');
     $f->setAttribute('class', 'form-control');
     $f->setAttribute('rows', '10');
     $this->add($f);
 }
开发者ID:denners777,项目名称:phalcon_ecommerce,代码行数:52,代码来源:LojaApiForm.php

示例3: initialize

 /**
  * Initialize the products form
  */
 public function initialize($entity = null, $options = array())
 {
     $f = new select("template_nome", array('7store' => '7store', 'Bewear' => 'Bewear', 'Bohase' => 'Bohase', 'Classic' => 'Classic', 'Everything' => 'Everything', 'Hosoren' => 'Hosoren', 'Micra' => 'Micra', 'ShopMe' => 'ShopMe', 'Smile' => 'Smile', 'Unicase' => 'Unicase'));
     $f->setLabel('Template Nome');
     $f->setAttribute('class', 'form-control');
     $this->add($f);
     $f = new text("template_variacao");
     $f->setLabel('Template Variação');
     $f->setAttribute('class', 'form-control');
     $this->add($f);
     $f = new text("imagem_size");
     $f->setLabel('Imagem Size');
     $f->setAttribute('class', 'form-control');
     $this->add($f);
     $f = new text("thumbnail_size");
     $f->setLabel('Thumbnail Size');
     $f->setAttribute('class', 'form-control');
     $this->add($f);
     $f = new text("paginacao_tipo");
     $f->setLabel('Paginaçao Tipo');
     $f->setAttribute('class', 'form-control');
     $this->add($f);
 }
开发者ID:denners777,项目名称:phalcon_ecommerce,代码行数:26,代码来源:LojaLayoutForm.php


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