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


PHP RowManager::deleteEntry方法代码示例

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


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

示例1: deleteEntry

 /**
  * function deleteEntry
  * <pre>
  * Removes the child entries of daField objects before removing self.
  * </pre>
  * @return [void]
  */
 function deleteEntry()
 {
     // first remove any associated fields with this DAObj
     $daFieldList = new DAFieldList($this->getID());
     $daFieldList->setFirst();
     while ($field = $daFieldList->getNext()) {
         $field->deleteEntry();
     }
     // now call parent method
     parent::deleteEntry();
 }
开发者ID:andrewroth,项目名称:c4c_intranet,代码行数:18,代码来源:DAObjManager.php

示例2: deleteEntry

 /**
  * function deleteEntry
  * <pre>
  * Removes the child entries of Module objects before removing self. 
  * (Poor Man's Referential Integrity)
  * </pre>
  * @return [void]
  */
 function deleteEntry()
 {
     // first remove any associated State Variables
     $list = new StateVarList($this->getModuleID());
     $list->setFirst();
     while ($item = $list->getNext()) {
         $item->deleteEntry();
     }
     // now remove any Data Access Objects
     $list = new DAObjList($this->getModuleID());
     $list->setFirst();
     while ($item = $list->getNext()) {
         $item->deleteEntry();
     }
     // now remove any Page Objects
     $list = new PageList($this->getModuleID());
     $list->setFirst();
     while ($item = $list->getNext()) {
         $item->deleteEntry();
     }
     // now remove any Transitions
     $list = new TransitionsList($this->getModuleID());
     $list->setFirst();
     while ($item = $list->getNext()) {
         $item->deleteEntry();
     }
     // now call parent method
     parent::deleteEntry();
 }
开发者ID:andrewroth,项目名称:c4c_intranet,代码行数:37,代码来源:ModuleManager.php

示例3: deleteEntry

 /**
  * function deleteEntry
  * <pre>
  * Removes the DB table info.
  * </pre>
  * @return [void]
  */
 function deleteEntry()
 {
     // before removing entry, make sure associated linkGroups & linkViewers
     // are removed as well
     $linkID = $this->getID();
     $linkMgr = new RowManager_NavLinkAccessGroupManager();
     $linkMgr->setLinkID($linkID);
     $list = $linkMgr->getListIterator();
     $list->setFirst();
     while ($entry = $list->getNext()) {
         $entry->deleteEntry();
     }
     $linkViewerMgr = new RowManager_NavLinkViewerManager();
     $linkViewerMgr->setLinkID($linkID);
     $list = $linkViewerMgr->getListIterator();
     $list->setFirst();
     while ($entry = $list->getNext()) {
         $entry->deleteEntry();
     }
     parent::deleteEntry();
 }
开发者ID:andrewroth,项目名称:c4c_intranet,代码行数:28,代码来源:NavBarLinksManager.php

示例4: deleteEntry

 /**
  * function deleteEntry
  * <pre>
  * Removes the DB table entry.  Also, since this table also has linked
  * items in the viewer access group table, it makes sure those are removed
  * as well.
  * </pre>
  * @return [void]
  */
 function deleteEntry()
 {
     // get a viewerAccessGroup manager
     $viewerAccess = new RowManager_ViewerAccessGroupManager();
     // now update it so that it's condition is based on this viewer id
     $condition = $this->getPrimaryKeyField() . '=' . $this->getID();
     $viewerAccess->setDBCondition($condition);
     $viewerAccess->deleteEntry();
     // now continue with remove of this entry...
     parent::deleteEntry();
 }
开发者ID:andrewroth,项目名称:c4c_intranet,代码行数:20,代码来源:ViewerManager.php

示例5: deleteEntry

 /**
  * function deleteEntry
  * <pre>
  * Removes the DB table info.
  * </pre>
  * @return [void]
  */
 function deleteEntry()
 {
     parent::deleteEntry();
     if ($this->isVolumePriceRule() == true) {
         // create a record for tracking whether a volume rule is active
         $activeRule = new RowManager_ActiveRuleManager($this->getID());
         $activeRule->deleteEntry();
     }
 }
开发者ID:andrewroth,项目名称:c4c_intranet,代码行数:16,代码来源:PriceRuleManager.php

示例6: deleteEntry

 /**
  * function deleteEntry
  * <pre>
  * Removes the DB table info.
  * </pre>
  * @return [void]
  */
 function deleteEntry()
 {
     parent::deleteEntry();
     $values = $this->getArrayOfValues();
     // 	    echo "<pre>".print_r($values,true)."</pre>";
     if (isset($values['registration_id'])) {
         // update balance owing column in cim_reg_registration table
         $singleReg = new RowManager_RegistrationManager($values['registration_id']);
         // 		    $singleReg_list = $singleReg->getListIterator();
         // 		    $singleReg_array = $singleReg_list->getDataList();
         //
         // 		    reset($singleReg_array);
         // 		    $record = current($singleReg_array);
         // 		    $oldBalance = $record['registration_balance'];
         $balanceGetter = new FinancialTools();
         $balance = array();
         // 			 $balance['registration_balance'] = $oldBalance - $record['cctransaction_amount'];
         $balance['registration_balance'] = $balanceGetter->simpleCalcBalanceOwing($values['registration_id']);
         $singleReg->loadFromArray($balance);
         $singleReg->updateDBTable();
     }
 }
开发者ID:andrewroth,项目名称:c4c_intranet,代码行数:29,代码来源:ScholarshipAssignmentManager.php

示例7: deleteEntry

 /**
  * function deleteEntry
  * <pre>
  * Removes the child entries of page objects before removing self.
  * </pre>
  * @return [void]
  */
 function deleteEntry()
 {
     // first remove any associated fields with this Page
     $pageFieldList = new PageFieldList($this->getID());
     $pageFieldList->setFirst();
     while ($field = $pageFieldList->getNext()) {
         $field->deleteEntry();
     }
     // now remove any labels associated with this Page
     $pageLabelList = new PageLabelsList($this->getID());
     $pageLabelList->setFirst();
     while ($label = $pageLabelList->getNext()) {
         $label->deleteEntry();
     }
     // now call parent method
     parent::deleteEntry();
 }
开发者ID:andrewroth,项目名称:c4c_intranet,代码行数:24,代码来源:PageManager.php


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