PluginProbe
GetResponse Forms by Optin Cat / 1.3.5
GetResponse Forms by Optin Cat v1.3.5
1.3.4 1.3.5 1.3.6 1.3.8 1.3.9 1.4.0 1.4.1 1.4.2 1.5.0 1.5.1 1.5.2 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 1.6.1 1.6.2 1.6.3 1.7.0 1.7.1 1.7.2 1.8.0 1.8.1 2.0.0 All 36 releases
getresponse / includes / classes / kint / parsers / custom / arrayobject.php

arrayobject.php in GetResponse Forms by Optin Cat 1.3.5, at includes/classes/kint/parsers/custom/arrayobject.php

27 lines 665 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 class Kint_Parsers_ArrayObject extends kintParser
3 {
4 protected function _parse( & $variable )
5 {
6 if ( !is_object( $variable ) ) return false;
7
8 $reflection = new ReflectionClass( $variable );
9 $parentClass = $reflection->getParentClass();
10
11 if ( $parentClass !== false && $parentClass->name === 'ArrayObject' ) {
12 $arrayCopy = $variable->getArrayCopy();
13 foreach ( $arrayCopy as $k => $var ) {
14 $t = kintParser::factory( $var );
15 $t->name = "'{$k}'";
16 $t->operator = '=>';
17 $this->value[] = $t;
18 }
19
20 $this->type = 'ArrayObject contents';
21 $this->size = count( $arrayCopy );
22 } else {
23 return false;
24 }
25 }
26 }
27