function __construct($content) { parent::__construct($content); $this->encoding = $this->getEncoding($content); switch ($this->encoding) { case parent::$KEY_ENCODING_PEM: $this->csr_pem = $this->content; break; case parent::$KEY_ENCODING_DER: $this->csr_pem = $this->der2pem($this->content); $this->csr_der = $this->content; break; default: throw new CryptoElementException("Internal problem, encoding set to non-recognizable format."); } }
function __construct($content) { parent::__construct($content); $this->spkac_der = $content; }