From 1b142192ab8e2c2b1f15901fc1627349f5a6c43c Mon Sep 17 00:00:00 2001 From: kremsy Date: Sat, 10 May 2014 13:33:41 +0200 Subject: [PATCH] dump playerscache optional --- application/core/Players/Player.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/application/core/Players/Player.php b/application/core/Players/Player.php index 13463301..0d327df2 100644 --- a/application/core/Players/Player.php +++ b/application/core/Players/Player.php @@ -317,9 +317,14 @@ class Player { /** * Var_Dump the Player + * + * @param bool $dumpCache */ - public function dump() { + public function dump($dumpCache = false) { var_dump(json_decode(json_encode($this))); + if ($dumpCache) { + var_dump("PlayerCache:", $this->cache); + } }