[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gforge-commits] gforge/common/docman Document.class,1.10,1.11
From: |
tperdue |
Subject: |
[Gforge-commits] gforge/common/docman Document.class,1.10,1.11 |
Date: |
Wed, 05 May 2004 17:28:27 -0500 |
Update of /cvsroot/gforge/gforge/common/docman
In directory db.perdue.net:/home/tperdue/share/dev.gforge.org/common/docman
Modified Files:
Document.class
Log Message:
Adding URL support to docman - URL can be used to reference offsite file rather
than uploading file
Index: Document.class
===================================================================
RCS file: /cvsroot/gforge/gforge/common/docman/Document.class,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- Document.class 17 Oct 2003 21:48:17 -0000 1.10
+++ Document.class 5 May 2004 22:28:24 -0000 1.11
@@ -100,8 +100,8 @@
/**
* create - use this function to create a new entry in the
database.
*
- * @param string The filename of this document.
- * @param string The filetype of this document.
+ * @param string The filename of this document. Can be a URL.
+ * @param string The filetype of this document. If filename is
URL, this should be 'URL';
* @param string The contents of this document (should be
addslashes()'d before entry).
* @param int The doc_group id of the doc_groups table.
* @param string The title of this document.
@@ -226,6 +226,15 @@
}
/**
+ * isURL - whether this document is a URL and not a local file.
+ *
+ * @return boolean is_url.
+ */
+ function isURL() {
+ return ($this->data_array['filetype'] == 'URL');
+ }
+
+ /**
* isPublic - whether this document is available to the general
public.
*
* @return boolean is_public.
@@ -358,8 +367,8 @@
/**
* update - use this function to update an existing entry in the
database.
*
- * @param string The filename of this document.
- * @param string The filetype of this document.
+ * @param string The filename of this document. Can be a URL.
+ * @param string The filetype of this document. If filename is
URL, this should be 'URL';
* @param string The contents of this document (should be
addslashes()'d before entry).
* @param int The doc_group id of the doc_groups table.
* @param string The title of this document.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gforge-commits] gforge/common/docman Document.class,1.10,1.11,
tperdue <=