????JFIF??x?x????'
Server IP : 79.136.114.73 / Your IP : 216.73.216.172 Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64 User : www-data ( 33) PHP Version : 5.5.9-1ubuntu4.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/local/bin/vendor/vgrem/php-spo/src/SharePoint/UserProfiles/ |
Upload File : |
<?php /** * This file was generated by phpSPO model generator 2019-11-16T20:01:10+00:00 16.0.19506.12022 */ namespace Office365\SharePoint\UserProfiles; use Office365\Runtime\Actions\InvokeMethodQuery; use Office365\Runtime\Actions\InvokePostMethodQuery; use Office365\Runtime\ClientRuntimeContext; use Office365\Runtime\ClientObject; use Office365\Runtime\ClientResult; use Office365\Runtime\ResourcePath; use Office365\Runtime\ResourcePathServiceOperation; class PeopleManager extends ClientObject { public function __construct(ClientRuntimeContext $ctx) { parent::__construct($ctx, new ResourcePath("SP.UserProfiles.PeopleManager")); } /** * Checks whether the specified user is following the current user. * @param string $accountName * @return ClientResult */ public function amIFollowedBy($accountName) { $result = new ClientResult(); $qry = new InvokeMethodQuery($this, "AmIFollowedBy", array(rawurlencode($accountName))); $this->getContext()->addQueryAndResultObject($qry, $result); return $result; } /** * Gets user properties for the current user. * @return PersonProperties */ public function getMyProperties() { return new PersonProperties($this->getContext(), new ResourcePathServiceOperation("getMyProperties",null,$this->getResourcePath())); } /** * Gets the people who are following the current user. * @return PersonProperties */ public function getMyFollowers() { return new PersonProperties($this->getContext(), new ResourcePathServiceOperation("getMyFollowers",null,$this->getResourcePath())); } /** * Adds the specified user to the current user's list of followed users. * @param string $accountName */ public function follow($accountName) { $qry = new InvokePostMethodQuery($this, "follow", array(rawurlencode($accountName))); $this->getContext()->addQuery($qry); } /** * Remove the specified user from the current user's list of followed users. * @param string $accountName * @return ClientResult */ public function stopFollowing($accountName) { $result = new ClientResult(); $qry = new InvokePostMethodQuery($this, "StopFollowing", array(rawurlencode($accountName))); $this->getContext()->addQueryAndResultObject($qry, $result); return $result; } /** * Checks whether the current user is following the specified user. * @param string $accountName * @return ClientResult */ public function amIFollowing($accountName) { $result = new ClientResult(); $qry = new InvokeMethodQuery($this, "AmIFollowing", array(rawurlencode($accountName))); $this->getContext()->addQueryAndResultObject($qry, $result); return $result; } /** * @param string $accountName The account name of the user, encoded and passed as an alias in the query string, * as shown in the request example. See Implementation notes for other example formats. * @return PersonPropertiesCollection */ public function getFollowersFor($accountName) { return new PersonPropertiesCollection($this->getContext(), new ResourcePathServiceOperation("getFollowersFor", array(rawurlencode($accountName)),$this->getResourcePath())); } /** * Gets the specified user profile property for the specified user. * @param string $accountName The account name of the user, encoded and passed as an alias in the query string, as shown in the request example. * @param string $propertyName The case-sensitive name of the property to get. * @return ClientResult The specified profile property for the specified user. */ public function getUserProfilePropertyFor($accountName, $propertyName) { $clientResult = new ClientResult(); $qry = new InvokeMethodQuery($this, "GetUserProfilePropertyFor", array("accountname" => rawurlencode($accountName), "propertyname" => $propertyName)); $this->getContext()->addQueryAndResultObject($qry, $clientResult); return $clientResult; } /** * @return string */ public function getEditProfileLink() { if (!$this->isPropertyAvailable("EditProfileLink")) { return null; } return $this->getProperty("EditProfileLink"); } /** * @var string */ public function setEditProfileLink($value) { $this->setProperty("EditProfileLink", $value, true); } /** * @return bool */ public function getIsMyPeopleListPublic() { if (!$this->isPropertyAvailable("IsMyPeopleListPublic")) { return null; } return $this->getProperty("IsMyPeopleListPublic"); } /** * @var bool */ public function setIsMyPeopleListPublic($value) { $this->setProperty("IsMyPeopleListPublic", $value, true); } }