public function validateUsername($username)
    {
        $person = $this->getService('repos:people.person')->find(array('username' => $username));

        if ($person) {
            $this->setMessage('Username is already in use');
            return false;
        }

        return true;
    }
public function validateUsername($username)
    {
        $person = $this->getService('repos:people.person')->find(array('username' => $username));

        if ($person) {
            $this->setMessage('Username is already in use');
            return false;
        }

        return true;
    }
public function validateUsername ( $ username ) { $ person = $ this -> getService ( 'repos:people.person' ) -> find ( array ( 'username' => $ username ) ) ; if ( $ person ) { $ this -> setMessage ( 'Username is already in use' ) ; return false ; } return true ; }
Validates a username.

@param string $email Email to validate     *

@return bool
Validates a username .