public function getProperty($userId, $propertyName)
    {
        //anydataset.Row
        $user = $this->getById($userId);
        if ($user !== null) {
            $values = $user->get($propertyName);

            if ($this->isAdmin($userId)) {
                return array("admin" => "admin");
            }

            return $values;
        }

        return null;
    }
public function getProperty($userId, $propertyName)
    {
        //anydataset.Row
        $user = $this->getById($userId);
        if ($user !== null) {
            $values = $user->get($propertyName);

            if ($this->isAdmin($userId)) {
                return array("admin" => "admin");
            }

            return $values;
        }

        return null;
    }
public function getProperty ( $ userId , $ propertyName ) { //anydataset.Row $ user = $ this -> getById ( $ userId ) ; if ( $ user !== null ) { $ values = $ user -> get ( $ propertyName ) ; if ( $ this -> isAdmin ( $ userId ) ) { return array ( "admin" => "admin" ) ; } return $ values ; } return null ; }
Return all sites from a specific user
Return String vector with all sites

@param string $userId User ID
@param string $propertyName Property name
@return array
@throws \ByJG\Authenticate\Exception\UserNotFoundException
@throws \ByJG\Serializer\Exception\InvalidArgumentException
Return all sites from a specific user Return String vector with all sites