Exemplo n.º 1
0
 /**
  * Delete a comment object in the database
  *
  * @param SxCms_Comment $comment
  * @return mixed
  */
 public function delete(SxCms_Comment $comment)
 {
     $db = Zend_Registry::get('db');
     if ($comment->getId()) {
         return $db->delete('PageComment', 'comment_id = ' . $comment->getId());
     }
     return false;
 }