Re: RE : [PEAR-CVS] cvs: pear /DB_NestedSet NestedSet.php

From: Date: Thu, 25 Sep 2003 15:39:14 +0000
Subject: Re: RE : [PEAR-CVS] cvs: pear /DB_NestedSet NestedSet.php
References: 1 2  Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-13088@lists.php.net to get a copy of this message
Hi, Actually, it is implemented - phpDocumentor uses replacements successfully, and I have written unit tests for replacements that show they work great in the old and new versions of PEAR (in the 1.2.1 version, typos would cause all kinds of problems, but successful things work) Just use this: instead of <file role="php" name="NestedSet.php" /> use <file role="php name="NestedSet.php"> <replace type="package-info" from="@API_VERSION@" to="version" /> </file> and then use: function apiVersion() { $a = '@API_VERSION@'; return $a{0}; } It's a slight hack, but it returns the major version number :) Greg Daniel Khan wrote:
LIMBOURG Arnaud:
- Added getParent(), getSiblings(), createRightNode()
createRightNode was already there.
Yes - mistake - was createLeftNode() to create a node before the target node.
- Added API Version output with api()
Followinf recent discussion it should be
function apiVersion() { return '@API_VERSION@'; }
Pierre just told me that it isn't implemented yet but I'll simply name my method apiVersion() for now. Thanks a lot


« previous php.pear.cvs (#13088) next »