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); }
public function __toString() { $output = GameRocket_Util::attributesToString($this->_attributes); return __CLASS__ . '[' . $output . ']'; }
public function __toString() { return __CLASS__ . '[' . GameRocket_Util::attributesToString($this->_attributes) . ']'; }