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


PHP TRecord類代碼示例

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


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

示例1: __construct

 public function __construct($id = NULL)
 {
     parent::__construct($id);
     parent::__addAttribute('nome');
     parent::__addAttribute('endereco');
     parent::__addAttribute('telefone');
     parent::__addAttribute('telefone2');
     parent::__addAttribute('email');
     parent::__addAttribute('cpf');
     parent::__addAttribute('genero');
     parent::__addAttribute('dataNascimento');
     parent::__addAttribute('escolaOrigem');
     parent::__addAttribute('bairro');
     parent::__addAttribute('cidade');
     parent::__addAttribute('estado');
     parent::__addAttribute('grupoSanguineo');
     parent::__addAttribute('nomeDoPai');
     parent::__addAttribute('telDoPai');
     parent::__addAttribute('telDoPai2');
     parent::__addAttribute('emailDoPai');
     parent::__addAttribute('nomeDaMae');
     parent::__addAttribute('telDaMae');
     parent::__addAttribute('telDaMae2');
     parent::__addAttribute('emailDaMae');
     parent::__addAttribute('nomeResp');
     parent::__addAttribute('telResp');
     parent::__addAttribute('telResp2');
     parent::__addAttribute('emailResp2');
     parent::__addAttribute('turma_id');
 }
開發者ID:joaopaulo11jp,項目名稱:educaproject,代碼行數:30,代碼來源:Aluno.class.php

示例2: __construct

 /**
  * Constructor method
  */
 public function __construct($id = NULL)
 {
     parent::__construct($id);
     parent::addAttribute('type');
     parent::addAttribute('value');
     parent::addAttribute('customer_id');
 }
開發者ID:jfrank1500,項目名稱:curso_php,代碼行數:10,代碼來源:Contact.class.php

示例3: __construct

 /**
  * Constructor method
  */
 public function __construct($id = NULL, $callObjectLoad = TRUE)
 {
     parent::__construct($id, $callObjectLoad);
     parent::addAttribute('entrazsoc');
     parent::addAttribute('entnumcgc');
     parent::addAttribute('entlogend');
     parent::addAttribute('entendnum');
     parent::addAttribute('entendcmp');
     parent::addAttribute('entendcep');
     parent::addAttribute('ententbai');
     parent::addAttribute('entendfon');
     parent::addAttribute('entendema');
     parent::addAttribute('entmunend');
     parent::addAttribute('entcaddta');
     parent::addAttribute('entcadobs');
     parent::addAttribute('endfaxnum');
     parent::addAttribute('entendsit');
     parent::addAttribute('entsenent');
     parent::addAttribute('entdiacor');
     parent::addAttribute('entdiades');
     parent::addAttribute('entopccor');
     parent::addAttribute('entnomfan');
     parent::addAttribute('enttiplim');
     parent::addAttribute('entcontato');
     parent::addAttribute('enttippro');
     parent::addAttribute('entmsgecs');
     parent::addAttribute('entmsgass');
     parent::addAttribute('entusatef');
     parent::addAttribute('entlcttbz');
     parent::addAttribute('etdlctrecs');
     parent::addAttribute('entdtaold');
     parent::addAttribute('entempent');
     parent::addAttribute('enttipent');
 }
開發者ID:jhonleandres,項目名稱:Atividades,代碼行數:37,代碼來源:Entidade.class.php

示例4: __construct

 /**
  * Constructor method
  * @param $id Primary key to be loaded (optional)
  */
 public function __construct($id = NULL)
 {
     parent::__construct($id);
     //parent::addAttribute('idbanco');
     parent::addAttribute('sigla');
     parent::addAttribute('nome');
 }
開發者ID:edurbs,項目名稱:sobcontrole,代碼行數:11,代碼來源:banco.class.php

示例5: __construct

 /**
  * Constructor method
  */
 public function __construct($id = NULL, $callObjectLoad = TRUE)
 {
     parent::__construct($id, $callObjectLoad);
     parent::addAttribute('pedidos_id');
     parent::addAttribute('produtos_id');
     parent::addAttribute('qtd');
 }
開發者ID:jhonleandres,項目名稱:pecommerce,代碼行數:10,代碼來源:PedidosProdutos.class.php

示例6: __construct

 public function __construct($id = NULL)
 {
     parent::__construct($id);
     parent::addAttribute('cid_id');
     parent::addAttribute('cid_nome');
     parent::addAttribute('tb_estados_uf_id');
 }
開發者ID:eduardojsouza,項目名稱:liger,代碼行數:7,代碼來源:Cidade.class.php

示例7: __construct

 /**
  * Constructor method
  * @param $id Primary key to be loaded (optional)
  */
 public function __construct($id = NULL)
 {
     parent::__construct($id);
     parent::addAttribute('idtipocontato');
     parent::addAttribute('idpessoa');
     parent::addAttribute('descricao');
 }
開發者ID:edurbs,項目名稱:sobcontrole,代碼行數:11,代碼來源:contato.class.php

示例8: __construct

 /**
  * Constructor method
  */
 public function __construct($id = NULL, $callObjectLoad = TRUE)
 {
     parent::__construct($id, $callObjectLoad);
     parent::addAttribute('mes');
     parent::addAttribute('ano');
     parent::addAttribute('horario');
     parent::addAttribute('colaborador_id');
 }
開發者ID:jhonleandres,項目名稱:Atividades,代碼行數:11,代碼來源:CargaHoraria.class.php

示例9: __construct

 public function __construct($id = NULL)
 {
     parent::__construct($id);
     parent::addAttribute('uf_id');
     parent::addAttribute('uf_nome');
     parent::addAttribute('uf_cod_ibge');
     parent::addAttribute('uf_sigla');
 }
開發者ID:eduardojsouza,項目名稱:liger,代碼行數:8,代碼來源:Estado.class.php

示例10: __construct

 public function __construct($id = NULL)
 {
     parent::construct($id);
     parent::addAttribute('nome');
     parent::addAttribute('email');
     parent::addAttribute('telefone');
     parent::addAttribute('removido');
 }
開發者ID:joaopaulo11jp,項目名稱:educaproject,代碼行數:8,代碼來源:Professor.class.php

示例11: __construct

 /**
  * Constructor method
  */
 public function __construct($id = NULL, $callObjectLoad = TRUE)
 {
     parent::__construct($id, $callObjectLoad);
     parent::addAttribute('item_id');
     parent::addAttribute('requisicao_id');
     parent::addAttribute('justificativa');
     parent::addAttribute('quantidade');
     parent::addAttribute('prazoEntrega');
 }
開發者ID:andermall,項目名稱:tcc,代碼行數:12,代碼來源:ItemRequisicao.class.php

示例12: __contruct

 public function __contruct($id = NULL)
 {
     parent::__construct($id);
     parent::addAttribute('rua');
     parent::addAttribute('cep');
     parent::addAttribute('bairro');
     parent::addAttribute('complemento');
     parent::addAttribute('system_user_id');
 }
開發者ID:dtgfranca,項目名稱:web,代碼行數:9,代碼來源:Enderecos.class.php

示例13: __construct

 /**
  * Constructor method
  */
 public function __construct($id = NULL)
 {
     parent::__construct($id);
     parent::addAttribute('description');
     parent::addAttribute('stock');
     parent::addAttribute('sale_price');
     parent::addAttribute('unity');
     parent::addAttribute('photo_path');
 }
開發者ID:jfrank1500,項目名稱:curso_php,代碼行數:12,代碼來源:Product.class.php

示例14: delete

 public function delete($id = NULL)
 {
     $id = isset($id) ? $id : $this->{'id'};
     $criteria = new TCriteria();
     $criteria->add(new TFilter('project_id', '=', $id));
     $repository = new TRepository('Backlog');
     $repository->delete($criteria);
     parent::delete($id);
 }
開發者ID:jfrank1500,項目名稱:curso_php,代碼行數:9,代碼來源:Project.class.php


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