Exemple #1
0
 /**
  * Totally destroys the resource from persistence. Also destroys the status.
  *
  * @return void
  * @access public
  */
 function destroy()
 {
     if ($this->_id) {
         //destroy the resource status
         $this->_status->destroy();
         $sql = "\n\t\t\t\tdelete\n\t\t\t\tfrom\n\t\t\t\t\tresources\n\t\t\t\twhere\n\t\t\t\t\tid_res='" . $this->_id . "'\n\t\t\t";
         $q = new CMS_query($sql);
     }
     unset($this);
 }