當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。