original_string: 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));
        }
     }
code: 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));
        }
     }
code_tokens: 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 ) ) ; } }
docstring: Delete a particular activity item.
  
  @since 2.0.0
  @access public
  @param int $ActivityID Unique ID of acitivity to be deleted.
docstring_tokens: Delete a particular activity item .