Lines Matching refs:root

572      * @param array $root (by reference)
575 private function mapInExtensions(array &$root, $path)
577 $extensions = &$this->subArrayUnchecked($root, $path);
626 * @param array $root (by reference)
629 private function mapOutExtensions(array &$root, $path)
631 $extensions = &$this->subArray($root, $path, !empty($this->extensionValues));
707 * @param array $root (by reference)
710 private function mapInAttributes(&$root, $path)
712 $attributes = &$this->subArray($root, $path);
749 * @param array $root (by reference)
752 private function mapOutAttributes(&$root, $path)
754 $attributes = &$this->subArray($root, $path);
793 * @param array $root (by reference)
796 private function mapInDNs(array &$root, $path)
798 $dns = &$this->subArray($root, $path);
824 * @param array $root (by reference)
827 private function mapOutDNs(array &$root, $path)
829 $dns = &$this->subArray($root, $path);
3099 * @param array $root
3103 private function isSubArrayValid(array $root, $path)
3105 if (!is_array($root)) {
3110 if (!is_array($root)) {
3114 if (!isset($root[$i])) {
3118 $root = $root[$i];
3128 * so $root should be checked with _isSubArrayValid() first.
3131 * Passing a reference (i.e. $root) by-value (i.e. to is_array())
3132 * creates a copy. If $root is an especially large array, this is expensive.
3134 * @param array $root
3139 private function &subArrayUnchecked(array &$root, $path, $create = false)
3144 if (!isset($root[$i])) {
3149 $root[$i] = [];
3152 $root = &$root[$i];
3155 return $root;
3161 * @param array $root
3166 private function &subArray(array &$root = null, $path, $create = false)
3170 if (!is_array($root)) {
3175 if (!is_array($root)) {
3179 if (!isset($root[$i])) {
3184 $root[$i] = [];
3187 $root = &$root[$i];
3190 return $root;
3196 * @param array $root
3201 private function &extensions(array &$root = null, $path = null, $create = false)
3203 if (!isset($root)) {
3204 $root = $this->currentCert;
3209 case !is_array($root):
3211 case isset($root['tbsCertificate']):
3214 case isset($root['tbsCertList']):
3217 case isset($root['certificationRequestInfo']):
3219 $attributes = &$this->subArray($root, $pth, $create);
3237 $extensions = &$this->subArray($root, $path, $create);