public function set($property, $value = null)
	{
		if ($property == 'password')
		{
			if ($value != '')
			{
				$this->userPassword = \Hubzero\User\Password::getPasshash($value);
			}
			else
			{
				$this->userPassword = '';
			}

			$this->_password = $value;

			return true;
		}

		if ('_' == substr($property, 0, 1))
		{
			$this->setError("Can't access private properties");
			return false;
		}

		if (!property_exists(__CLASS__, $property))
		{
			if (property_exists(__CLASS__, '_auxs_' . $property))
			{
				$property = '_auxs_' . $property;
			}
			else if (property_exists(__CLASS__, '_auxv_' . $property))
			{
				$property = '_auxv_' . $property;
			}
			else
			{
				$this->setError("Unknown property: $property");
				return false;
			}
		}

		if ('_auxv_' == substr($property, 0, 6))
		{
			if (empty($value))
			{
				$value = array();
			}
			else
			{
				if (!is_array($value))
				{
					$value = array($value);
				}

				$list = array_unique($value);
				sort($list);
				unset($value);

				foreach ($list as $v)
				{
					$value[] = strval($v);
				}
			}
		}
		elseif (is_string($value))
		{
			$value = strval($value);
		}

		$this->$property = $value;

		if ($property == 'userPassword')
		{
			$this->_password = '';
		}

		return true;
	}
public function set($property, $value = null)
	{
		if ($property == 'password')
		{
			if ($value != '')
			{
				$this->userPassword = \Hubzero\User\Password::getPasshash($value);
			}
			else
			{
				$this->userPassword = '';
			}

			$this->_password = $value;

			return true;
		}

		if ('_' == substr($property, 0, 1))
		{
			$this->setError("Can't access private properties");
			return false;
		}

		if (!property_exists(__CLASS__, $property))
		{
			if (property_exists(__CLASS__, '_auxs_' . $property))
			{
				$property = '_auxs_' . $property;
			}
			else if (property_exists(__CLASS__, '_auxv_' . $property))
			{
				$property = '_auxv_' . $property;
			}
			else
			{
				$this->setError("Unknown property: $property");
				return false;
			}
		}

		if ('_auxv_' == substr($property, 0, 6))
		{
			if (empty($value))
			{
				$value = array();
			}
			else
			{
				if (!is_array($value))
				{
					$value = array($value);
				}

				$list = array_unique($value);
				sort($list);
				unset($value);

				foreach ($list as $v)
				{
					$value[] = strval($v);
				}
			}
		}
		elseif (is_string($value))
		{
			$value = strval($value);
		}

		$this->$property = $value;

		if ($property == 'userPassword')
		{
			$this->_password = '';
		}

		return true;
	}
public function set ( $ property , $ value = null ) { if ( $ property == 'password' ) { if ( $ value != '' ) { $ this -> userPassword = \ Hubzero \ User \ Password :: getPasshash ( $ value ) ; } else { $ this -> userPassword = '' ; } $ this -> _password = $ value ; return true ; } if ( '_' == substr ( $ property , 0 , 1 ) ) { $ this -> setError ( "Can't access private properties" ) ; return false ; } if ( ! property_exists ( __CLASS__ , $ property ) ) { if ( property_exists ( __CLASS__ , '_auxs_' . $ property ) ) { $ property = '_auxs_' . $ property ; } else if ( property_exists ( __CLASS__ , '_auxv_' . $ property ) ) { $ property = '_auxv_' . $ property ; } else { $ this -> setError ( "Unknown property: $property" ) ; return false ; } } if ( '_auxv_' == substr ( $ property , 0 , 6 ) ) { if ( empty ( $ value ) ) { $ value = array ( ) ; } else { if ( ! is_array ( $ value ) ) { $ value = array ( $ value ) ; } $ list = array_unique ( $ value ) ; sort ( $ list ) ; unset ( $ value ) ; foreach ( $ list as $ v ) { $ value [ ] = strval ( $ v ) ; } } } elseif ( is_string ( $ value ) ) { $ value = strval ( $ value ) ; } $ this -> $ property = $ value ; if ( $ property == 'userPassword' ) { $ this -> _password = '' ; } return true ; }
Set a property's value

@param   string   $property  Property name
@param   mixed    $value     Property value
@return  boolean  True on success, False on error
Set a property s value