public function Delete($ActivityID, $Options = array()) {
      // Get the activity first.
      $Activity = $this->GetID($ActivityID);
      if ($Activity) {
         // Log the deletion.
         $Log = GetValue('Log', $Options);
         if ($Log) {
            LogModel::Insert($Log, 'Activity', $Activity);
         }
         
         // Delete comments on the activity item
         $this->SQL->Delete('ActivityComment', array('ActivityID' => $ActivityID));
         
         // Delete the activity item
         parent::Delete(array('ActivityID' => $ActivityID));
      }
   }
public function Delete($ActivityID, $Options = array()) {
      // Get the activity first.
      $Activity = $this->GetID($ActivityID);
      if ($Activity) {
         // Log the deletion.
         $Log = GetValue('Log', $Options);
         if ($Log) {
            LogModel::Insert($Log, 'Activity', $Activity);
         }
         
         // Delete comments on the activity item
         $this->SQL->Delete('ActivityComment', array('ActivityID' => $ActivityID));
         
         // Delete the activity item
         parent::Delete(array('ActivityID' => $ActivityID));
      }
   }
public function Delete ( $ ActivityID , $ Options = array ( ) ) { // Get the activity first. $ Activity = $ this -> GetID ( $ ActivityID ) ; if ( $ Activity ) { // Log the deletion. $ Log = GetValue ( 'Log' , $ Options ) ; if ( $ Log ) { LogModel :: Insert ( $ Log , 'Activity' , $ Activity ) ; } // Delete comments on the activity item $ this -> SQL -> Delete ( 'ActivityComment' , array ( 'ActivityID' => $ ActivityID ) ) ; // Delete the activity item parent :: Delete ( array ( 'ActivityID' => $ ActivityID ) ) ; } }
Delete a particular activity item.

@since 2.0.0
@access public
@param int $ActivityID Unique ID of acitivity to be deleted.
Delete a particular activity item .