Example #1
0
 public function __construct()
 {
     parent::__construct(self::getLoadersMap(), self::geNormalizersMap(), self::getSupportedFields());
 }
Example #2
0
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct(self::getLoadersMap(), self::getNormalizersMap(), self::getAllFields());
 }
Example #3
0
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct(FieldsValues::construct([self::FIELD_UNIQUE_ID, self::FIELD_USERNAME, self::FIELD_FIRST_NAME, self::FIELD_LAST_NAME, self::FIELD_FULL_NAME, self::FIELD_EMAIL, self::FIELD_PROFILE_URL, self::FIELD_IMAGE_URL, self::FIELD_VERIFIED_EMAIL, self::FIELD_EXTRA]), self::getDefaultNormalizersMap()->add([self::FIELD_UNIQUE_ID => 'id', self::FIELD_USERNAME => 'name', self::FIELD_FIRST_NAME => 'given_name', self::FIELD_LAST_NAME => 'family_name', self::FIELD_FULL_NAME => 'name', self::FIELD_EMAIL => 'email', self::FIELD_IMAGE_URL => 'picture', self::FIELD_VERIFIED_EMAIL => ['verified_email', false]]));
 }
Example #4
0
 public function __construct()
 {
     parent::__construct($this->getDefaultLoadersMap(), $this->getNormalizersMap(), $this->getSupports());
 }
Example #5
0
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct(FieldsValues::construct([self::FIELD_UNIQUE_ID, self::FIELD_USERNAME, self::FIELD_FIRST_NAME, self::FIELD_LAST_NAME, self::FIELD_FULL_NAME, self::FIELD_EMAIL, self::FIELD_DESCRIPTION, self::FIELD_LOCATION, self::FIELD_PROFILE_URL, self::FIELD_IMAGE_URL, self::FIELD_WEBSITES, self::FIELD_VERIFIED_EMAIL, self::FIELD_EXTRA]), self::getDefaultNormalizersMap()->noNormalizer(self::FIELD_IMAGE_URL)->prefilled(self::FIELD_VERIFIED_EMAIL, true)->paths([self::FIELD_UNIQUE_ID => 'id', self::FIELD_USERNAME => 'username', self::FIELD_FIRST_NAME => 'first_name', self::FIELD_LAST_NAME => 'last_name', self::FIELD_FULL_NAME => 'name', self::FIELD_EMAIL => 'email', self::FIELD_DESCRIPTION => 'bio', self::FIELD_LOCATION => 'location.name', self::FIELD_PROFILE_URL => 'link'])->prefilled(self::FIELD_VERIFIED_EMAIL, true), self::getDefaultLoadersMap()->loader('image')->readdField(self::FIELD_IMAGE_URL));
 }
Example #6
0
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct(FieldsValues::construct([self::FIELD_UNIQUE_ID, self::FIELD_USERNAME, self::FIELD_FULL_NAME, self::FIELD_FIRST_NAME, self::FIELD_LAST_NAME, self::FIELD_DESCRIPTION, self::FIELD_WEBSITES, self::FIELD_IMAGE_URL, self::FIELD_PROFILE_URL, self::FIELD_EXTRA]), self::getDefaultNormalizersMap()->pathContext('data')->paths([self::FIELD_UNIQUE_ID => 'id', self::FIELD_USERNAME => 'username', self::FIELD_FULL_NAME => 'full_name', self::FIELD_DESCRIPTION => 'bio', self::FIELD_WEBSITES => 'website', self::FIELD_IMAGE_URL => 'profile_picture']));
 }
Example #7
0
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct(FieldsValues::construct([self::FIELD_UNIQUE_ID, self::FIELD_USERNAME, self::FIELD_FIRST_NAME, self::FIELD_LAST_NAME, self::FIELD_FULL_NAME, self::FIELD_IMAGE_URL, self::FIELD_EMAIL, self::FIELD_EXTRA]), self::getDefaultNormalizersMap()->pathContext('user')->paths([self::FIELD_UNIQUE_ID => 'id', self::FIELD_USERNAME => 'email', self::FIELD_FIRST_NAME => 'first_name', self::FIELD_LAST_NAME => 'last_name', self::FIELD_EMAIL => 'email']));
 }
Example #8
0
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct(FieldsValues::construct([self::FIELD_UNIQUE_ID, self::FIELD_USERNAME, self::FIELD_FULL_NAME, self::FIELD_FIRST_NAME, self::FIELD_LAST_NAME, self::FIELD_DESCRIPTION, self::FIELD_LOCATION, self::FIELD_PROFILE_URL, self::FIELD_IMAGE_URL, self::FIELD_WEBSITES, self::FIELD_EXTRA]), self::getDefaultNormalizersMap()->paths([self::FIELD_UNIQUE_ID => 'id', self::FIELD_USERNAME => 'screen_name', self::FIELD_FULL_NAME => 'name', self::FIELD_DESCRIPTION => 'description', self::FIELD_LOCATION => 'location', self::FIELD_IMAGE_URL => 'profile_image_url']));
 }
Example #9
0
 public function testUnsupportedField()
 {
     $extractor = new LazyExtractor();
     $this->assertNull($extractor->getUniqueId());
 }
Example #10
0
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct(FieldsValues::construct([self::FIELD_UNIQUE_ID, self::FIELD_FIRST_NAME, self::FIELD_LAST_NAME, self::FIELD_FULL_NAME, self::FIELD_EMAIL, self::FIELD_DESCRIPTION, self::FIELD_LOCATION, self::FIELD_PROFILE_URL, self::FIELD_IMAGE_URL, self::FIELD_WEBSITES, self::FIELD_VERIFIED_EMAIL, self::FIELD_EXTRA]), self::getDefaultNormalizersMap()->paths([self::FIELD_UNIQUE_ID => 'id', self::FIELD_FIRST_NAME => 'firstName', self::FIELD_LAST_NAME => 'lastName', self::FIELD_EMAIL => 'emailAddress', self::FIELD_DESCRIPTION => 'summary', self::FIELD_LOCATION => 'location', self::FIELD_PROFILE_URL => 'publicProfileUrl', self::FIELD_IMAGE_URL => 'pictureUrl'])->prefilled(self::FIELD_VERIFIED_EMAIL, true));
 }
Example #11
0
 public function __construct()
 {
     parent::__construct(array_merge(self::getDefaultLoadersMap(), array(self::FIELD_GENDER => self::FIELD_GENDER)), array_merge(self::getDefaultNormalizersMap(), array(self::FIELD_GENDER => self::FIELD_GENDER)), self::getSupportedFields());
 }
Example #12
0
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct(FieldsValues::construct([self::FIELD_UNIQUE_ID, self::FIELD_USERNAME, self::FIELD_FIRST_NAME, self::FIELD_LAST_NAME, self::FIELD_FULL_NAME, self::FIELD_EMAIL, self::FIELD_DESCRIPTION, self::FIELD_LOCATION, self::FIELD_PROFILE_URL, self::FIELD_IMAGE_URL, self::FIELD_VERIFIED_EMAIL, self::FIELD_EXTRA]), self::getDefaultNormalizersMap()->pathContext('response.0')->paths([self::FIELD_UNIQUE_ID => 'uid', self::FIELD_FIRST_NAME => 'first_name', self::FIELD_LAST_NAME => 'last_name', self::FIELD_EMAIL => 'email', self::FIELD_DESCRIPTION => 'about', self::FIELD_IMAGE_URL => 'photo_max_orig']));
 }
Example #13
0
 public function __construct()
 {
     parent::__construct(FieldsValues::construct([self::FIELD_UNIQUE_ID, self::FIELD_USERNAME, self::FIELD_FIRST_NAME, self::FIELD_LAST_NAME, self::FIELD_FULL_NAME, self::FIELD_EMAIL, self::FIELD_LOCATION, self::FIELD_DESCRIPTION, self::FIELD_IMAGE_URL, self::FIELD_PROFILE_URL, self::FIELD_VERIFIED_EMAIL, self::FIELD_EXTRA]), self::getDefaultNormalizersMap()->paths([self::FIELD_UNIQUE_ID => 'id', self::FIELD_USERNAME => 'login', self::FIELD_FULL_NAME => 'name', self::FIELD_LOCATION => 'location', self::FIELD_DESCRIPTION => 'bio', self::FIELD_IMAGE_URL => 'avatar_url', self::FIELD_PROFILE_URL => 'html_url']), self::getDefaultLoadersMap()->loader('email')->readdFields([self::FIELD_EMAIL, self::FIELD_VERIFIED_EMAIL]));
 }
Example #14
0
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct(FieldsValues::construct([self::FIELD_UNIQUE_ID, self::FIELD_USERNAME, self::FIELD_FIRST_NAME, self::FIELD_LAST_NAME, self::FIELD_FULL_NAME, self::FIELD_EMAIL, self::FIELD_DESCRIPTION, self::FIELD_LOCATION, self::FIELD_PROFILE_URL, self::FIELD_IMAGE_URL, self::FIELD_EXTRA]), self::getDefaultNormalizersMap()->noNormalizer(self::FIELD_IMAGE_URL)->prefilled(self::FIELD_VERIFIED_EMAIL, true)->pathContext('results.0')->paths([self::FIELD_UNIQUE_ID => 'user_id', self::FIELD_USERNAME => 'login_name', self::FIELD_FIRST_NAME => 'first_name', self::FIELD_LAST_NAME => 'last_name', self::FIELD_EMAIL => 'primary_email', self::FIELD_DESCRIPTION => 'bio', self::FIELD_IMAGE_URL => 'image_url_75x75']));
 }