* @license http://www.apache.org/licenses/LICENSE-2.0 * @link http://phpsx.org * @see http://www.ietf.org/rfc/rfc2141.txt */ class Urn extends Uri { protected $nid; protected $nss; /** * Returns the NID (Namespace Identifier) * * @return string */ public function getNid() { return $this->nid; } /** * Returns the NSS (Namespace Specific String) * * @return string */ public function getNss() { return $this->nss; } protected function parse($urn) { // URNs are case insensitive $urn = strtolower(rawurldecode((string) $urn)); parent::parse($urn); // must have an urn scheme and path part if ($this->scheme != 'urn' || empty($this->path)) { throw new InvalidArgumentException('Invalid urn syntax'); } // parse $this->nid = strstr($this->path, ':', true); $this->nss = substr(strstr($this->path, ':'), 1); } protected function parseAuthority($authority) { } protected function parseParameters($query) { } } __halt_compiler();----SIGNATURE:----dZcGiMNJR8kdejxuuGLPTL1mj82CvxcEsYdIeD43K56YnS/NG+cjySZ8i1aSBYhb8d+3a7B95Kl18dlVuK/k+aWfINv5kRjnH5vXvuxBoOgnXSsGUuck8/PVv8QsKy0NPtbD1gu4EFUUy+RtVx7792LuOAQZltfyQeK+CXVMj3kFsv1INqSjQZsB/WMnqMpzc1Y3NcBhUVcOkxqTYlNjzPtgu4bI2NSll9uZX2ur9gBnBMthepTM+nEqfY7LupLIB5mrie4AcYHDNnh4xBwGdsTH50QwtXYMZ8zrexot2ZlAf7ZX3rqEnjU8Fd55Ywq+GaY4ws34lLzGJOjnM7aH5q9cZiM02WrArc10iNVRe5Jx/OhgEuz9yybopB644PJUUKCMo7xb2LxUsDuwaLoIEsDrETL7Wi0BI7hgKjjp1rNHIgvFktMMWmEl7tNDwEe+BejOPuOT5IIwihhxJAealAMlIBkjPmn5417ZDwVjM1wjoBEQpbD4+1XEFqKNfgSP6oTbVzjzyYmkMmX0MtzPvKLNxe5WXgD/58GeJ+DTTbdyf77zAvF5WB7H6gmGaoY7vItPLkksusrj7KMLCD091IiYelMGaYCBSXqdRZf+GGYUxrLrD2eI5nqKaYYqCPdlbMt6QrykxIclUzJtRKX8z8c+Yf3s7OE4X7HYk+KHHQE=----ATTACHMENT:----NzY1MzY0MDY1MjIwNTQ4NCA1MDI2MDQ4NTExNzU0NzQzIDY4NDAzMzgzNjc0NzA0NjE=