Ejemplo n.º 1
0
 /**
  *
  * {@inheritdoc}
  *
  */
 public function enterHash(Cursor $cursor, $type, $class, $hasChild)
 {
     if (Cursor::HASH_INDEXED === $type || Cursor::HASH_ASSOC === $type) {
         $class = 0;
     }
     parent::enterHash($cursor, $type, $class, $hasChild);
 }
Ejemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function enterHash(Cursor $cursor, $type, $class, $hasChild)
 {
     parent::enterHash($cursor, $type, $class, false);
     if ($hasChild) {
         if ($cursor->refIndex) {
             $r = Cursor::HASH_OBJECT !== $type ? 1 - (Cursor::HASH_RESOURCE !== $type) : 2;
             $r .= $r && 0 < $cursor->softRefHandle ? $cursor->softRefHandle : $cursor->refIndex;
             $this->line .= sprintf('<samp id=%s-ref%s>', $this->dumpId, $r);
         } else {
             $this->line .= '<samp>';
         }
         $this->dumpLine($cursor->depth);
     }
 }
Ejemplo n.º 3
0
 /**
  * {@inheritdoc}
  */
 protected function enterHash(Cursor $cursor, $prefix, $hasChild)
 {
     if ($hasChild) {
         $prefix .= '<span name=sf-dump-child>';
     }
     return parent::enterHash($cursor, $prefix, $hasChild);
 }