summaryrefslogtreecommitdiff
path: root/classes/Profile.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-05-21 07:02:53 -0400
committerEvan Prodromou <evan@prodromou.name>2008-05-21 07:02:53 -0400
commit46b3f1c3a746044ae868c06bf3027e0a3ea27433 (patch)
tree6326d60d0dc7afdda472b383ceb17af46f096f07 /classes/Profile.php
parent82c05d389ab0a0bb64a339d0cf3547d3c6ada3ae (diff)
remove validation code
darcs-hash:20080521110253-84dde-e8d6f62225bb56f5e08b28b35d23ccfbe56984fd.gz
Diffstat (limited to 'classes/Profile.php')
-rw-r--r--classes/Profile.php26
1 files changed, 0 insertions, 26 deletions
diff --git a/classes/Profile.php b/classes/Profile.php
index 9cb486a48..5a678eb54 100644
--- a/classes/Profile.php
+++ b/classes/Profile.php
@@ -72,30 +72,4 @@ class Profile extends DB_DataObject
return NULL;
}
}
-
- function validateNickname() {
- return Validate::string($this->nickname, array('min_length' => 1, 'max_length' => 64,
- 'format' => VALIDATE_ALPHA_LOWER . VALIDATE_NUM));
- }
-
- function validateProfileurl() {
- return Validate::uri($this->profileurl, array('allowed_schemes' => array('http', 'https')));
- }
-
- function validateHomepage() {
- return (strlen($this->homepage) == 0) ||
- Validate::uri($this->homepage, array('allowed_schemes' => array('http', 'https')));
- }
-
- function validateBio() {
- return Validate::string($this->bio, array('min_length' => 0, 'max_length' => 140));
- }
-
- function validateLocation() {
- return Validate::string($this->location, array('min_length' => 0, 'max_length' => 255));
- }
-
- function validateFullname() {
- return Validate::string($this->fullname, array('min_length' => 0, 'max_length' => 255));
- }
}