Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
ncphp
/
mcClasses
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit f39aa3e6
authored
Nov 28, 2013
by
sn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
D::show aktualisiert
1 parent
08779a1b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
2 deletions
D/class_D.inc.php
D/class_D.inc.php
View file @
f39aa3e
...
@@ -148,10 +148,10 @@ class D {
...
@@ -148,10 +148,10 @@ class D {
// self::new_echo("<br>______________________<br>", $param_print, $param_force);
// self::new_echo("<br>______________________<br>", $param_print, $param_force);
self
::
printCurrentFunction
(
$param_print
,
"<br>______________________<br>"
,
true
);
self
::
printCurrentFunction
(
$param_print
,
"<br>______________________<br>"
);
// self::new_echo("<b>show(".$param_string.")</b>", $param_print, $param_force);
// self::new_echo("<b>show(".$param_string.")</b>", $param_print, $param_force);
$string_show
=
"<br /><b>show("
.
$param_string
.
")
--
</b><br />"
;
$string_show
=
"<br /><b>show("
.
$param_string
.
")</b><br />"
;
if
(
is_object
(
$param_val
)
&&
get_class
(
$param_val
)
==
'DOMElement'
)
{
if
(
is_object
(
$param_val
)
&&
get_class
(
$param_val
)
==
'DOMElement'
)
{
D
::
showdomelement
(
$param_val
,
$string_show
.
$param_string
,
$param_print
,
$param_force
);
D
::
showdomelement
(
$param_val
,
$string_show
.
$param_string
,
$param_print
,
$param_force
);
...
@@ -159,6 +159,27 @@ class D {
...
@@ -159,6 +159,27 @@ class D {
if
(
is_array
(
$param_val
))
{
if
(
is_array
(
$param_val
))
{
$string_show
.=
"count("
.
$param_val
.
") = "
.
count
(
$param_val
)
.
""
;
$string_show
.=
"count("
.
$param_val
.
") = "
.
count
(
$param_val
)
.
""
;
// self::new_echo("<br/>count(".$param_val.") = ".count($param_val)."", $param_print, $param_force);
// self::new_echo("<br/>count(".$param_val.") = ".count($param_val)."", $param_print, $param_force);
}
else
if
(
is_object
(
$param_val
))
{
$objvars
=
get_object_vars
(
$param_val
);
sort
(
$objvars
);
$objfncs
=
get_class_methods
(
get_class
(
$param_val
));
sort
(
$objfncs
);
$parent
=
get_parent_class
(
$param_val
);
while
(
$parent
)
{
$parents
.=
' extends <b>'
.
$parent
.
'</b>'
;
$parent
=
get_parent_class
(
$parent
);
}
$param_val
=
array
(
'classname'
=>
'<b>'
.
get_class
(
$param_val
)
.
'</b>'
.
$parents
,
'objvars'
=>
$objvars
,
'objfncs'
=>
$objfncs
,
'obj'
=>
$param_val
,
);
}
}
// self::new_echo("<pre>", $param_print, $param_force);
// self::new_echo("<pre>", $param_print, $param_force);
$string_show
.=
"<pre>"
;
$string_show
.=
"<pre>"
;
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment