head	1.2;
access;
symbols;
locks; strict;
comment	@# @;


1.2
date	2000.08.28.02.28.21;	author chuck;	state dead;
branches;
next	1.1;

1.1
date	99.07.20.07.36.26;	author jon;	state Exp;
branches;
next	;


desc
@@


1.2
log
@starting to modernize babel - nothing autogenerated, standard
directory/library names, etc.
@
text
@function get_prev (&$request_ref, &$prev_ref) {
  if (!($id = $request_ref->id))
    return error("id undefined");
  
  $siblings = array();
  if (isset($request_ref->post['siblings']))
    $siblings = $request_ref->post['siblings'];
  
  $parent = $request_ref->post['parent'];
  
  if (get_prev_in_list($prev, $id, $siblings)) {
    if (!(find_rightmost_descendent($request_ref, $prev, $prev_ref)))
      return error("could not find rightmost descendent of '$prev'");
  } else if ($parent) {
    $prev_ref = $parent;
  } else {
    return FAILURE;
  }
  
  return success();
}
@


1.1
log
@
jon: alrighty, babel.php3.in is now broken down into seperate
     function files.  they're jusy dying to be combined into
     objects and seperate source files.
@
text
@@

