Commit 161415f3 authored by Leigh B Stoller's avatar Leigh B Stoller

Add status,locked, and Delete methods.

parent d6c824d1
......@@ -82,6 +82,8 @@ class Profile
function weburi() { return $this->field('weburi'); }
function description() { return $this->field('description'); }
function rspec() { return $this->field('rspec'); }
function locked() { return $this->field('status'); }
function status() { return $this->field('locked'); }
# Hmm, how does one cause an error in a php constructor?
function IsValid() {
......@@ -138,6 +140,13 @@ class Profile
return 0;
}
# Delete should probably move to the backend?
function Delete() {
$idx = $this->idx();
DBQueryFatal("delete from apt_profiles where idx='$idx'");
return 0;
}
#
# URL.
#
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment