--- FreeBSD/tinderbox/webui/core/User.php 2007/11/02 20:56:34 1.1.1.1 +++ FreeBSD/tinderbox/webui/core/User.php 2007/11/12 22:45:14 1.1.1.1.2.1 @@ -24,59 +24,61 @@ # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # +# $Paefchen$ # $MCom: portstools/tinderbox/webui/core/User.php,v 1.4 2005/10/10 23:30:16 ade Exp $ # - require_once 'TinderObject.php'; - class User extends TinderObject { +class User extends TinderObject { - function User($argv = array()) { - $object_hash = array( - 'user_id' => '', - 'user_name' => '', - 'user_email' => '', - 'user_password' => '', - 'user_www_enabled' => '' - ); - - $this->TinderObject($object_hash, $argv); + public function __construct($argv = array()) { + parent::__construct( + array( + 'user_id' => '', + 'user_name' => '', + 'user_email' => '', + 'user_password' => '', + 'user_www_enabled' => '' + ), + $argv + ); } - function getId() { + public function getId() { return $this->user_id; } - function getName() { + public function getName() { return $this->user_name; } - function getEmail() { + public function getEmail() { return $this->user_email; } - function getPassword() { + public function getPassword() { return $this->user_password; } - function getWwwEnabled() { + public function getWwwEnabled() { return $this->_truth_array[$this->user_www_enabled]; } - function setName($name) { + public function setName($name) { return $this->user_name = $name; } - function setEmail($email) { + public function setEmail($email) { return $this->user_email = $email; } - function setPassword($password) { + public function setPassword($password) { return $this->user_password = $password; } - function setWwwEnabled($www_enabled) { + public function setWwwEnabled($www_enabled) { return $this->user_www_enabled = $www_enabled; } - } +} + ?>