public function FetchPackageId()
 {
     $redirect = HttpUtilities::GetRedirectUrl($this->data['shortUrl']);
     $redirect = end(explode('/', $redirect));
     return $redirect;
 }
Example #2
0
 /**
  * Resolve ListItem entity type
  * @return string
  */
 private function getListItemEntityType()
 {
     $encName = HttpUtilities::xmlEncode($this->name);
     return 'SP.Data.' . $encName . 'ListItem';
 }
Example #3
0
 /**
  * Save the SPO auth cookies
  * @param mixed $header
  */
 protected function saveAuthCookies($header)
 {
     $cookies = HttpUtilities::cookieParse($header);
     $this->FedAuth = $cookies['FedAuth'];
     $this->rtFa = $cookies['rtFa'];
 }