Example #1
0
 /**
  * 
  * Convenience method for getting a dump of the record, or one of its
  * properties, or an external variable.
  * 
  * @param mixed $var If null, dump $this; if a string, dump $this->$var;
  * otherwise, dump $var.
  * 
  * @param string $label Label the dump output with this string.
  * 
  * @return void
  * 
  */
 public function dump($var = null, $label = null)
 {
     if ($var) {
         return parent::dump($var, $label);
     }
     $clone = clone $this;
     unset($clone->_model);
     parent::dump($clone, $label);
 }