Mailinglisten-Archive |
Ringo Gro?er <swek at gmx.net> schrieb: .... die darstellung von nested blocks ... Guten Morgen, schau mal bei http://oss.webcluster.at/ (http://oss.webcluster.at/APIDOC/index.html) vorbei, da wird eigentlich alles beschrieben, was man dafür benoetigt, falls man pear db nestedSet einsetzt. Z.B.: getParent (line 622) Fetch the immediate parent of a node given by id return: False on error, or the parent node access: public see: _addSQL() mixed getParent (int $id, [bool $keepAsArray = false], [bool $aliasFields = true], [array $addSQL = array()]) int $id: The node ID bool $keepAsArray: (optional) Keep the result as an array or transform it into a set of DB_NestedSet_Node objects? bool $aliasFields: (optional) Should we alias the fields so they are the names of the parameter keys, or leave them as is? array $addSQL: (optional) Array of additional params to pass to the query. Gruss Robert -- Robert Proniewicz
php::bar PHP Wiki - Listenarchive