public function create($url) {
    $part = parse_url($url);

    $appendQuery = false;

    if(isset($part['query'])) {
      $appendQuery = true;
    }

    $request = $this->getRequest($url);
    $token = $this->getToken($request);

    if($appendQuery === true) {
      return $url.'&'.$this->getParam.'='.$token;
    } else {
      return $url.'?'.$this->getParam.'='.$token;
    }
  }
public function create($url) {
    $part = parse_url($url);

    $appendQuery = false;

    if(isset($part['query'])) {
      $appendQuery = true;
    }

    $request = $this->getRequest($url);
    $token = $this->getToken($request);

    if($appendQuery === true) {
      return $url.'&'.$this->getParam.'='.$token;
    } else {
      return $url.'?'.$this->getParam.'='.$token;
    }
  }
public function create ( $ url ) { $ part = parse_url ( $ url ) ; $ appendQuery = false ; if ( isset ( $ part [ 'query' ] ) ) { $ appendQuery = true ; } $ request = $ this -> getRequest ( $ url ) ; $ token = $ this -> getToken ( $ request ) ; if ( $ appendQuery === true ) { return $ url . '&' . $ this -> getParam . '=' . $ token ; } else { return $ url . '?' . $ this -> getParam . '=' . $ token ; } }
Create a security token for a URL.

@param string $url
URL to create token for.

@return string
Return a URL with the security token included.
Create a security token for a URL .