コード例 #1
0
 /**
  * 
  * Dumps the values of this object.
  * 
  * @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);
     } else {
         $clone = clone $this;
         unset($clone->_config);
         return parent::dump($clone, $label);
     }
 }
コード例 #2
0
ファイル: Related.php プロジェクト: kalkin/solarphp
 /**
  * 
  * Convenience method for getting a dump the whole object, 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->_config);
     unset($clone->_native_model);
     unset($clone->_foreign_model);
     unset($clone->_inflect);
     return parent::dump($clone, $label);
 }