Пример #1
0
 /**
  * @internal just for debug purposes
  * List all properties and their values
  */
 public function show()
 {
     $it = $this->getIter();
     echo '<pre>';
     foreach ($it as $k => $prop) {
         printf('<b>%s</b>: %s %s' . "\n", Strings::left($k, 20, ' ', false), Strings::left(gettype($prop), 10), $prop);
     }
     echo '</pre>';
 }
Пример #2
0
 /**
  * @internal just for debug purposes
  * List all properties and their values
  */
 public function show()
 {
     echo '<h1>PROPERTIES:</h2>';
     echo '<pre>';
     foreach ($this as $k => $prop) {
         if ($prop === false) {
             $p = 'false';
         } elseif ($prop === true) {
             $p = 'true';
         } elseif (is_null($prop)) {
             $p = '<i>NULL</i>';
         } else {
             $p = $prop;
         }
         printf('<b>%s</b>: %s %s' . "\n", Strings::left($k, 20, ' ', false), Strings::left(gettype($prop), 10), $p);
     }
     echo '</pre>';
     if (!is_null($this->meta)) {
         echo '<h1>META:</h2>';
         $this->meta->show();
     }
 }