livedocs [PATCH] - allowing style_mapping to transform()
| From: | moshe doron | Date: | Mon, 10 May 2004 13:10:11 +0000 |
| Subject: | livedocs [PATCH] - allowing style_mapping to transform() | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969360594@lists.php.net to get a copy of this message | ||
Hi:
this patch allow style_mapping functions to continue transform the node via
the default transform function:
http://moshe.i-com-it.com/patchs/livedocs-styletransform.patch.txt
i run into the issue when i see i have no elegant way override the
text-align style using the transform function, without re-writing all the
generation flow by hand.
this behavior can be useful for small changes like duplication of childs
nodes (e.g, make the first child title) or changing the html order of two
node without manualy generating all the subnodes.
explanations:
1. i splite the transform function into transform() that check if we calling
to style_ function, and transfor_default() which is called if no style_
function.
2. if the map callback function begin with '+', the function suppose to get
the $map beside the node. this map is moved into the
$node->transform_default().
thoughts?
--/moshe.