Exemplo n.º 1
0
 /**
  * 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();
 }