Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:48328 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 34790 invoked from network); 18 May 2010 21:36:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 May 2010 21:36:25 -0000 Authentication-Results: pb1.pair.com header.from=mathiasgrimm@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=mathiasgrimm@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.225 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: mathiasgrimm@gmail.com X-Host-Fingerprint: 209.85.217.225 mail-gx0-f225.google.com Received: from [209.85.217.225] ([209.85.217.225:48383] helo=mail-gx0-f225.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 95/51-27340-95803FB4 for ; Tue, 18 May 2010 17:36:25 -0400 Received: by gxk25 with SMTP id 25so3767261gxk.11 for ; Tue, 18 May 2010 14:36:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=W8Im9QpL6/YQCia2//XnzqeYx7nIDdNn8rrZSr0G6VA=; b=sb/gDbwhNXXMOUsbsyLOwhTtmw9fviYVE+xYe0pgbGwRXGoPZpu4NXU84BwsRE8lth 3IdKu9dkt+4u4FHIknO0CTbW6mhcuntgfDawtEG43n7Bh+osZMYEG3WkV+PFBlC5RLL3 EwJ52Nsqx4E65+r+bToyiiRLnIKp4TDDcJx1M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=SUHlze/g92ucVsnlwHIC9edQh7RGsSZnuuoMIUyigxKttEh5LBmy0JHHE2+4tNFleF 0pbYucIejpJF+M2f9wzFr7uJno1w0oDyOe2Vtn48tnDYzF846r3TvdbsJ9CEPjMkOT0e 3CmGsOoNzrx6Ab6uuqkbcCsVR4oKSnxDi6324= MIME-Version: 1.0 Received: by 10.101.29.10 with SMTP id g10mr9189413anj.237.1274218582701; Tue, 18 May 2010 14:36:22 -0700 (PDT) Received: by 10.100.137.18 with HTTP; Tue, 18 May 2010 14:36:22 -0700 (PDT) In-Reply-To: <20.90.27340.41503FB4@pb1.pair.com> References: <20.90.27340.41503FB4@pb1.pair.com> Date: Tue, 18 May 2010 18:36:22 -0300 Message-ID: To: Sara Golemon Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary=001636b2b641fcf6b70486e52196 Subject: Re: [PHP-DEV] Re: Jsonable interface From: mathiasgrimm@gmail.com (Mathias Grimm) --001636b2b641fcf6b70486e52196 Content-Type: text/plain; charset=ISO-8859-1 _json function to override properties and jsonIgore properties when call json_encode($obMyClass) the __json and __jsonIgore will be called. if a class is jsonable, this means that all properties will be encoded, except properties on the ignore list > This seems to be an attempt to solve a subset of the problem solved by > JSONSerializable, but from a negation rather than a explicit orientation. > What this doesn't provide, is the ability to serialize an object with > modified or even completely different data from what is found in the base > properties (something which may well be desired). > > This approach also has the very obvious added workload of introducing > property traits (something I'm not against, but would require a great deal > more discussion). > > Given that it does less at higher cost, I'm inclined to reply with "meh". > > -Sara > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Mathias Grimm Sun Certified Java Programmer 6.0 #SUN604760 Zend Certified Engineer #ZEND006756 http://mathiasgrimm.com.br http://phpempregos.com.br --001636b2b641fcf6b70486e52196--