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


PHP TRecord::delete方法代码示例

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


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

示例1: 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

示例2: delete

 public function delete($id = NULL)
 {
     $id = isset($id) ? $id : $this->logra_id;
     $repository = new TRepository('LogradouroBairro');
     $criteria = new TCriteria();
     $criteria->add(new TFilter('tb_logradouros_logra_id', '=', $id));
     $repository->delete($criteria);
     // delete the object itself
     parent::delete($id);
 }
开发者ID:eduardojsouza,项目名称:liger,代码行数:10,代码来源:Logradouro.class.php

示例3: delete

 /**
  * Delete an Active Record object from the database
  * @param [$id]     The Object ID
  * @exception       Exception if there's no active transaction opened
  */
 public function delete($id = NULL)
 {
     $id = isset($id) ? $id : $this->{'id'};
     $note_rep = new TRepository('Note');
     $criteria = new TCriteria();
     $criteria->add(new TFilter('id_issue', '=', $id));
     $note_rep->delete($criteria);
     // delete the object itself
     parent::delete($id);
 }
开发者ID:jfrank1500,项目名称:curso_php,代码行数:15,代码来源:Issue.class.php

示例4: delete

 /**
  * Delete the object and its aggregates
  * @param $id object ID
  */
 public function delete($id = NULL)
 {
     // delete the related System_userSystem_user_group objects
     $id = isset($id) ? $id : $this->id;
     $repository = new TRepository('SystemStock');
     $criteria = new TCriteria();
     $criteria->add(new TFilter('id', '=', $id));
     $repository->delete($criteria);
     // delete the object itself
     parent::delete($id);
 }
开发者ID:kiibe,项目名称:linkERP,代码行数:15,代码来源:SystemStock.class.php

示例5: delete

 public function delete($id = NULL)
 {
     //sobrescrito!
     $id = isset($id) ? $id : $this->id;
     $repository = new TRepository('TurmaDisciplina');
     $criteria = new TCriteria();
     $criteria->add(new TFilter('turma_id', '=', $id));
     $repository->delete($criteria);
     $repository = new TRepository('AlunoTurma');
     $repository->delete($criteria);
     parent::delete($id);
 }
开发者ID:joaopaulo11jp,项目名称:educaproject,代码行数:12,代码来源:Turma.class.php

示例6: delete

 /**
  * Delete the object and its aggregates
  * @param $id object ID
  */
 public function delete($id = NULL)
 {
     $id = isset($id) ? $id : $this->id;
     parent::deleteComposite('CustomerSkill', 'customer_id', $id);
     parent::deleteComposite('Contact', 'customer_id', $id);
     // delete the object itself
     parent::delete($id);
 }
开发者ID:jfrank1500,项目名称:curso_php,代码行数:12,代码来源:Customer.class.php

示例7: delete

 /**
  * Delete the book and its aggregates
  */
 public function delete($id = NULL)
 {
     $id = isset($id) ? $id : $this->{'id'};
     $criteria = new TCriteria();
     $criteria->add(new TFilter('book_id', '=', $id));
     $repository = new TRepository('BookAuthor');
     $repository->delete($criteria);
     $repository = new TRepository('BookSubject');
     $repository->delete($criteria);
     $repository = new TRepository('Item');
     $repository->delete($criteria);
     // delete the object itself
     parent::delete($id);
 }
开发者ID:jhonleandres,项目名称:crmbf,代码行数:17,代码来源:Book.class.php

示例8: delete

 /**
  * Delete the object and its aggregates
  * @param $id object ID
  */
 public function delete($id = NULL)
 {
     SystemChangeLog::register($this, $this->toArray(), array());
     // delete the object itself
     parent::delete($id);
 }
开发者ID:jhonleandres,项目名称:Atividades,代码行数:10,代码来源:Ticket.class.php

示例9: delete

 /**
  * Delete the object and its aggregates
  * @param $id object ID
  */
 public function delete($id = NULL)
 {
     $id = isset($id) ? $id : $this->id;
     parent::deleteComposite('PedidosProdutos', 'pedidos_id', $id);
     // delete the object itself
     parent::delete($id);
 }
开发者ID:jhonleandres,项目名称:pecommerce,代码行数:11,代码来源:Pedidos.class.php

示例10: delete

 public function delete($id = NULL)
 {
     parent::deleteComposite('endereco', 'idpessoa', $id);
     parent::deleteComposite('contato', 'idpessoa', $id);
     parent::delete($id);
 }
开发者ID:edurbs,项目名称:sobcontrole,代码行数:6,代码来源:pessoa.class.php

示例11: delete

 public function delete($id = NULL)
 {
     $id = isset($id) ? $id : $this->imovel_id;
     $repository = new TRepository('ImovelProprietarios');
     $criteria = new TCriteria();
     $criteria->add(new TFilter('tb_imovel_imovel_id', '=', $id));
     $repository->delete($criteria);
     // delete the object itself
     parent::delete($id);
 }
开发者ID:eduardojsouza,项目名称:liger,代码行数:10,代码来源:Imovel.class.php

示例12: delete

 /**
  * Delete the object and its aggregates
  * @param $id object ID
  */
 public function delete($id = NULL)
 {
     parent::deleteComposite('CustomerSkill', 'customer_id', $id);
     // delete the object itself
     parent::delete($id);
 }
开发者ID:jfrank1500,项目名称:curso_php,代码行数:10,代码来源:AggregationSimple.php

示例13: delete

 /**
  * Delete an Active Record object from the database
  * @param [$id]     The Object ID
  * @exception       Exception if there's no active transaction opened
  */
 public function delete($id = NULL)
 {
     $id = isset($id) ? $id : $this->{'id'};
     $member_project_rep = new TRepository('MemberProject');
     $criteria = new TCriteria();
     $criteria->add(new TFilter('id_member', '=', $id));
     $member_project_rep->delete($criteria);
     // delete the object itself
     parent::delete($id);
 }
开发者ID:jfrank1500,项目名称:curso_php,代码行数:15,代码来源:Member.class.php


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