Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:40041 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 98917 invoked from network); 21 Aug 2008 09:14:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Aug 2008 09:14:56 -0000 Authentication-Results: pb1.pair.com header.from=pstradomski@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=pstradomski@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 66.249.92.168 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: pstradomski@gmail.com X-Host-Fingerprint: 66.249.92.168 ug-out-1314.google.com Received: from [66.249.92.168] ([66.249.92.168:37530] helo=ug-out-1314.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C9/13-06543-F023DA84 for ; Thu, 21 Aug 2008 05:14:55 -0400 Received: by ug-out-1314.google.com with SMTP id c2so981068ugf.37 for ; Thu, 21 Aug 2008 02:14:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:reply-to:to:subject:date :user-agent:cc:references:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:message-id; bh=2pyrX5473DzkoFX/gYSzvvxl+m7FFrTMjwKZOjZERAE=; b=ersO6eatpfBceTXAB5t11aenl9JV4zHLSMh4p3uzyx3MPhQ6D8KoIs1R1CQAy9USs5 Jc9BmI/lOg4atHDjXDLbN+qVUI6GQxcN9rR7FVJO3ANbBeNjQkHf4U87Fi5Y9X0e2CMq 3j/JQJ0igaXbeIbLWRAybf/F6ynJGWUnONZHU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:reply-to:to:subject:date:user-agent:cc:references:in-reply-to :mime-version:content-type:content-transfer-encoding :content-disposition:message-id; b=JgfpQ/1jX7B4j5OvO5wUw69TvJJ89pCKZ+qNu/nM9OQvrbx/4QzOEahae9gw/KVJHX G1ypNrCSFSmVpTQ69rLG+KjFl1uwfRwPe9Pbp2w+LFr/tqWRaUy3Dd5D4b/3++b82tVd G4ncY6lltVI4xkgYQRwNORiSP2yhu/KW2jnP4= Received: by 10.67.97.1 with SMTP id z1mr1138718ugl.45.1219310092100; Thu, 21 Aug 2008 02:14:52 -0700 (PDT) Received: from ?192.168.13.115? ( [79.187.119.138]) by mx.google.com with ESMTPS id g17sm2655149nfd.3.2008.08.21.02.14.50 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 21 Aug 2008 02:14:50 -0700 (PDT) Reply-To: =?utf-8?q?Pawe=C5=82_Stradomski?= To: internals@lists.php.net Date: Thu, 21 Aug 2008 11:15:13 +0200 User-Agent: KMail/1.9.9 Cc: Volodymyr Iatsyshyn References: <8C.C1.14056.B80DAA84@pb1.pair.com> <200808202038.57642.pstradomski@gmail.com> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-ID: <200808211115.14230.pstradomski@gmail.com> Subject: Re: [PHP-DEV] Annotations Request From: pstradomski@gmail.com (=?utf-8?q?Pawe=C5=82_Stradomski?=) W li=C5=9Bcie Volodymyr Iatsyshyn z dnia czwartek 21 sierpnia 2008: > Now I use emulation of Java Annotations. I wrote simple class, that uses > PHPDoc block, gets annotations declarations and their arguments, uses > eval() to convert arguments string to array, then I create instance of > class and assigns parameters. This solution is fine just now, but it > will be very cool to have annotations as language feature. I'm pretty > sure that lots of frameworks would like this feature :-) > I understand, as I'm simulating those myself (although in a different way).= =20 But we'd love annotations for situations such as the one I presented before= ,=20 as well as WSDL generation etc. Instead of using annotations we use something like that: class X { public static myMethod_methods =3D array('POST', 'GET'); public static myMethod_access =3D 'any'; public function myMethod() {....} } =2D-=20 Pawe=C5=82 Stradomski