本文整理汇总了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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
}
示例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();
}
}
示例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();
}