cvs: pearweb /include/pepr pepr.php
| From: | Tobias Schlitt | Date: | Fri, 21 May 2004 09:31:22 +0000 |
| Subject: | cvs: pearweb /include/pepr pepr.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-19720@lists.php.net to get a copy of this message | ||
toby Fri May 21 05:31:22 2004 EDT
Modified files:
/pearweb/include/pepr pepr.php
Log:
* Adding markup values (for now: wiki markup).
http://cvs.php.net/diff.php/pearweb/include/pepr/pepr.php?r1=1.29&r2=1.30&ty=u
Index: pearweb/include/pepr/pepr.php
diff -u pearweb/include/pepr/pepr.php:1.29 pearweb/include/pepr/pepr.php:1.30
--- pearweb/include/pepr/pepr.php:1.29 Fri Apr 9 05:41:59 2004
+++ pearweb/include/pepr/pepr.php Fri May 21 05:31:21 2004
@@ -56,6 +56,8 @@
var $links;
var $votes;
+
+ var $markup;
function proposal ( $dbhResArr ) {
$this->fromArray($dbhResArr);
@@ -138,7 +140,8 @@
vote_date = FROM_UNIXTIME({$this->vote_date}),
longened_date = FROM_UNIXTIME({$this->longened_date}),
status = ".$dbh->quote($this->status).",
- user_handle = ".$dbh->quote($this->user_handle)."
+ user_handle = ".$dbh->quote($this->user_handle).",
+ markup = ".$dbh->quote($this->markup)."
WHERE id = ".$this->id;
$res = $dbh->query($sql);
if (DB::isError($dbh)) {
@@ -146,7 +149,7 @@
}
} else {
$sql = "INSERT INTO package_proposals (pkg_category, pkg_name, pkg_license,
pkg_describtion,
- pkg_deps, draft_date, status, user_handle) VALUES (
+ pkg_deps, draft_date, status, user_handle, markup) VALUES (
".$dbh->quote($this->pkg_category).",
".$dbh->quote($this->pkg_name).",
".$dbh->quote($this->pkg_license).",
@@ -154,7 +157,8 @@
".$dbh->quote($this->pkg_deps).",
FROM_UNIXTIME(".time()."),
".$dbh->quote($this->status).",
- ".$dbh->quote($this->user_handle).")";
+ ".$dbh->quote($this->user_handle).",
+ ".$dbh->quote($this->markup).")";
$res = $dbh->query($sql);
if (DB::isError($dbh)) {
return $res;