Example #1
0
 /**
  * @return string The instance URL for this resource. It needs to be special
  *                cased because it doesn't fit into the standard resource pattern.
  */
 public function instanceUrl()
 {
     if ($result = parent::instanceUrl()) {
         return $result;
     }
     $id = $this['id'];
     $id = Util\Util::utf8($id);
     $extn = urlencode($id);
     $base = self::classUrl();
     return "{$base}/{$extn}";
 }
 /**
  * @return string The instance URL for this resource. It needs to be special
  *    cased because it doesn't fit into the standard resource pattern.
  */
 public function instanceUrl()
 {
     $result = parent::instanceUrl();
     if ($result) {
         return $result;
     } else {
         $id = $this['id'];
         $id = Util\Util::utf8($id);
         $extn = urlencode($id);
         $base = BitcoinReceiver::classUrl();
         return "{$base}/{$extn}";
     }
 }