public function __toString()
 {
     $objOutput = GameRocket_Util::implodeAssociativeArray($this->_attributes);
     return get_class($this) . '[' . $objOutput . ']';
 }
Exemple #2
0
 public static function attributesToString($attributes)
 {
     $printableAttribs = array();
     foreach ($attributes as $key => $value) {
         if (is_array($value)) {
             $pAttrib = GameRocket_Util::attributesToString($value);
         } else {
             if ($value instanceof DateTime) {
                 $pAttrib = $value->format(DateTime::RFC850);
             } else {
                 $pAttrib = $value;
             }
         }
         $printableAttribs[$key] = sprintf('%s', $pAttrib);
     }
     return GameRocket_Util::implodeAssociativeArray($printableAttribs);
 }